[Trigger] Armor Equipt Triggers

Status
Not open for further replies.
Level 8
Joined
Nov 21, 2008
Messages
316
Well how do i make armor equipt triggers
I want it done similar to the ones in symbiote.
ex. when the armor is clicked it gives the unit ability and a armor bonus (+ an intiger), and if its clicked again it takes it away. or if it drops it takes it away.

I already made the drop part of the triggers, just need to know how to make the click on and off part of the trigger
 
  • Activation
  • Events
    • Unit - A unit uses an item
  • Conditions
    • ((Item being manipulated) Equal to Armor)
  • Actions
    • Set Unit1 = (Hero Manipulating Item)
    • Unit - Set the custom value of (Unit1) to ((Custom value of (Unit1) + 1)
    • Set Activated[Custom value of (Unit1)] = True
    • Unit - Add Item Armor Bonus to (Unit1)
    • Trigger - Turn off (This trigger)
  • Deactivate
  • Events
    • Unit - A unit uses an item
  • Conditions
    • ((Item being manipulated) Equal to Armor)
    • ((Hero manipulating Item) Equal to Unit1)
    • (Activated[Custom Value of (Unit1)]) Equal to True
  • Actions
    • Unit - Remove Item Armor Bonus from (Unit1)
    • Set Activated[Custom value of (Unit1)] = False
    • Unit - Set the custom value of (Unit1) to 0
Not sure if it works.
 
Last edited:
Status
Not open for further replies.
Top