Root (additional reg when standing still)

Status
Not open for further replies.
Level 17
Joined
Jan 21, 2007
Messages
2,006
Hi there! I've tried to make a passive skill that gives the hero additional mana and life regeneration when he stands still at one point.
So when he's not moving, he will regenerate faster.
When he is moving though, the bonus regeneration will stop.

I would like it in GUI, but JASS works too.
 
One way to do this would be to have a periodic trigger that would check each unit for the passive ability and if they had no orders (meaning they're standing still). If both of these conditions were met, the trigger would increase the hero's current life/mana by a certain percent.
 
One way to do this would be to have a periodic trigger that would check each unit for the passive ability and if they had no orders (meaning they're standing still). If both of these conditions were met, the trigger would increase the hero's current life/mana by a certain percent.
That wouldn't work. What if your unit is stunned or is casting a spell or attacking but he's standing still or whatever.

The solution is: use a trigger which checks your Unit's X and Y coordinates every few seconds and if the coordinates do not match give the unit a hp regen ability.
I wouldn't do this in GUI, it would be a hassle. I suggest you to solve this in JASS since it's much easier and faster there.
(if you don't know JASS then it's time to click on Wyrmlords sigs :P)
 
Well emperor_d3st is correct.
At the current state, when the unit is stunned or casting or channeling it will not have increased regeneration.
 
One way to do this would be to have a periodic trigger that would check each unit for the passive ability and if they had no orders (meaning they're standing still). If both of these conditions were met, the trigger would increase the hero's current life/mana by a certain percent.

that wont work if u just stand still and a unit get close it will start to run after that unit and no change in orders... checking its loc every 1 sec or something is the best to do it
 
that wont work if u just stand still and a unit get close it will start to run after that unit and no change in orders... checking its loc every 1 sec or something is the best to do it

No, it will change orders, but that is not the point.
 
Wait, let's see if i get this right(dumb, dumb, dumb me:ugly:)

The system i have now(with orders) doesn't work when stunned or channeling? Or does it? I can see the problems with both, depending on view.
My hero won't have channeling spells, so that's not a problem, and the stunned thing should be activating the reg if it should be like i thought, but i guess i can live with it, not that bad anyway.
 
You got it correctly.
Also when shooting/attacking, when there is an enemy - your unit will just acquire a target and its orders will change, when casting(casting time).
So the only time when you will have bonus regeneration is when there is absolute no enemy in the acquisition range of your unit and it has nothing to do(example: you press stop in the middle of nowhere).
 
Status
Not open for further replies.
Back
Top