I'm trying to create a unit that gets and attack speed and movement speed bonus every time they attack something, or are attacked by something. This effect should have a duration of 10 seconds and replenish whenever they attack/are attacked. (maximum of 3 stacks) I'm not sure how to go about this as I'm trying to do it entirely in the data editor.
Could some body help me with this? If it's not possible in the data editor I'll just use triggers.
Add two permanent behaviors, both with "Combat: Damage Response - Chance" set to 1. Set the "Damage response - Location" of one to "Defender", and set the other to "Attacker". For both, set the "Handled" field to point to any effect you want called when the unit attacks or is attacked.
The effect called could then apply another distinct behavior with your bonuses ( stack size of 3, duration 10, etc. ).
I'm trying to create a unit that gets and attack speed and movement speed bonus every time they attack something, or are attacked by something. This effect should have a duration of 10 seconds and replenish whenever they attack/are attacked. (maximum of 3 stacks) I'm not sure how to go about this as I'm trying to do it entirely in the data editor.
Could some body help me with this? If it's not possible in the data editor I'll just use triggers.
Quite possible and easy in data editor.
Add two permanent behaviors, both with "Combat: Damage Response - Chance" set to 1. Set the "Damage response - Location" of one to "Defender", and set the other to "Attacker". For both, set the "Handled" field to point to any effect you want called when the unit attacks or is attacked.
The effect called could then apply another distinct behavior with your bonuses ( stack size of 3, duration 10, etc. ).
@StragusMapster: Go
Thank you!!