So I have this ability that increases movement speed for 5 second duration by a considerable amount. I want to setup a validator so that if (while the behavior modifying speed is applied) unit is not attacking for 2 seconds then the behavior is removed. I haven't worked with validators before and am trying to figure it out, but am having a hard time creating one that is specified for my needs.
this may not be the best way, but its a way to go about it;
goto the behavior of the 5 sercond buff, goto the combat+ tab
change chance to 1 (100%)
change location pulldown in the damage response tab to ATTACKER
then i belive make the HANDLED tab an effect that reapplys the buff to the source.
on the effect that reapplies the source make a validation (unit compare behavior count)
make the validator active on the effect that applies the buff from the combat+ tab
set the validator behavior to the speed buff thing you got going, make it "greater than or equal to" in the compare field, and a "1" in the value field.
this should make it so every time he attacks, it auto reapplies the buff if it validates that it hs the movement buff already (refreshing the time frame so it will keep going), and if he doesnt then however long you set the duration of the speed buff it goes away and when he attacks again since he hasnt activated the original speed buff by a separate ability it wwont 'reapply or activate' it.
validators are so sweet, they are basically 'conditions' so the data editor to me feels more and more like triggering only way better!
if this way doesnt work then o nthe dmg effect of the weapon make it a set, where it appliesw the buff / validator check on the SOURCE unit. this i KNOW will work.
The problem is if he keeps attacking things the buff will last forever. I need it so that the duration while he's attacking is 5seconds max and if he stops attacking for 2 seconds time the buff goes away.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So I have this ability that increases movement speed for 5 second duration by a considerable amount. I want to setup a validator so that if (while the behavior modifying speed is applied) unit is not attacking for 2 seconds then the behavior is removed. I haven't worked with validators before and am trying to figure it out, but am having a hard time creating one that is specified for my needs.
Thank you in advance
Someone must know how to set this up. Anyone?
@Etravex: Go
this may not be the best way, but its a way to go about it;
goto the behavior of the 5 sercond buff, goto the combat+ tab
change chance to 1 (100%)
change location pulldown in the damage response tab to ATTACKER
then i belive make the HANDLED tab an effect that reapplys the buff to the source.
on the effect that reapplies the source make a validation (unit compare behavior count)
make the validator active on the effect that applies the buff from the combat+ tab
set the validator behavior to the speed buff thing you got going, make it "greater than or equal to" in the compare field, and a "1" in the value field.
this should make it so every time he attacks, it auto reapplies the buff if it validates that it hs the movement buff already (refreshing the time frame so it will keep going), and if he doesnt then however long you set the duration of the speed buff it goes away and when he attacks again since he hasnt activated the original speed buff by a separate ability it wwont 'reapply or activate' it.
validators are so sweet, they are basically 'conditions' so the data editor to me feels more and more like triggering only way better!
if this way doesnt work then o nthe dmg effect of the weapon make it a set, where it appliesw the buff / validator check on the SOURCE unit. this i KNOW will work.
@ezbeats: Go
The problem is if he keeps attacking things the buff will last forever. I need it so that the duration while he's attacking is 5seconds max and if he stops attacking for 2 seconds time the buff goes away.