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

Execute

Status
Not open for further replies.
Level 2
Joined
Jun 7, 2007
Messages
6
Hello,

now I have a new question :)
I wanna make an ability like 'Execute'. An unfriendly target will die instantly if the target has 20% HP or lower.

I hope everybody know what I want. :p
 
Level 2
Joined
Dec 30, 2006
Messages
11
you should use "cause triggering unit to damage (target unit of ability being cast) for 9999999 damage" instead of "kill unit" to give the triggering unit credit for killing the enemy.
 
Level 4
Joined
Jun 5, 2007
Messages
65
If you wanted to make the ability a bit more like it is in WoW, then you could use this trigger. Basically it does the same thing as the above one, but does an initial amount of damage (125.00) plus 3xExecuteMana(the amount of remaining mana the unit has). This variable should be a REAL type variable, not INTEGER. You might also want to change the 3 to the level of execute for the casting unit, if you have more than one level.

  • Execute
  • Events
  • Unit - A unit starts the effects of an ability
  • Conditions
  • (Percentage life of (Target unit of ability being cast)) Less than or equal to 20.00
  • (Ability Being Cast) Equal to Execute
  • Actions
  • Set ExecuteMana = (Mana of (Casting Unit))
  • Unit - Set Mana of (Casting Unit) to 0.00
  • Unit - Cause (Casting Unit) to damage (Target unit of ability being cast), dealing (125.00 + 3.00 x ExecuteMana)) damage of attack type Chaos and damage type Normal
 
Status
Not open for further replies.
Top