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.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@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.