• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] [Help Needed] Item trigger

Status
Not open for further replies.
Maybe you mean something like that?
add an event like a unit gets an item
add your action in the "then" option

  • UpgradeItem
    • Event
    • Condition
    • Action
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • And - All (Conditions) are true
            • Bedingungen
              • (Item-type of (Item being manipulated)) Gleich Your Item
              • (Hero level of (Triggering unit)) Gleich 15
        • 'THEN'-Aktionen
        • 'ELSE'-Aktionen
 
You could always make it so that the special item had an ability which, when casted, upgraded your hero if you were level 15. That would also be more efficient than the other method.

Otherwise, you could pick the hero each second, and check for it having both the item, and level 15. If so, upgrade. (You'll want an Item-Type Comparison)
 
Sorry guys

You could always make it so that the special item had an ability which, when casted, upgraded your hero if you were level 15. That would also be more efficient than the other method.

Otherwise, you could pick the hero each second, and check for it having both the item, and level 15. If so, upgrade. (You'll want an Item-Type Comparison)

Sorry i didn't say it right..

I want to do.. if u have the item and lvl 15. THEN u go into a circle of power an upgrade!
 
  • Untitled Trigger 002
    • Events
      • Unit - A unit enters someWhere
    • Conditions
      • (Hero level of (Triggering unit)) Equal to 15
    • Actions
      • 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 (Triggering unit) in slot (Integer A))) Equal to Tome of Experience
            • Then - Actions
              • Do Something
              • Skip remaining actions
            • Else - Actions
 
  • Untitled Trigger 002
    • Events
      • Unit - A unit enters someWhere
    • Conditions
      • (Hero level of (Triggering unit)) Equal to 15
    • Actions
      • 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 (Triggering unit) in slot (Integer A))) Equal to Tome of Experience
            • Then - Actions
              • Do Something
              • Skip remaining actions
            • Else - Actions

THANK YOU! But can u you remove the item after u upgraded? :D
 
Status
Not open for further replies.
Back
Top