L
Lord_Ook
Guest
I have a few trigger abilites that do damage based on certain integer's........heres the code, when a hero dies by this why dont the if actions work and hwo could i make them work.
Events
Unit-Starts the Effect of an Ability
Conditions
(Ability Being Cast) Equal to Vorpal Arrow
Actions
Set Vorpalded = ((Hero level of(target unit of ability being cast)) x 20)
Set Vorpal = ((Hero level of(triggering unit)) x 80)
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - ((Max mana of (Casting unit)) / 4.00)
Wait 1.00 seconds
If - Conditions
(((Target unit of ability being cast) is a hero) Equal to True) and (((Target unit of ability being cast) is dead) Equal to True)
Then - Actions
Player - Set (Owner of (Target unit of ability being cast)) Current gold to (((Owner of (Target unit of ability being cast)) Current Gold) - Vorpalded
Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current Gold) + Vorpald
Game - Diaply to ...blah lbah blah you get the picture =)
Events
Unit-Starts the Effect of an Ability
Conditions
(Ability Being Cast) Equal to Vorpal Arrow
Actions
Set Vorpalded = ((Hero level of(target unit of ability being cast)) x 20)
Set Vorpal = ((Hero level of(triggering unit)) x 80)
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - ((Max mana of (Casting unit)) / 4.00)
Wait 1.00 seconds
If - Conditions
(((Target unit of ability being cast) is a hero) Equal to True) and (((Target unit of ability being cast) is dead) Equal to True)
Then - Actions
Player - Set (Owner of (Target unit of ability being cast)) Current gold to (((Owner of (Target unit of ability being cast)) Current Gold) - Vorpalded
Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current Gold) + Vorpald
Game - Diaply to ...blah lbah blah you get the picture =)


