How would I go about creating an ability which when bought, increases speed of all units or increases hp of all units for a short amount of time?
I tried to look at other abilties of sorts but I was unable to figure out how.
Well, is just a behavior with movement speed increase and extra hit points and a duration.
I don't know how you buy it, so is hard to tell how can you apply this behavior to your units. Probably using a requirement, and have the behavior always in the unit.
Create your ability and modify its cost/cooldown at cost tab. Then create a behavior (buff) that will modify the stat you desire (like movement speed) and set it's duration in statistics tab. Create (apply behavior) effect that will apply this behavior, and search area effect modified so it will search for player only units (-1 number of max targets to taget all, +- filter buildings etc.) and cause apply behavior effect. Add search area effect to ability.
Say if you need more details.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How would I go about creating an ability which when bought, increases speed of all units or increases hp of all units for a short amount of time? I tried to look at other abilties of sorts but I was unable to figure out how.
Any help much appreciated.
Well, is just a behavior with movement speed increase and extra hit points and a duration.
I don't know how you buy it, so is hard to tell how can you apply this behavior to your units. Probably using a requirement, and have the behavior always in the unit.
Create your ability and modify its cost/cooldown at cost tab. Then create a behavior (buff) that will modify the stat you desire (like movement speed) and set it's duration in statistics tab. Create (apply behavior) effect that will apply this behavior, and search area effect modified so it will search for player only units (-1 number of max targets to taget all, +- filter buildings etc.) and cause apply behavior effect. Add search area effect to ability.
Say if you need more details.