Is there a way to choose what player # you are in the game lobby? I have a custom game, hero battle, with 2 types of players on each side. There are a total of 6 human players and 2 computers on each side.
1 of the human players on each side has the option of playing a command ship or starcruiser, while the other 2 players has the option of choosing to control and command the bases and armies.
What I want to do is have the ability to choose, in the game lobby, where you are starting as. IE. Starting as player 4 which would be the right side of the map as the commander of the command ship or players 5 and 6 which control the bases and armies.
Not sure how to go about this. In Starcraft 1 it was simply a matter of moving your name around in the game lobby to the appropriate spot. I don't think it's that simple in SC2. I never had an issue with team placement until I created two unique types of players on each team. I.E. one that commands a single hero and 2 others that command bases only.
So there is no way to change which player you are in the game lobby? How would you do it with triggers in game? Lets say player 9 is assigned to a specific role. If any player enters the game, he should be able to choose to be player 9 so he can get that role.
use game attributes. have a look at notd:so, it assigns main leader and so on with attributes in the lobby and they are easily accesible through triggers.
Part of the problem is there are certain triggers tied to certain players. I.E. Player 9, or 11. Those players have certain abilities based off of their hero selection, while other players don't even have a hero because they have a different role in the game. If you create the game how can you assign yourself automatically as player 9 or assign someone else as player 9? Im beginning to think there isn't a way to do that because sc2 assignment of players simply doesn't work that way.
exactly, player 9 becomes a player attribute which can be selected by a player in lobby. if there are already units on ther map by default you have to change ownership.
I have figured out how to set the game attributes but which specific trigger actions modify player # values in the game? I couldn't find any specific trigger actions that access the player attributes to modify player #.
use a variable in game. let's call it player9 of type int. at map start you iterate through all players and check for the player attribute. if player attribute == yourplayer9thing then set player9 == current player. if you want to enable certains things then use a dummy upgrade and set it to 1 for the player9. now base requirements on this dummy upgrade to enable abilities, buttons w/e.
After the iterations which function or action would actually change the player #?
Here is what I came up with so far but I'm not really sure what would actually change the player #. Thanks for the help.
General - For each integer Players Integer from 1 to 14 with increment 1, do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Role Selection value for player Players Integer) == Ship Commander A Team 1
Then
Is there a way to choose what player # you are in the game lobby? I have a custom game, hero battle, with 2 types of players on each side. There are a total of 6 human players and 2 computers on each side.
1 of the human players on each side has the option of playing a command ship or starcruiser, while the other 2 players has the option of choosing to control and command the bases and armies.
What I want to do is have the ability to choose, in the game lobby, where you are starting as. IE. Starting as player 4 which would be the right side of the map as the commander of the command ship or players 5 and 6 which control the bases and armies.
Not sure how to go about this. In Starcraft 1 it was simply a matter of moving your name around in the game lobby to the appropriate spot. I don't think it's that simple in SC2. I never had an issue with team placement until I created two unique types of players on each team. I.E. one that commands a single hero and 2 others that command bases only.
Anyone know how to accomplish this task?
@onlyleviathan: Go
In bnet, players are assigned according to when they enter, not position. There is a function to compare players in respect to teams to sort this out.
@hobbidude: Go
So there is no way to change which player you are in the game lobby? How would you do it with triggers in game? Lets say player 9 is assigned to a specific role. If any player enters the game, he should be able to choose to be player 9 so he can get that role.
I'd use dialogs. They are custom made menus.
@onlyleviathan: Go
use game attributes. have a look at notd:so, it assigns main leader and so on with attributes in the lobby and they are easily accesible through triggers.
@FunkyUserName: Go
Yes,
Part of the problem is there are certain triggers tied to certain players. I.E. Player 9, or 11. Those players have certain abilities based off of their hero selection, while other players don't even have a hero because they have a different role in the game. If you create the game how can you assign yourself automatically as player 9 or assign someone else as player 9? Im beginning to think there isn't a way to do that because sc2 assignment of players simply doesn't work that way.
@onlyleviathan: Go
exactly, player 9 becomes a player attribute which can be selected by a player in lobby. if there are already units on ther map by default you have to change ownership.
@FunkyUserName: Go
I have figured out how to set the game attributes but which specific trigger actions modify player # values in the game? I couldn't find any specific trigger actions that access the player attributes to modify player #.
@onlyleviathan: Go
use a variable in game. let's call it player9 of type int. at map start you iterate through all players and check for the player attribute. if player attribute == yourplayer9thing then set player9 == current player. if you want to enable certains things then use a dummy upgrade and set it to 1 for the player9. now base requirements on this dummy upgrade to enable abilities, buttons w/e.
@FunkyUserName: Go
That works!
@onlyleviathan: Go
After the iterations which function or action would actually change the player #?
Here is what I came up with so far but I'm not really sure what would actually change the player #. Thanks for the help.
General - For each integer Players Integer from 1 to 14 with increment 1, do (Actions) Actions General - If (Conditions) then do (Actions) else do (Actions) If (Role Selection value for player Players Integer) == Ship Commander A Team 1 Then
@onlyleviathan: Go
you cannot change the player number