Hi, is there a way to make an ability like this without triggers?
For example:
The 'Predator' unit has a passive ability where, when attacked, 20% of the time, it will teleport on top of the attacker.
I can detect that it's being attacked, and give it a 20% chance to respond, but then what? How do I tell the 'Predator' to teleport and where to teleport to?
give the predator a buff called teleportOnAttack. this buff has a damage response field. now set the propbability to 20% (it's 0% by default). now create a teleport ability which teleports the caster (target) to target unit (caster unit, damage response saves attacker either as caster or target, i always mix it up). add this effect to the damage handled effect field of the buff.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, is there a way to make an ability like this without triggers?
For example:
The 'Predator' unit has a passive ability where, when attacked, 20% of the time, it will teleport on top of the attacker.
I can detect that it's being attacked, and give it a 20% chance to respond, but then what? How do I tell the 'Predator' to teleport and where to teleport to?
Thanks!
give the predator a buff called teleportOnAttack. this buff has a damage response field. now set the propbability to 20% (it's 0% by default). now create a teleport ability which teleports the caster (target) to target unit (caster unit, damage response saves attacker either as caster or target, i always mix it up). add this effect to the damage handled effect field of the buff.