Hi all, not sure if this is the place to post this question, but here goes. I'm trying to create an ability that is triggered when a specific unit (let's just say marine for this example) drops below 50% health and is only triggered when it dips from above 50% to below and not EVERY time it takes damage BELOW 50%.
Secondly, I'm working on an ability for a single hero unit that gives an "aura" type buff that increases attack damage and attack speed to all units in a specific radius around the caster.
I've had lots of success with some simpler abilities involving missiles and charge type abilities, but these are new concepts to me, and any help is hugely appreciated.
For your first ability you may use a behavior with a validator. The validator would enable the buff behavior when life gets below 50%, then this behavior can call for the effect you want and place a new behavior on the unit. This new behavior would disable the previous one and get removed when live goes above 50% again. Of course the details will depend on what exactly will happen to the unit, how often the ability should be activated and so on.
For the second one what you need is an ability of Effect Instant type. This ability would apply a behavior that calls for a Search Effect periodically. And this search effect calls for another Apply Behavior effect on its targets. The radius is set in the Search effect, the frequency of the search will be set by the original behavior's period durations.
Hi all, not sure if this is the place to post this question, but here goes. I'm trying to create an ability that is triggered when a specific unit (let's just say marine for this example) drops below 50% health and is only triggered when it dips from above 50% to below and not EVERY time it takes damage BELOW 50%.
Secondly, I'm working on an ability for a single hero unit that gives an "aura" type buff that increases attack damage and attack speed to all units in a specific radius around the caster.
I've had lots of success with some simpler abilities involving missiles and charge type abilities, but these are new concepts to me, and any help is hugely appreciated.
@Gojira5680: Go Hi Gojira. Welcome to mapster!
For your first ability you may use a behavior with a validator. The validator would enable the buff behavior when life gets below 50%, then this behavior can call for the effect you want and place a new behavior on the unit. This new behavior would disable the previous one and get removed when live goes above 50% again. Of course the details will depend on what exactly will happen to the unit, how often the ability should be activated and so on.
For the second one what you need is an ability of Effect Instant type. This ability would apply a behavior that calls for a Search Effect periodically. And this search effect calls for another Apply Behavior effect on its targets. The radius is set in the Search effect, the frequency of the search will be set by the original behavior's period durations.
This was hugely helpful! Thanks so much =D