- Joined
- Oct 6, 2022
- Messages
- 213
Hello guys, i was trying to make a "movement speed" control where if the unit's movement speed is greater then its default speed, increases "+ 150". but if it return to its default speed it resets to its default speed. Here's my trigger, did i did it right?
-
MovementSpeedOnly
-

Events
-


Unit - A unit Gains a level
-
-

Conditions
-


And - All (Conditions) are true
-



Conditions
-




(Level of (Leveling Hero)) Greater than 0
-




(Unit-type of (Leveling Hero)) Equal to Number 83 of Genius Society
-
-
-
-

Actions
-


Set Herta[1] = (Leveling Hero)
-


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



If - Conditions
-




(Current movement speed of Herta[1]) Greater than 150.00
-
-



Then - Actions
-




Game - Display to (All players) the text: start
-




Unit - Set Herta[1] movement speed to ((Current movement speed of Herta[1]) + 150.00)
-
-



Else - Actions
-




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





If - Conditions
-






(Current movement speed of Herta[1]) Less than or equal to 150.00
-
-





Then - Actions
-






Game - Display to (All players) the text: end
-






Unit - Set Herta[1] movement speed to (Default movement speed of (Triggering unit))
-
-





Else - Actions
-
-
-
-
-

