Need help making an ability that works something like critical strike. Basically:
Per level, the ability has a % chance to knock off whatever % off the target's current hp.
for example:
Birgitte has a 5% chance to fire a shot that will take away 30% of the target's current health.
I had a version of this that sort-of worked, however it used the 'unit is attacked' event, which messed it all up (due to 'being attacked' = enemy unit comes in range). Also, the 'unit takes damage' ability is impossible to use in this because it is specific-unit only. I tried using variables:
Every .5 seconds
pick all units owned by enemy of owner of Archer and set NexusShotTarget = picked unit.
Didn't work due to there being 'no variables of this type' under the specific unit events for the Unit section.
I definitely don't want to assign a trigger to each enemy unit on my map (not to mention i have units spawned periodically which would make it impossible).
I'm seriously confused and need some help. TYVM in advance!
-Z
P.S. You'll be like a god if you can help me work this out.. it's beginning to drive me absolutely crazy and I cannot figure out how to make it work.
Per level, the ability has a % chance to knock off whatever % off the target's current hp.
for example:
Birgitte has a 5% chance to fire a shot that will take away 30% of the target's current health.
I had a version of this that sort-of worked, however it used the 'unit is attacked' event, which messed it all up (due to 'being attacked' = enemy unit comes in range). Also, the 'unit takes damage' ability is impossible to use in this because it is specific-unit only. I tried using variables:
Every .5 seconds
pick all units owned by enemy of owner of Archer and set NexusShotTarget = picked unit.
Didn't work due to there being 'no variables of this type' under the specific unit events for the Unit section.
I definitely don't want to assign a trigger to each enemy unit on my map (not to mention i have units spawned periodically which would make it impossible).
I'm seriously confused and need some help. TYVM in advance!
-Z
P.S. You'll be like a god if you can help me work this out.. it's beginning to drive me absolutely crazy and I cannot figure out how to make it work.