• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Root (additional reg when standing still)

Status
Not open for further replies.
Level 17
Joined
Jan 21, 2007
Messages
2,014
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.
 
Level 11
Joined
Oct 13, 2005
Messages
233
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.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
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)
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Well emperor_d3st is correct.
At the current state, when the unit is stunned or casting or channeling it will not have increased regeneration.
 
Level 11
Joined
Apr 6, 2008
Messages
760
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
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
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.
 
Level 17
Joined
Jan 21, 2007
Messages
2,014
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.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
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.
Top