You have a trigger that runs at map initialization.
It contains an array of Unit group variables.
You fill each of the X unit groups with all units owned by player X.
Then you take each unit group and change the owner to a random player.
You just have to make sure that each player only gets one of these groups.
So "Player 1" is always the host and they always get the same units in my custom map. Can I make the host not be "Player 1"?
Instead of preplacing the units, have them created via a trigger.
Make a trigger that sets a global variable to a random value 1 to the number of players in active players, then create the units for this player.
@Vanished131: Go
I'm sorry to ask but how would I do that?
You can never count on who in the game will have what player number in game... Dont even try.
An easy way would be:
You have a trigger that runs at map initialization.
It contains an array of Unit group variables.
You fill each of the X unit groups with all units owned by player X.
Then you take each unit group and change the owner to a random player.
You just have to make sure that each player only gets one of these groups.
@s3rius: Go
Can you do an example for me? I don't know how to do that.