• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Recipes Help Needed

Status
Not open for further replies.
Level 5
Joined
Sep 7, 2009
Messages
171
I need help with a recipes. I've been trying to make a "frost sword" appear in the hero's inventory if the hero has 3 "Frost Claws." How do I make it so that the trigger checks for 3 of the same item. How do I make it do that?

This is how I make recipes by the way:

EVENTS:
* Unit - A unit Acquires and item
+ Conditions...
ACTIONS:
* If (All Conditions are True) then do (Then Actions) else do (Else Actions)
+ If Conditions
? ((Hero manipulating item) has an item of type Orb Frost) Equal to True
? ((Hero manipulating item) has an item of type Claws of Attack +80) Equal to True
+ Then Actions
Item - Remove (Item carried by (Hero manipulating item) of type Orb of Frost
Item - Remove (Item carried by (Hero manipulating item) of type Claws of Attack +80
Hero - Creat Frost Claws and give it to (Hero manipulating item)
+ Else Actions
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 082 Copy Copy
    • Events
    • Conditions
    • Actions
      • Set Temp_Integer_1 = 0
      • Set Temp_Unit_1 = (Triggering unit)
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by Temp_Unit_1 in slot (Integer A))) Equal to Crown of Kings +5
            • Then - Actions
              • Set Temp_Integer_1 = (Temp_Integer_1 + 1)
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_Integer_1 Greater than or equal to 3
        • Then - Actions
          • Item - Remove (Item carried by Temp_Unit_1 of type Crown of Kings +5)
          • Item - Remove (Item carried by Temp_Unit_1 of type Crown of Kings +5)
          • Item - Remove (Item carried by Temp_Unit_1 of type Crown of Kings +5)
          • Hero - Create Mask of Death and give it to Temp_Unit_1
        • Else - Actions
 
Status
Not open for further replies.
Top