Trying to create a buff that increases attack speed for 3 seconds if the unit has moved after it is done moving. EX: Unit A moves from point X to point Y, and Unit A receives buff B once it stops at point Y.
I have created two behaviors and one effect. The first has a movement validator and an Apply Behavior effect in the Effect - Final; the duration is -1. The second behavior is the buff and contains an Attack Speed Multiplier of 2 and duration of 3. The effect is an Apply Behavior that applies the second behavior and has a 3 second duration.
The first behavior is not reapplying the buff after moving and stopping the unit.
I have a feeling that I will be getting a visit from the Doctor soon.
A melee mod - The A-move stops here.
Follow the Advanced SC2 Twitter for updates, insights, and information.
The Effect - Final only fires if the behavior expires or gets otherwise removed as far as I know.
You have to use it as a periodic effect with a periodic validator I think.
Check out my project:
Use a biphasic behaviour where one adds the other and removes itself. Unless you want the attack speed boost to stack.
You did not give the conditions you want for the system to regenerate itself. Give more details as to how the overall system should work.
Contribute to the wiki (Wiki button at top of page)
Considered easy altering of the unit textures?
For my public assets look here!
You must login to post a comment. Don't have an account? Register to get one!