• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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.
 
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.
 
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.
 
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?
 
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.
 
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.
Back
Top