I have a two team map. But I have a problem with calling certain players depending on the amount of active players. Meaning, First player on team one is 1, but when there are only two players, the first player on team two is player 2, instead of player 7 (6 players per team).
I use a few loops to fit the player into a variable to call on later appropriately, but is there a better way of doing this?
Click "1" Click "Function" go down to "player from player group"
Click the bracket before (Allies of... and change it to "Active players.
So now you have
Add player (Player 1 from (active players)) to Team 1.
What this does, is it finds all the active players and treats them as a group. It then finds the first player in that group and adds it to team 1. It's the same way Unit groups work where it says Unit 1 from unit group. 1 is the first guy in the unit group.
So you have:
Map initialization:
Add player (Player 1 from (active players)) to Team 1.
Add player (Player 2 from (active players)) to Team 2.
Add player (Player 3 from (active players)) to Team 1.
Add player (Player 4 from (active players)) to Team 2.
Add player (Player 5 from (active players)) to Team 1.
Add player (Player 6 from (active players)) to Team 2.
Add player (Player 7 from (active players)) to Team 1.
Add player (Player 8 from (active players)) to Team 2.
Add player (Player 9 from (active players)) to Team 1.
Add player (Player 10 from (active players)) to Team 2.
I haven't tested this but it makes sense.
Now after that,
Set alliance team 1 allied with Shared vision
Set alliance team 2 allied with Shared vision
That seems much simpler to me.
That's what you are trying to accomplish right? Even if it doesn't work, you can use that as an example of what you want to accomplish. It reads WAY easier than what you have written up there.
I have a two team map. But I have a problem with calling certain players depending on the amount of active players. Meaning, First player on team one is 1, but when there are only two players, the first player on team two is player 2, instead of player 7 (6 players per team).
I use a few loops to fit the player into a variable to call on later appropriately, but is there a better way of doing this?
Here is an example of what I do:
pick each player in team 1 {
set playerNum[player] = count
player = player+1
count = count+1
}
set count = 7
pick each player in team 2 {
set playerNum[player] = count
player = player+1
count = count+1
}
I was half asleep when I first posted this. So I edited it to make sense. ^_-
Add player to player group
Click "1" Click "Function" go down to "player from player group" Click the bracket before (Allies of... and change it to "Active players.
So now you have
Add player (Player 1 from (active players)) to Team 1.
What this does, is it finds all the active players and treats them as a group. It then finds the first player in that group and adds it to team 1. It's the same way Unit groups work where it says Unit 1 from unit group. 1 is the first guy in the unit group.
So you have:
Map initialization:
Add player (Player 1 from (active players)) to Team 1.
Add player (Player 2 from (active players)) to Team 2.
Add player (Player 3 from (active players)) to Team 1.
Add player (Player 4 from (active players)) to Team 2.
Add player (Player 5 from (active players)) to Team 1.
Add player (Player 6 from (active players)) to Team 2.
Add player (Player 7 from (active players)) to Team 1.
Add player (Player 8 from (active players)) to Team 2.
Add player (Player 9 from (active players)) to Team 1.
Add player (Player 10 from (active players)) to Team 2.
I haven't tested this but it makes sense.
Now after that, Set alliance team 1 allied with Shared vision
Set alliance team 2 allied with Shared vision
That seems much simpler to me.
That's what you are trying to accomplish right? Even if it doesn't work, you can use that as an example of what you want to accomplish. It reads WAY easier than what you have written up there.