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

Pls help me solve this....

Status
Not open for further replies.
Level 3
Joined
Aug 11, 2004
Messages
45
im trying to make a spell which would kill the unit when it has 20% hp or less but its not killing the unit...what should i do? check this

Events
Unit - A unit Finishes casting an ability

Conditions
(Ability being cast) Equal to Execute

Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of (Target unit of ability being cast)) Less than 20.00
Then - Actions
Player - Add ((Hero level of (Target unit of ability being cast)) x 10) to (Owner of (Casting unit)) Current gold
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 999999.00 damage of attack type Spells and damage type Normal
Else - Actions
Animation - Play (Casting unit)'s Attack slam animation
Do nothing


(PS: casting unit must have the gold reward)
 
Last edited:
Status
Not open for further replies.
Top