Hello guys,
I have an old trigger, which amplifies movement speed whenever a hero levels up, but since it was to static the way I did it I wanted to translate it into a real variable (which I wanted to have the same effect, but more flexible)
Here is the old trigger (static):
and here is the new one I tried
Its important to mention, that I don't want temporary speed amplifications like buffs or debuffs to be calculated when reducing the movement speed (ignored when leveling up under the effect of buff/debuffs)
I have an old trigger, which amplifies movement speed whenever a hero levels up, but since it was to static the way I did it I wanted to translate it into a real variable (which I wanted to have the same effect, but more flexible)
Here is the old trigger (static):
-
Movement Speed Copy
-
Events
-
Unit - A unit Gains a level
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) has buff Cripple) Equal to False
-
((Triggering unit) has buff Berserk) Equal to False
-
-
Then - Actions
-
Unit - Set (Triggering unit) movement speed to ((Current movement speed of (Triggering unit)) - 2.50)
-
-
Else - Actions
-
-
-
and here is the new one I tried
-
Set Up MovementSpeed
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set VariableSet MovementSpeed_REAL = ((Default movement speed of (Triggering unit)) - (2.50 x (Real((Hero level of (Triggering unit))))))
-
-
-
Movement Speed
-
Events
-
Unit - A unit Gains a level
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Unit - Set (Triggering unit) movement speed to MovementSpeed_REAL
-
-
Else - Actions
-
-
-
Its important to mention, that I don't want temporary speed amplifications like buffs or debuffs to be calculated when reducing the movement speed (ignored when leveling up under the effect of buff/debuffs)
Last edited: