SC2Mapster Forums

Development > Data

[BEHAVIOR] Movement Based Buff

  • 3 posts
    #1 Nov 16, 2012 at 07:46 UTC - 0 likes

    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.

    #2 Nov 16, 2012 at 13:16 UTC - 0 likes

    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:
    MechCraft

    #3 Nov 16, 2012 at 22:32 UTC - 0 likes

    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.

    Last edited Nov 16, 2012 by DrSuperEvil
  • 3 posts

You must login to post a comment. Don't have an account? Register to get one!