• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

simple spell request

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
1/2/3/4% better regeneration
4% from... ?
Current regeneration ?
I think yes, we can track down values for custom regeneration (such as custom spell) but how to detect natural regeneration ?

I think it's pretty inaccurate even if you use some sort of trickery to detect the natural regeneration.
 
4% from... ?
Current regeneration ?
I think yes, we can track down values for custom regeneration (such as custom spell) but how to detect natural regeneration ?
What about increasing a value everytime your unit is healed (with spells and such) and decreasing it if damaged.
(reduce/increase = damages/heals)

Then, OldLife (the one at the previous second) - NewLife (the actual one) + The value counting damages/healing = Regeneration

This would need a complete triggering for every damages or heal.

You check every second, after having the Regeneration value (example : 2.5 hp per second), you reset the value counting damages/heals.
 
Status
Not open for further replies.
Top