This is how I would do it. First make 2 Player group variables, and a player variable array, then make these triggers:
- Init
- Events
- Map initialization
- Conditions
- Actions
- -------- Add the players to team A --------
- Player Group - Add Player 1 (Red) to TeamA
- Player Group - Add Player 2 (Blue) to TeamA
- Player Group - Add Player 3 (Teal) to TeamA
- Player Group - Add Player 4 (Purple) to TeamA
- -------- Add the players to team B --------
- Player Group - Add Player 5 (Yellow) to TeamB
- Player Group - Add Player 6 (Orange) to TeamB
- Player Group - Add Player 7 (Green) to TeamB
- Player Group - Add Player 8 (Pink) to TeamB
- -------- Set the ally/enemy settings --------
- Player Group - Make TeamA treat TeamA as an Ally with shared vision
- Player Group - Make TeamA treat TeamB as an Enemy
- Player Group - Make TeamB treat TeamB as an Ally with shared vision
- Player Group - Make TeamB treat TeamA as an Enemy
You're trying to make a random player from both team's swop teams right? Or we're you trying to make 1 player switch, without being replaced? So 4v4 becomes 3v5?
- Switch Teams
- Events
- Time - Elapsed game time is 10.00 seconds
- Conditions
- Actions
- -------- Picks a random player from both teams --------
- Set RandomPlayerSwitch[1] = (Random player from TeamA)
- Set RandomPlayerSwitch[2] = (Random player from TeamB)
- -------- Swop both players to either side's team --------
- Player Group - Remove RandomPlayerSwitch[1] from TeamA
- Player Group - Add RandomPlayerSwitch[1] to TeamB
- Player Group - Remove RandomPlayerSwitch[2] from TeamB
- Player Group - Add RandomPlayerSwitch[2] to TeamA
- -------- Refresh the ally/enemy settings --------
- Player Group - Make TeamA treat TeamA as an Ally with shared vision
- Player Group - Make TeamA treat TeamB as an Enemy
- Player Group - Make TeamB treat TeamB as an Ally with shared vision
- Player Group - Make TeamB treat TeamA as an Enemy