exge
New Member
- Reaction score
- 15
ok .. my code actually gives random teams and the main problem is that, some heroes still spawn at their old location ... thus getting killed by the firebush .. so .. im sorta stuck
Code:
shuffle players
Events
Player - Player 2 (Blue) types a chat message containing -sp as An exact match
Conditions
Actions
Game - Display to (All players) the text: (playername[2] + has chosen |cffff0000Shuffle Players|r mode)
Player Group - Pick every player in Alliance and do (Actions)
Loop - Actions
Player Group - Add (Picked player) to Players
Player Group - Pick every player in Horde and do (Actions)
Loop - Actions
Player Group - Add (Picked player) to Players
Player Group - Remove all players from Alliance
Player Group - Remove all players from Horde
For each (Integer A) from 1 to (Number of players in Players), do (Actions)
Loop - Actions
Set player = (Random player from Players)
Player Group - Remove player from Players
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Integer A) mod 2) Equal to 1
Then - Actions
Point - Move (player start location) to offset((X of (Center of good revive <gen>)), (Y of (Center of good revive <gen>)))
Player Group - Add player to Alliance
Else - Actions
Point - Move (player start location) to offset((X of (Center of hero revive bad <gen>)), (Y of (Center of hero revive bad <gen>)))
Player Group - Add player to Horde
Player Group - Make Alliance treat Horde as an Enemy
Player Group - Make Horde treat Alliance as an Enemy
Player Group - Make Alliance treat Alliance as an Ally with shared vision
Player Group - Make Horde treat Horde as an Ally with shared vision
Player Group - Pick every player in Alliance and do (Actions)
Loop - Actions
Player - Make (Picked player) treat Player 1 (Red) as an Ally with shared vision
Player Group - Pick every player in Horde and do (Actions)
Loop - Actions
Player - Make (Picked player) treat Player 7 (Green) as an Ally with shared vision
Player Group - Pick every player in Horde and do (Actions)
Loop - Actions
Player - Make (Picked player) treat Player 1 (Red) as an Enemy
Player - Make Player 1 (Red) treat (Picked player) as an Enemy
Player Group - Pick every player in Alliance and do (Actions)
Loop - Actions
Player - Make (Picked player) treat Player 7 (Green) as an Enemy
Player - Make Player 7 (Green) treat (Picked player) as an Enemy