• 🏆 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] Item with active ability and passive

Status
Not open for further replies.
Level 6
Joined
Apr 23, 2008
Messages
263
Lets say i create an item based of Staff of silence (a staff with an active ability that when u click it silences units in aoe). each time i use this ability the item gets that cooldown-spin thing.

but when i add the passive ability 1 armor bonus to the staff, the cooldown-spin doesnt show up anymore.

is the only way to manually in triggers add the 1 armor bonus to the carrying hero? and how would be best to do that?
 
Well, you can do this instead with triggers, since i was unaware of this issue:

  • Item
  • Events
    • A unit acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Staff of Silence
  • Actions
    • Unit - Add (Item Armor Bonus (+1)) to (Hero Manipulating Item/Triggering unit)
  • Item drop
  • Events
    • Unit - A unit loses an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Staff of Silence
  • Actions
    • Unit - Remove (Item Armor Bonus (+1)) from (Hero Manipulating Item/ Triggering unit)
 
Status
Not open for further replies.
Top