By empty player slot i mean in player properties, the control is set to user but there is no human player controlling it.
Say the map is a 2 player custom map with player properties set to user.
If one player were to start the map by himself, I want it to turn the empty slot into a computer player w/ scripts and stuff.
Not exactly sure how the lobby system in SC2 works. How are slots set if the player slot control is user?
you will need to check to see if the game was started with an 'empty' player slot
(on map initialization)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Controller of player 1) == User
Then
Else
(pseudo code: Select all units owned by player 1 and give those units to player x)
By empty player slot i mean in player properties, the control is set to user but there is no human player controlling it.
Say the map is a 2 player custom map with player properties set to user.
If one player were to start the map by himself, I want it to turn the empty slot into a computer player w/ scripts and stuff.
Not exactly sure how the lobby system in SC2 works. How are slots set if the player slot control is user?
you will need to check to see if the game was started with an 'empty' player slot
(on map initialization)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Controller of player 1) == User
Then
Else
(pseudo code: Select all units owned by player 1 and give those units to player x)
so player x needs to be a computer player that already exists?