- Joined
- Sep 6, 2012
- Messages
- 88
Hi everyone !
I have a spell based on Cripple, and I create a trigger so that:
-If the target has no Cripple buff, the spell applies the buff.
-If the target has Cripple buff, the buff is removed and the target is damaged.
Here's the trigger:
Thank you very much !
I have a spell based on Cripple, and I create a trigger so that:
-If the target has no Cripple buff, the spell applies the buff.
-If the target has Cripple buff, the buff is removed and the target is damaged.
Here's the trigger:
-
Events
-

Unit - A unit Starts the effect of an ability
-
-
Conditions
-

(Ability being cast) Equal to Cripple
-
-
Actions
-

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-


If - Conditions
-



((Target unit of ability being cast) has buff Cripple ) Equal to True
-
-


Then - Actions
-



If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-




If - Conditions
-





(Level of Cripple for (Triggering unit)) Equal to 1
-
-




Then - Actions
-





Set Temp_Real = ((Life of (Target unit of ability being cast)) x 0.40)
-





Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) x 0.60)
-
-




Else - Actions
-





Set Temp_Real = ((Life of (Target unit of ability being cast)) x 0.80)
-





Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) x 0.20)
-
-
-



Unit - Remove Cripple buff from (Target unit of ability being cast)
-
-


Else - Actions
-
-
Thank you very much !
