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

Not-Autocast Replenish Life

Status
Not open for further replies.
Umm what? lol.
It shouldn't be hard at all with triggers, just use some targetable spell for its template, add percentage mana/hp+ to the targeted unit in loop.

If you can't do that, what's exactly your problem "Formulas made my brain shit."?


I could create this for you, if you want, I just want explanation why you can't make it.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Well, from my experience, Replenish life/mana ability lies in Moon Well of NE, right ?
It's easy or something... ?
Do you want a unit to have this ability?
Do you mean this certain unit acts as walking moon well ?

EDIT:
Okay...
It may sounds harder than it seems...
Judging by your gems, it IS hard for someone like you, well, if for me?
It's @#$%^&* ridiculous
In the meantime, I'll see what I can do
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
  • ReplenishLife
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Replenish Life
    • Actions
      • Set MANA_RATE = 0.50
      • -------- --------
      • Set Caster = (Triggering unit)
      • Set Target = (Target unit of ability being cast)
      • -------- --------
      • Set LostLife = ((Max life of Target) - (Life of Target))
      • Set CasterMana = (Mana of Caster)
      • Set CanHeal = (MANA_RATE x CasterMana)
      • -------- --------
      • Unit - Set life of Target to ((Life of Target) + CanHeal)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • CanHeal Less than or equal to LostLife
        • Then - Actions
          • Unit - Set mana of Caster to 0.00
        • Else - Actions
          • Unit - Set mana of Caster to (CasterMana - (LostLife / MANA_RATE))
MANA_RATE is the amount of life restored from one mana point.

It probably would be a good idea to base Replenish Life off of Healing Wave.
 

Attachments

  • ReplenishLife.w3x
    13.4 KB · Views: 48
Status
Not open for further replies.
Top