• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Increase Heal Amount

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2015
Messages
171
Is there someone that can make passive ability to increase heal amount from spell and potion? for example, when someone has this ability...they will recover bonus 20% hp from healing spell and potion than normal unit recover. Thanks
 
Level 8
Joined
Dec 10, 2006
Messages
67
So you want an ability that will supersize the effects of any healing ability cast upon any given unit with said ability? I have an idea as to how to do something like this but it would have to take into account any possible healing spell that could ever be used on any unit who could have this ability. The following is not actual code but an algorithm I'm creating on the fly and I'm making no promises as to how well it would actually work.

event:
- unit starts effects of ability
conditions:
- (target unit has ability in question) = true // this would be a custom ability based off a passive one like Moon Glaive or Vorpal Blades
actions:
- if (ability being cast = Heal) set life of target unit =
min (max life of target unit, (life of target unit) + 0.2 X (points restored by Heal))

- if (ability being cast = Holy Bolt) set life of target unit =
min (max life of target unit, (life of target unit) + 0.2 X (points restored by
Holy Bolt))
 
Status
Not open for further replies.
Top