I'm stuck, and noobish with data. i made the apply behavior effect and ism using the existing power field behavior. i cant seem to figure it out the rest. i want an ability that when clicked makes the unit stop and apply the power field behavior, if the unit moves (and/or the ability is canceled), the effect is stopped.
ive been asking in irc but i figured its time to post this cause im sure it will come up again.
He means give the unit a buff that a requirement counts which then disables the power source. Or use the behaviours disabled field of the buff so the buff is disabled when moving but disables power when not.
i made the ability for you based on the ghost hold fire
heres what i did..
-i added "hold fire" and "weapons free" on marine
-added "pylon power source" behavior on marine
-created and added a new behavior called "xxx disable power" on the marine (This will disable the "pylon power source")
-created a new validator "xxx Caster is not moving" and added it on "Hold Fire" behavior
-then i made the "hold fire" behavior disable "xxx disable power" behavior when it is on.