• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

"%" 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