stan0033
Banned
- Joined
- Jun 27, 2010
- Messages
- 2,683
I want to share control of the units of the players who leave. So, I amde these, but it's not working somehow
- Set Player[1] = Player 1 (Red)
- Set Player[2] = Player 2 (Blue)
- Set Player[3] = Player 3 (Teal)
- Set Player[4] = Player 4 (Purple)
- Set Player[5] = Player 5 (Yellow)
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
- Player Group - Add Player[(Integer A)] to Allplayers
-
Loop - Actions
-
Leave Info
-
Events
- Player - Player 1 (Red) leaves the game
- Player - Player 2 (Blue) leaves the game
- Player - Player 3 (Teal) leaves the game
- Player - Player 4 (Purple) leaves the game
- Player - Player 5 (Yellow) leaves the game
- Conditions
-
Actions
- Player Group - Add (Triggering player) to A_LEFT_PRS
- Player Group - Remove (Triggering player) from Allplayers
- Game - Display to (All players) the text: (PLayer_Colors[(Player number of (Triggering player))] + ((Name of (Triggering player)) + (( + (|r|cffff0000 + ((Name of Hero[(Player number of (Triggering player))]) + |r|cffffcc00) left the game!)))))
- Sound - Play UpkeepRing <gen>
- Player Group - Make Allplayers treat A_LEFT_PRS as an Ally with shared vision and full shared units
-
Events