• 🏆 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!

[Trigger] Healing Spell

Status
Not open for further replies.
Level 8
Joined
Aug 19, 2007
Messages
294
Hello, i need help with a healing spell.
The spell should give 4% of target unit max life.

Here is my work... (based on the normal priest heal)
  • Healing
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Heal
    • Actions
      • Unit - Set life of (Target unit of ability being cast) to (((Real((String((Max life of (Target unit of ability being cast)))))) - (Real((String((Life of (Target unit of ability being cast))))))) + ((Real((String((Max life of (Target unit of ability being cast)))))) x 0.04))
 
Level 8
Joined
Aug 19, 2007
Messages
294
Yes this work, but what about leak?
  • Healing
  • Healing Copy
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Heal
    • 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 4.00)
      • Unit - Set life of (Target unit of ability being cast) to (Healing1 + Healing2)
 
Last edited:
Status
Not open for further replies.
Top