I want my 3v3 custom map to let players arrange their own teams in the lobby, and once the game starts, the teams should be properly allied and set up.
How to do so?
Also, will the teams be composed of players 1 to 3, and players 4 to 6 respectively? It is kind of a requirement since I plan on using "Pick Each Integer from 1 to 3" and "from 4 to 6" to apply different actions to all players of both teams.
EDIT:
Here is the trigger aalleecc made for me, but it's kind of annoying to know that I'll have to use an array-variable to refer to players from now on. If someone knows a better way, please share!
Trigger
General - Pick each integer from 1 to 6, and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Start location of player (Picked integer)) == P1 Start
Then
Variable - Set PlayerID[1] = (Picked integer)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Start location of player (Picked integer)) == P2 Start
Then
Variable - Set PlayerID[2] = (Picked integer)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Start location of player (Picked integer)) == P3 Start
Then
Variable - Set PlayerID[3] = (Picked integer)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Start location of player (Picked integer)) == P4 Start
Then
Variable - Set PlayerID[4] = (Picked integer)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Start location of player (Picked integer)) == P5 Start
Then
Variable - Set PlayerID[5] = (Picked integer)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Start location of player (Picked integer)) == P6 Start
Then
Variable - Set PlayerID[6] = (Picked integer)
Else
Player - Make player PlayerID[1] and player PlayerID[2] treat each other as Ally With Shared Vision
Player - Make player PlayerID[1] and player PlayerID[3] treat each other as Ally With Shared Vision
Player - Make player PlayerID[2] and player PlayerID[3] treat each other as Ally With Shared Vision
Player - Make player PlayerID[4] and player PlayerID[5] treat each other as Ally With Shared Vision
Player - Make player PlayerID[4] and player PlayerID[6] treat each other as Ally With Shared Vision
Player - Make player PlayerID[5] and player PlayerID[6] treat each other as Ally With Shared Vision
Player - Make player PlayerID[1] and player PlayerID[4] treat each other as Enemy
Player - Make player PlayerID[1] and player PlayerID[5] treat each other as Enemy
Player - Make player PlayerID[1] and player PlayerID[6] treat each other as Enemy
Player - Make player PlayerID[2] and player PlayerID[4] treat each other as Enemy
Player - Make player PlayerID[2] and player PlayerID[5] treat each other as Enemy
Player - Make player PlayerID[2] and player PlayerID[6] treat each other as Enemy
Player - Make player PlayerID[3] and player PlayerID[4] treat each other as Enemy
Player - Make player PlayerID[3] and player PlayerID[5] treat each other as Enemy
Player - Make player PlayerID[3] and player PlayerID[6] treat each other as Enemy
Post has been edited 1 time(s), last time on Jan 13 2011, 1:59 am by payne.
None.
An artist's depiction of an Extended Unit Death
I would use If/Then/Else-If for the first part.
I'm not sure exactly how the lobby functions, but I've heard enough to have the impression that it is odd. This looks like a good solution to the problem, and I can't think of one where you can keep the regular player numbers.