How can i assign a place in the lobby for a position of a player in the map. It seems that no matter what position i go to, the first player will always be the first player. I want him to be assigned the position of the lobby place he is in. Is this possible?
As far as I know, there's no way to detect what position a player had in the lobby and it wouldn't be that useful if you could because it kinda randomly shuffles players as they join/leave.
However, you can detect which team a player was in using the Players On Team function that returns a player group.
The thing is, i have all this units preplaced already in specific locations. Units that each player will use since theyre hero units. The problem is, that if theres only 2 players on lobby then there will be no competition, because both players will end up on same team, and thats now what we want.
If all players are in same team in lobby then you can assign variable of type integer to player from team. For example player 3 from team 1 will be your player 3 from top in the lobby. Again proven that all players are in same team. You could also give all players different team in lobby and then player 1 from team 3 will be your third player from top in lobby.
If all players are in same team in lobby then you can assign variable of type integer to player from team. For example player 3 from team 1 will be your player 3 from top in the lobby. Again proven that all players are in same team. You could also give all players different team in lobby and then player 1 from team 3 will be your third player from top in lobby.
Could u exemplify how it should look in the trigger module?
Starcraft 1 used to allow you to do this. I don't particular care for SC2s lobby system so I like to use in game alliance setup. If you wanted you could use Dialogs for players to choose their role when the game starts. When player uses dialog item, then you change ownership of units/particular role for that player. Essentially, its the same thing as players choosing in the lobby, except you do it in the game with dialogs. Takes a bit longer to setup but has the same effect.
With the dialogs, you can even have some cool in game effects after they select a dialog. Like showing the hero specifications, or showing the player role.
If player chooses dialog item, add player to team and give appropriate units to that player.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How can i assign a place in the lobby for a position of a player in the map. It seems that no matter what position i go to, the first player will always be the first player. I want him to be assigned the position of the lobby place he is in. Is this possible?
As far as I know, there's no way to detect what position a player had in the lobby and it wouldn't be that useful if you could because it kinda randomly shuffles players as they join/leave.
However, you can detect which team a player was in using the Players On Team function that returns a player group.
The thing is, i have all this units preplaced already in specific locations. Units that each player will use since theyre hero units. The problem is, that if theres only 2 players on lobby then there will be no competition, because both players will end up on same team, and thats now what we want.
You can always change the alliances during the game and transfer ownership of units.
If all players are in same team in lobby then you can assign variable of type integer to player from team. For example player 3 from team 1 will be your player 3 from top in the lobby. Again proven that all players are in same team. You could also give all players different team in lobby and then player 1 from team 3 will be your third player from top in lobby.
Could u exemplify how it should look in the trigger module?
Here, just wait for admin approval.
Starcraft 1 used to allow you to do this. I don't particular care for SC2s lobby system so I like to use in game alliance setup. If you wanted you could use Dialogs for players to choose their role when the game starts. When player uses dialog item, then you change ownership of units/particular role for that player. Essentially, its the same thing as players choosing in the lobby, except you do it in the game with dialogs. Takes a bit longer to setup but has the same effect.
With the dialogs, you can even have some cool in game effects after they select a dialog. Like showing the hero specifications, or showing the player role.
If player chooses dialog item, add player to team and give appropriate units to that player.