Help creating an "Ability is active" Condition.

Status
Not open for further replies.
Level 2
Joined
Feb 17, 2020
Messages
7
Hey folks, I'm trying hard to make a condition/trigger for detecting if ability defense (same as human footman) is active.
I just cant make it work, my goal is to give a building the ability "defense" and if "defense" is active then do (loop of event), when is desactivated then (stop loop).

any hints for this?





:goblin_cry:thanks!
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
You can’t really check if it’s active on command. Instead you have to catch when it’s ordered to defend and undefend each time.

A roundabout way to query its defense state is to remove the ability from the unit. Doing so will order it to undefend if the ability was active when you removed it, then you have to re-Add the ability and order it to defend if it was active when removed.
 
Status
Not open for further replies.
Top