• 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.

simple spell request

Status
Not open for further replies.
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