S
Sir-Whiskey
Guest
I want to make an instant kill ability that is user activated and targeted and only has a chance to be sucessful. How would I do this using a trigger?
Events: Unit starts the effect of an ability
Conditions: Ability being cast equal to (YourAbility)
Actions: Set [Random] = (Math (Random Number between 1-100)) - If ([Random] less than or equal to 20{for 20%}) then do Unit - Kill (Target unit of ability being cast) else do (Game - Display to (Owner of Casting unit): You have failed at casting the spell)