I'm not sure if this is doable, but can you add a timer to a unit, then refill some of the time whenever the unit kills a unit? The timer could also be health, where it slowly deminishes but killing brought it back up. Also, I need to set the timer to be like 3 minutes but how do I change a timed out ability?
Behavior, infinite duration, drains x% life every X periodic.
Weapon, set effect(Damage & Modify Unit), Heals X life every time it kills. Validate the Modify Unit with Unit Death:Target.
Tell me if I'm wrong, but you're trying to create a unit which loses life over time and can heal by killing units, is that it?
If that's the case, it's quite simple:
- In your Unit data, instead of a positive value in the "Stats - Life Regeneration Rate" field, set it negative. Setting it to -1, for example, will make your unit lose 1 life point per second. You'll just have to do the math to make it lose all its life points in 30 minutes.
- You will also need a buff on your unit (Behavior - buff) which will modify the "Combat - Modification - Vital leeched from Damage dealt - Damage kind" field.
Change the amount of leeched life to a certain amount of your unit's life (leech set to 1 means 100%). Ex: A unit with 200 max life, and a leech of 0.1, will regain 5 life points per kill. Set this value in the Life - Melee field if the weapon used by your unit is melee, Ranged if it's a projectile, Spell if it's an ability, or Splash if you want it to only count the damage done by Areas of Effect. You can also leech shields and/or energy the same way.
It requires a little math, but this is the simplest way I can think of. You can check my Sand Worm Survival map, the Sand Worm uses the exact same method and it works great. :)
You could create a timer using stacks of a buff behavior. Have a periodic buff effect that removes a stack and on killing adds one or more to the stack.
Buffs can stack up yo 255 times so even at one stack a second you only need a cap of 180.
Not sure what you mean by " I need to set the timer to be like 3 minutes but how do I change a timed out ability?"
I'm not sure if this is doable, but can you add a timer to a unit, then refill some of the time whenever the unit kills a unit? The timer could also be health, where it slowly deminishes but killing brought it back up. Also, I need to set the timer to be like 3 minutes but how do I change a timed out ability?
@Reaper872: Go
...
Behavior, infinite duration, drains x% life every X periodic. Weapon, set effect(Damage & Modify Unit), Heals X life every time it kills. Validate the Modify Unit with Unit Death:Target.
This should do the job.
@Reaper872: Go
Tell me if I'm wrong, but you're trying to create a unit which loses life over time and can heal by killing units, is that it?
If that's the case, it's quite simple:
- In your Unit data, instead of a positive value in the "Stats - Life Regeneration Rate" field, set it negative. Setting it to -1, for example, will make your unit lose 1 life point per second. You'll just have to do the math to make it lose all its life points in 30 minutes.
- You will also need a buff on your unit (Behavior - buff) which will modify the "Combat - Modification - Vital leeched from Damage dealt - Damage kind" field.
Change the amount of leeched life to a certain amount of your unit's life (leech set to 1 means 100%). Ex: A unit with 200 max life, and a leech of 0.1, will regain 5 life points per kill. Set this value in the Life - Melee field if the weapon used by your unit is melee, Ranged if it's a projectile, Spell if it's an ability, or Splash if you want it to only count the damage done by Areas of Effect. You can also leech shields and/or energy the same way.
It requires a little math, but this is the simplest way I can think of. You can check my Sand Worm Survival map, the Sand Worm uses the exact same method and it works great. :)
You could create a timer using stacks of a buff behavior. Have a periodic buff effect that removes a stack and on killing adds one or more to the stack.
Buffs can stack up yo 255 times so even at one stack a second you only need a cap of 180.
Not sure what you mean by " I need to set the timer to be like 3 minutes but how do I change a timed out ability?"
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@ZealNaga: Go
pretty much yeah.... trying to give the same effect as a starwars battlefront hero. I think that will just about do it, thanks.