chaostoderm
New Member
- Reaction score
- 0
ok what i want here is when player 2 Blue (presumably the game host) types -sp or - shuffleplayers, each player on both teams is randomly reassigned to form 2 new teams.
I know the gist of it is to add them to an empty group and then start randomly assigning them to team A then team B. But the issue i have is how to change their colors and reassign all units they already have at this point in time. (circle of powers e.g.). For example there are 6 players, 3 on each team. Blue types -sp and the players are reassigned so now blue is now supposedly pink on team B. But his circle of power is still blue and on Team A's side of the map and he is suppose to be having pinks circle of power under his ownership. Also, for triggers using player numbers (Arrays), wouldnt blue be using number 2 although in actual fact he is already supposed to be player pink, (number 8).
So my question is how to properly assign them their new colors and all the units they are actually supposed to own (units of their new colors). And what to do about their player numbers that may affect arrays in triggers.
I know the gist of it is to add them to an empty group and then start randomly assigning them to team A then team B. But the issue i have is how to change their colors and reassign all units they already have at this point in time. (circle of powers e.g.). For example there are 6 players, 3 on each team. Blue types -sp and the players are reassigned so now blue is now supposedly pink on team B. But his circle of power is still blue and on Team A's side of the map and he is suppose to be having pinks circle of power under his ownership. Also, for triggers using player numbers (Arrays), wouldnt blue be using number 2 although in actual fact he is already supposed to be player pink, (number 8).
So my question is how to properly assign them their new colors and all the units they are actually supposed to own (units of their new colors). And what to do about their player numbers that may affect arrays in triggers.