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

"%" Healing

Status
Not open for further replies.
Level 10
Joined
Sep 6, 2008
Messages
423
revolve there is no "heal" action.. i'll make you a trigger
  • Heal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Heal
    • Actions
      • -------- This trigger will heal 33% of the units max hp --------
      • Set Hp_Healed = ((Max life of (Target unit of ability being cast)) / 3.00)
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + Hp_Healed)
Hope this is what you want :cute: just the set hp_healed (real variable) to what the unit should be healed (it's 33% now since 100%/3=33%)
 
Level 8
Joined
Aug 19, 2007
Messages
294
Ive used this one
  • Advanced Healing
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Advanced Healing
    • Actions
      • Set Healing1 = (Real((String((Life of (Target unit of ability being cast))))))
      • Set Healing2 = (((Real((String((Max life of (Target unit of ability being cast)))))) / 100.00) x 5.00)
      • Unit - Set life of (Target unit of ability being cast) to (Healing1 + Healing2)
 
Level 4
Joined
May 2, 2009
Messages
69
This is kind of a weird way to do it, but it's actually simple, and it works.
  • Simple Way
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Heal
    • Actions
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (0.00 - ((Max life of (Target unit of ability being cast)) x 0.30)) damage of attack type Spells and damage type Divine
Hope it helps!:thumbs_up:
 
Status
Not open for further replies.
Top