Have a look at the CanCharge (unnamed) - validator for reference. It "returns" true, whenever a unit is using the attack ability. Its of Unit Order Target- Type and lets you pick a specific ability.
that one works like a treat. thanks:P
think that makes this whole topic Solved
Just got an idea for a no-trigger solution: Give the unit the behavior to stun or stop itself when damaged right away and add a disable-validator, which checks, if the current order of the unit is the desired spell. Basically the buff is always disabled and only active when casting the spell. Would fix the remove-when-cancel thing as well.
I had that in mind the first time I tried. but never got the validator to work. so far I know there is no way to check if the unit is casting a spell (no working option anyway)
atm i got it working like:
click the ability -> adds behaviour (casting weakness) for 7 sec + start cast taking 7 sec
the behaviour has a damage response to start an effect
the effect adds a 2 sec stun behaviour + removes the casting weakness
the only thing i'm kinda missing (to make it perfect) is to remove the casting weakness if the casting player interrupts the cast.
k. that works.
not 100% necessary but would be a plus if someone knows.
how to remove the behaviour if the unit interrupts the casting by move order or something? (player moves unit or stops the casting in a other way)
I'm trying to let an ability be interrupt by any dmg when its cast.
don't care if its a data or trigger solution. anything will do as long as it works.
is it posible to allow any attack (or any dmg) to Interrupt a spell cast?
I'm atm working on a spell to get units off the battlefield. the spell has a 5 sec cast and the cast bar etc will display.
the only thing I'm not able to create is that if the unit is attacked that the cast Interrupts.
anyone has an idea on how to achieve this effect?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
that one works like a treat. thanks:P
think that makes this whole topic Solved
I had that in mind the first time I tried. but never got the validator to work. so far I know there is no way to check if the unit is casting a spell (no working option anyway)
atm i got it working like:
click the ability -> adds behaviour (casting weakness) for 7 sec + start cast taking 7 sec
the behaviour has a damage response to start an effect
the effect adds a 2 sec stun behaviour + removes the casting weakness
the only thing i'm kinda missing (to make it perfect) is to remove the casting weakness if the casting player interrupts the cast.
k. that works.
not 100% necessary but would be a plus if someone knows.
how to remove the behaviour if the unit interrupts the casting by move order or something? (player moves unit or stops the casting in a other way)
Hopefull Bumb
k. hoping someone has a better solution.
I'm trying to let an ability be interrupt by any dmg when its cast.
don't care if its a data or trigger solution. anything will do as long as it works.
that might work.. will test
Hopeful bumb
is it posible to allow any attack (or any dmg) to Interrupt a spell cast?
I'm atm working on a spell to get units off the battlefield. the spell has a 5 sec cast and the cast bar etc will display. the only thing I'm not able to create is that if the unit is attacked that the cast Interrupts. anyone has an idea on how to achieve this effect?