• 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.

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,075
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 28
Joined
Sep 26, 2009
Messages
2,520
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