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

[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