• 🏆 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!

[Trigger] [Help Needed] Item trigger

Status
Not open for further replies.
Level 4
Joined
Apr 30, 2007
Messages
62
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
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
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)
 
Level 6
Joined
Dec 28, 2007
Messages
111
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!
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
  • 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
 
Level 6
Joined
Dec 28, 2007
Messages
111
  • 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.
Top