• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Craft item help

Status
Not open for further replies.
Level 10
Joined
Mar 17, 2012
Messages
582
Hi there!
I want to make some craft operations... For exampla I have Power Treads that makes of Boots of Speed? Gloves of Haste and Recipe...

I have some triggers:

  • Power Treads
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Recipe: Power Treads
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Buying unit) has an item of type Boots of Speed) Equal to True
          • ((Buying unit) has an item of type Gloves of Haste) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Buying unit) of type Boots of Speed)
          • Item - Remove (Item carried by (Buying unit) of type Gloves of Haste)
          • Hero - Create Power Treads and give it to (Buying unit)
        • Else - Actions
          • Hero - Create Recipe: Power Treads and give it to (Buying unit)
  • Boots of Speed
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Boots of Speed
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Buying unit) has an item of type Recipe: Power Treads) Equal to True
          • ((Buying unit) has an item of type Gloves of Haste) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Buying unit) of type Recipe: Power Treads)
          • Item - Remove (Item carried by (Buying unit) of type Gloves of Haste)
          • Hero - Create Power Treads and give it to (Buying unit)
        • Else - Actions
  • Gloves of Haste
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Gloves of Haste
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Buying unit) has an item of type Recipe: Power Treads) Equal to True
          • ((Buying unit) has an item of type Boots of Speed) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Buying unit) of type Recipe: Power Treads)
          • Item - Remove (Item carried by (Buying unit) of type Boots of Speed)
          • Hero - Create Power Treads and give it to (Buying unit)
        • Else - Actions
But this operations can't work if I rick the last element from the ground... Coul enyone help me to make it work right?))) I need it to craft even if I pick item :grin:
 
Level 23
Joined
Oct 20, 2012
Messages
3,072
Try this.. it's only one trigger so it's more convenient.. :3

  • Item
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
          • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
          • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
          • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
          • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
          • Hero - Create Mask of Death and give it to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
            • Then - Actions
              • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
              • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
              • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
              • Hero - Create Mask of Death and give it to (Triggering unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape
                  • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
                  • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
                  • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
                  • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
                  • Hero - Create Mask of Death and give it to (Triggering unit)
                • Else - Actions
 
Level 10
Joined
Mar 17, 2012
Messages
582
Try this.. it's only one trigger so it's more convenient.. :3

  • Item
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
          • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
          • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
        • Then - Actions
          • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
          • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
          • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
          • Hero - Create Mask of Death and give it to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
            • Then - Actions
              • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
              • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
              • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
              • Hero - Create Mask of Death and give it to (Triggering unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape
                  • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
                  • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
                • Then - Actions
                  • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
                  • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
                  • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
                  • Hero - Create Mask of Death and give it to (Triggering unit)
                • Else - Actions

I tried it before I wrote here... It makes no effect :ogre_frown:
 
Level 30
Joined
Sep 26, 2009
Messages
2,622
Just tried it in game, using a modified version of Juno's trigger
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Claws of Attack +15
              • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Crown of Kings +5
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Kelen's Dagger of Escape) Equal to True
          • And - All (Conditions) are true
            • Conditions
              • (Item-type of (Item being manipulated)) Equal to Kelen's Dagger of Escape
              • ((Triggering unit) has an item of type Claws of Attack +15) Equal to True
              • ((Triggering unit) has an item of type Crown of Kings +5) Equal to True
    • Then - Actions
      • Item - Remove (Item carried by (Triggering unit) of type Claws of Attack +15)
      • Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
      • Item - Remove (Item carried by (Triggering unit) of type Kelen's Dagger of Escape)
      • Hero - Create Mask of Death and give it to (Triggering unit)
    • Else - Actions
and it worked. I tried by picking up all items from ground and buying them from neutral passive Goblin Merchant. Both worked
 
Status
Not open for further replies.
Top