How do I allow people in the lobby to select what player/faction they are going to play, I would like it to work like the the Song of Ice and Fire arcade game lobby.
Quote from Knallertton:
You can actually make it so you can choose custom race in the lobby by going to Map -> Game Attributes then defining new PLAYER attribute and listing all races available in your game, this will be separate of real "race" so it won't affect anything in game comes with choosing race. After you have made you attribute you need to make it so it shows up in the lobby, by going to Map -> Game Variants and removing normal race selection and adding your custom attribute as the race selector. Then when the game starts you can get their selection of the race by doing a comparison of "Attribute Player Value"
General - If (Conditions) then do (Actions) else do (Actions)
If (Custom Race Attribute value for player 1) == Custom Race
You can also do this for the spawn position for example "Spawn Location" - Random, Top Left, Top Right... etc..
Hey Knallerton, thanks for the advice. I would like to make it so that the selection process is like a song of an ice and fire, where the color selection is actually used to select what faction your using. Is there a way to adapt this method to do that?
I have 8 factions I want playable that have units on the field. How to get the trigger to transfer control a certain factions units to the person that selects them in the faction selection field? I have every part of the trigger down accept that action.
How do I allow people in the lobby to select what player/faction they are going to play, I would like it to work like the the Song of Ice and Fire arcade game lobby.
@lonestarkiller:
Post i made in this thread http://www.sc2mapster.com/forums/development/triggers/80313-choose-custom-race-window-base-location-triggers
Quote from Knallertton:
You can actually make it so you can choose custom race in the lobby by going to Map -> Game Attributes then defining new PLAYER attribute and listing all races available in your game, this will be separate of real "race" so it won't affect anything in game comes with choosing race. After you have made you attribute you need to make it so it shows up in the lobby, by going to Map -> Game Variants and removing normal race selection and adding your custom attribute as the race selector. Then when the game starts you can get their selection of the race by doing a comparison of "Attribute Player Value"
General - If (Conditions) then do (Actions) else do (Actions)
If (Custom Race Attribute value for player 1) == Custom Race
You can also do this for the spawn position for example "Spawn Location" - Random, Top Left, Top Right... etc..
----
I hope this helps.
Hey Knallerton, thanks for the advice. I would like to make it so that the selection process is like a song of an ice and fire, where the color selection is actually used to select what faction your using. Is there a way to adapt this method to do that?
@Knallertton: Go
I have 8 factions I want playable that have units on the field. How to get the trigger to transfer control a certain factions units to the person that selects them in the faction selection field? I have every part of the trigger down accept that action.
@lonestarkiller: Go
I too am making a map where this trigger would be invaluable. Right now I have a kind of butchered version of this trigger: http:www.sc2mapster.com/forums/resources/tutorials/5486-lobby-game-modes-the-complete-guide-reference/
Needless to say it doesn't work at all and it'd be really nice to have some help
If you want to do it with colors, you'll probably want to do something like this: