Hey guys, working on an rpg type map, with items. I have an item that adds +1 life regeneration but I want it to regenerate life only when out of combat for a few moments..
1. How do I do this for hp regen?
2. How do I do this for shield regen? (probably the same as hp regen?)
Select your unit in the Data Editor and look for "Stats - Shield Regeneration Delay" and "Stats - Life Regeneration Delay". This is the amount of time in seconds that'll pass before regeneration kicks in.
Hey guys, working on an rpg type map, with items. I have an item that adds +1 life regeneration but I want it to regenerate life only when out of combat for a few moments..
1. How do I do this for hp regen? 2. How do I do this for shield regen? (probably the same as hp regen?)
thanks!
Select your unit in the Data Editor and look for "Stats - Shield Regeneration Delay" and "Stats - Life Regeneration Delay". This is the amount of time in seconds that'll pass before regeneration kicks in.
@Demalii: Go
Set up a trigger with the event: Unit is attacked.
Have the buff deactivated, then start an invisible timer. After it expires, reactivate the buff.
Hope this helps.
EDIT: Unless it's the item that's giving the unit this buff, use s3rius' method.
Hey thanks for the replies, yea it's the item with the buff.. Everything worked out, I appriciate it!