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

Level up an ability for a dummy unit

Status
Not open for further replies.
Level 6
Joined
Apr 5, 2013
Messages
154
So, i'm trying to do a passive ability that has a chance upon attacking to reduce the armor of the target by an amount. So here's how it goes, when the unit with the passive ability attacks, there is a chance that a dummy unit will be created, which casts a modified Acid Bomb on the attacked unit. So here's the problem, how can i level up the Acid Bomb ability on the dummy unit every time the main unit's passive ability is leveled up? Thanks in advance.
 
Level 25
Joined
Sep 26, 2009
Messages
2,379
There's an action "Unit - set level of ability for unit" which does exactly that.
Instead of setting some value yourself (e.g. "Set level of Ability for unit to level 3") you can use "Unit - Level of ability for unit".
The action could look like this then:
  • Unit - Set level of ArmorDebuffAbil for dummy to (Level of PassiveAbil for caster)
So if PassiveAbil for caster is level 2, this action will set level of ArmorDebufAbil to level 2 as well.
 
Status
Not open for further replies.
Top