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

How to make immolation drain Hp

Status
Not open for further replies.
Level 13
Joined
Aug 19, 2014
Messages
1,111
Hello guys I just wanna ask how the immolation spell will drain HP instead of mana and also upon activation of the spell. I want to create a hero in my map that uses HP to cast his spells. I would be greatful if someone could show me how.
 

Deleted member 238589

D

Deleted member 238589

I think it can be done in the object editor, by making the spell affect the caster himself, and reducing the mana cost to zero.
 
Level 25
Joined
May 11, 2007
Messages
4,650
Just trigger the hp loss.
Events: "A unit starts the effect of an ability"
Conditions: ability being cast = DzIsSoHawt
Actions:
Unit - Cause Triggering unit to damage Triggering unit for 100 hp.

Or create a dummy unit that does the damage if the triggering unit can't damage himself. He should be able tho.
 
Level 13
Joined
Aug 19, 2014
Messages
1,111
What I mean is the hero's HP will be drained when immolation is on and it will cost him a HP upon activation too, the effects are still the same nearby enemy units will receive damage per second. So basically the only thing that needed to be change is the mana cost and drained mana into HP cost and drained HP. Also should It be MUI too in order for the spell to work when many instances, even though only the mana cost and mana drained are change via triggers?
 
Level 21
Joined
Jul 27, 2008
Messages
14,361
To be honest what Imperator and LordDz told you should work, just combine them. There is no need to complicate things by using triggers to remove mana cost when you can do it in object editor without risk.

Just make changes in Object editor like Imperator said and you get no mana cost and hero is damaged. Then do what LordDz told you and then hero will first lose 100 hp when he casts spell.
 
Level 23
Joined
Feb 6, 2014
Messages
2,466
If the HP Drain is the same as the immolation damage, just check 'Self' in Targets Allowed of immolation ability. If you want the hp drain different to the damage, do something like this
  • Altered Immolation HP Drain
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in immolationCasters and do (Actions)
        • Loop - Actions
          • Unit - Cause (Picked unit) to damage (Picked unit), dealing 5.00 damage of attack type Spells and damage type Magic
For the HP required in Activating the spell, follow what LordDz suggested
 
Status
Not open for further replies.
Top