I've got an ability with a 15 second prepare time. After its complete, a trigger warps the unit to its main base. How would I make it so that if the unit is attacked while preparing it stops preparing for the ability and attacks? (I dont care if its with triggers or data). I tried ordering them to stop but then they stop whenever theyre attacked and that is bad.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
kinda have it by using a data and trigger (can do only only data but this should work)
k I have an skill (effect - instant)
have that skill a cast time of your amount of time
and add the normal effect you want to the skill after the cast time.
now make a trigger that adds a behaviour (called mine Casting Vulnerability) when a unit starts casting the skill
Casting Vulnerability is a buff behaviour.
add to the behaviour a validator (unit order target type) and select the skill. (you can use a combine to combine multiple skills)
what this validator is doing is that if the unit is not casting the skill anymore it removes the behaviour (handy to have no casting vulnerability when you order the unit to do something else and interrupt the cast)
now back to the behaviour you wane add damage response.
set the chance to 1 and all the way down you can add an effect to "Handled"
this effect can be a stop command but I added a 1 sec stun.
I've got an ability with a 15 second prepare time. After its complete, a trigger warps the unit to its main base. How would I make it so that if the unit is attacked while preparing it stops preparing for the ability and attacks? (I dont care if its with triggers or data). I tried ordering them to stop but then they stop whenever theyre attacked and that is bad.
oh. I asked that like 1 month ago.. let me see how I got mine to work
kinda have it by using a data and trigger (can do only only data but this should work)
k I have an skill (effect - instant)
have that skill a cast time of your amount of time
and add the normal effect you want to the skill after the cast time.
now make a trigger that adds a behaviour (called mine Casting Vulnerability) when a unit starts casting the skill
Casting Vulnerability is a buff behaviour.
add to the behaviour a validator (unit order target type) and select the skill. (you can use a combine to combine multiple skills)
what this validator is doing is that if the unit is not casting the skill anymore it removes the behaviour (handy to have no casting vulnerability when you order the unit to do something else and interrupt the cast)
now back to the behaviour you wane add damage response.
set the chance to 1 and all the way down you can add an effect to "Handled"
this effect can be a stop command but I added a 1 sec stun.
hope this madness helps you a bid
@zeldarules28: Go
Pretty sure that you can create a behavior:
If you want the interrupt to apply to multiple ability casts, you can use a 'combine' validator with an 'OR' condition