Item Recipe

Bladezor

You can change this now in User CP.
Reaction score
0
I want help to make a trigger that I need, 2 ring of helth and 1 claws of attack = crown of kings.
 

Solu9

You can change this now in User CP.
Reaction score
216
Need a little more info.
How do you want the hero to assemble the recipe?
Fx. can he buy the Crown of Kings item IF he has the other items in the inventory.
Or does he have to place the items on a Circle of Power and if all three items are there a Crown of Kings is created? Or anything else.
 

Solu9

You can change this now in User CP.
Reaction score
216
First. Please post your triggers in your post instead of linking to a picture.
Go to your trigger and at the trigger name right click and click "copy as text".
Then post it here between [.WC3] your trigger [./WC3] (without the punctuations).

You want to track both the amount of stones and wood. So make an integer variable for both.
Fx. iStoneAmount and iWoodAmount.

Try this:
Trigger:
  • Untitled Trigger 001
    • 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 Wood
    • Then - Actions
    • Set iWoodAmount = (iWoodAmount + 1)
    • 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 Stone
    • Then - Actions
    • Set iStoneAmount = (iStoneAmount + 1)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • And - All (Conditions) are true
    • Conditions
    • iStoneAmount Greater Than or Equal to 1
    • iWoodAmount Greater Than or Equal to 2
    • Then - Actions
    • Hero - Drop (Item carried by (Hero manipulating item) of type Wood from (Hero manipulating item)
    • Item - Remove (Last dropped item)
    • Hero - Drop (Item carried by (Hero manipulating item) of type Wood from (Hero manipulating item)
    • Item - Remove (Last dropped item)
    • Hero - Drop (Item carried by (Hero manipulating item) of type Stone from (Hero manipulating item)
    • Item - Remove (Last dropped item)
    • Set iWoodAmount = (iWoodAmount - 2)
    • Set iStoneAmount = (iStoneAmount - 1)
    • Hero - Create Campfire and give it to (Hero manipulating item)
    • Else - Actions
 

Bladezor

You can change this now in User CP.
Reaction score
0
thx 4 everything, and I will not linking picture anymore. :D
 

Solu9

You can change this now in User CP.
Reaction score
216
Oh one last thing.

You need a second trigger that tracks if you drop a Stone or some Wood, and set the variables accordingly.
Fx. If you have a Stone in your inventory and drop it on the ground (maybe because you lack space or something), the the iStoneAmount variable is still 1 even though you are not holding any Stones.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top