I want to make a spell like: gain 10% strength, then after 25 seconds, remove the bonus. But it didn't work.
Thanks for helping me out ^^
EDIT: fail thread name :v i mean temporary, sorry and i don't know how to change it bleh
-
Events
-

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

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

Set A_unit = (Casting unit)
-

Unit - Set life of A_unit to ((Life of A_unit) - ((Life of A_unit) x ((Real((Level of Accretion for A_unit))) x 0.08)))
-

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


If - Conditions
-



Acc_duration Equal to 0.00
-
-


Then - Actions
-



Trigger - Turn on Acc Loop <gen>
-
-


Else - Actions
-
-

Set Acc_duration = 25.00
-

Set A_Str = ((Strength of A_unit (Include bonuses)) x (1 / 10))
-

Hero - Modify Strength of A_unit: Add A_Str
-

Special Effect - Create a special effect attached to the weapond of A_unit using Abilities\Weapons\SludgeMissile\SludgeMissile.mdl
-

Set A_Seff = (Last created special effect)
-
-
Acc Loop
-

Events
-


Time - Every 0.30 seconds of game time
-
-

Conditions
-

Actions
-


Set Acc_duration = (Acc_duration - 0.30)
-


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



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






Acc_duration Less than or equal to 0.00
-






(A_unit is alive) Equal to False
-
-
-
-



Then - Actions
-




Set Acc_duration = 0.00
-




Hero - Modify Strength of A_unit: Subtract A_Str
-




Special Effect - Destroy A_Seff
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-
-
Thanks for helping me out ^^
EDIT: fail thread name :v i mean temporary, sorry and i don't know how to change it bleh



