[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