Hi, I need a trigger that will give a tower the abilty to freeze (no movement) a unit owned by Dark Green or Brown. One tower needs a 1% chance to do this, the other needs a 5% chance.
This is what i have, but it only spams the message and doesnt freeze the unit. Any ideas?
This is what i have, but it only spams the message and doesnt freeze the unit. Any ideas?
-
Freezing
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Owner of (Attacked unit)) Equal to Player 11 (Dark Green)) or ((Owner of (Attacked unit)) Equal to Player 12 (Brown))
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Attacking unit)) Equal to Sleet Tower
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 100) Equal to 10
- Then - Actions
-
Else - Actions
- Game - Display to (All players) the text: ((Name of (Owner of (Attacked unit))) + (has been frozen by + (Name of (Owner of (Attacking unit)))))
- Unit - Set (Attacked unit) movement speed to (Default movement speed of (Attacked unit))
- Wait 5.00 seconds
- Unit - Set (Attacked unit) movement speed to 0.00
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Attacking unit)) Equal to Frost Tower
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 20) Equal to 10
- Then - Actions
-
Else - Actions
- Game - Display to (All players) the text: ((Name of (Owner of (Attacked unit))) + (has been frozen by + (Name of (Owner of (Attacking unit)))))
- Unit - Set (Attacked unit) movement speed to 0.00
- Wait 5.00 seconds
- Unit - Set (Attacked unit) movement speed to (Default movement speed of (Attacked unit))
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events