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

[Solved] Healing by Percent

Status
Not open for further replies.
Level 11
Joined
May 8, 2009
Messages
275
  • Actions
    • Set LifeValue = (0.20 x (Life of (YourHero)))
    • Unit - Set life of (YourHero) to ((Life of (YourHero)) + LifeValue)
Now you might want to add this in case the healing should restore his entire life (without that, its health won't fully replenish)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Life of (YourHero)) +LifeValue) Greater than or equal to (Max life of (YourHero))
    • Then - Actions
      • Unit - Set life of (YourHero) to (Max life of (YourHero))
    • Else - Actions
 
Status
Not open for further replies.
Top