Hello again,
How to show a game message only for a single a player? In this case, the movement speed of the selected unit. Here is what I did, but it shows the message for all players (also prevents the selected units from casting spells till you type -ms again).
How to show a game message only for a single a player? In this case, the movement speed of the selected unit. Here is what I did, but it shows the message for all players (also prevents the selected units from casting spells till you type -ms again).
-
Movement Speed
-
Events
- Player - Player 1 (Red) types a chat message containing -ms as An exact match
- Player - Player 2 (Blue) types a chat message containing -ms as An exact match
- Player - Player 3 (Teal) types a chat message containing -ms as An exact match
- Player - Player 4 (Purple) types a chat message containing -ms as An exact match
- Player - Player 5 (Yellow) types a chat message containing -ms as An exact match
- Player - Player 6 (Orange) types a chat message containing -ms as An exact match
- Player - Player 7 (Green) types a chat message containing -ms as An exact match
- Player - Player 8 (Pink) types a chat message containing -ms as An exact match
- Player - Player 9 (Gray) types a chat message containing -ms as An exact match
- Player - Player 10 (Light Blue) types a chat message containing -ms as An exact match
- Player - Player 11 (Dark Green) types a chat message containing -ms as An exact match
- Player - Player 12 (Brown) types a chat message containing -ms as An exact match
- Conditions
-
Actions
- Set Selection = (Units currently selected by (Triggering player))
-
Unit Group - Pick every unit in Selection and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Picked unit)) Equal to (Triggering player)
-
Then - Actions
- Game - Display to (All players matching ((Owner of (Picked unit)) Equal to (Triggering player))) the text: ((Name of (Picked unit)) + ( movement speed: + (String((Integer((Current movement speed of (Picked unit))))))))
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events