• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Healing Detection

Status
Not open for further replies.
Level 5
Joined
Jun 29, 2009
Messages
142
Quick Question:

Well I know how to make a damage detection system that creates floating text above the unit for how much damage you deal... blah blah blah

Is there a way to detect how much health was healed on an ally or self and create a green floating text over that person? Is it possible in GUI or does it have to be jass?

Please post the answer or a link to a useful system (preferably GUI)
 
You firstly need to make a trigger, that counts the regeneration of the hero. After that, you will make a trigger that checks when one of your healing abilities is cast. Up to the cast delay of each of the abilities, you will create one timer that will expire in 0.00 seconds for example. You will save the target unit (the healed one) to the timer and load it when the timer expires. If the health of the unit becomes greater than the default regeneration, it means that it got healed. Make an abstraction of health a and health b (b is the after-heal) and you'll get the amount of heal.
 
Status
Not open for further replies.
Top