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

Add health spell

Status
Not open for further replies.
Level 13
Joined
Oct 16, 2010
Messages
737
Hi, this is a simple spell really.

It's a passive that when the unit with "Immortality" (Reincarnation) gets a kill it will get 25 extra hit points. That works, the part that doesn't work is that I want it to continue gaining hit points from kills but it only works once then stops. Any ideas?

  • Immortality Kill
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Killing unit) is alive) Equal to True
      • (Owner of (Killing unit)) Not equal to (Owner of (Dying unit))
      • ((Owner of (Dying unit)) is an enemy of (Owner of (Killing unit))) Equal to True
      • (Level of Immortality (Animal) for (Killing unit)) Greater than or equal to 1
    • Actions
      • Unit - Add Item Life Bonus (Immortality - Animals) to (Killing unit)
 
Level 8
Joined
Feb 3, 2013
Messages
277
what you can do is this
give the item bonus ability 2 levels, set the first level bonus to 0 and the second bonus level to -(the amount you want). Yes, a negative value. Make sure to have negative values allowed. Shift + Enter on the data field to set a negative value.

then in the trigger editor, give the unit the ability, set the level to 2 and remove it
the cool thing about this trick is that item bonus ability does not update when leveld via trigger, but when it is removed from the system thinks the item ability's bonus has been applied and will take off whatever bonus the ability was supposed to have given. So basically you can give your units bonus max hp, without giving it any item or using any upgrades.

This only works for the item bonus life and mana ability and not anything else though.

Btw, for condition, you can just do
Owner of TriggerUnit is an enemy of Owner of Killing Unit
Level of Immortality for Killing Unit Greater than or equal to 1

ability guide info taken from this kinky guide - i suggest you read it if you have time.
 
Level 12
Joined
Nov 3, 2013
Messages
989
For bonus damage you just add tome of dmg and Move speed i think you can increase through trigger. Also as it's now you won't get hp if you die before the kill.

Like projectile or dot or w/e so you might want to change that.
 
Level 12
Joined
Nov 3, 2013
Messages
989
Hmm this is for units not heroes so the tomes won't work? Also I put that in as I was worried that it might cause problems adding abilities to dead units and such, if there isn't a problem there then I'll remove it.

Just add inventory ability -> give tome -> remove inventory ability.

This is only for the add damage since like others have mentioned before you can use the ability trick for hp/mana.
 
Status
Not open for further replies.
Top