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

Execute

Status
Not open for further replies.

CocoNuT_old

C

CocoNuT_old

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