Is that possible? I created custom game variants in Map -> Game Variants. And I want to check which variant is selected because it will affect where the players start.
How do I do this? I don't even know where to start.
EDIT: In the meantime, since there are 3 variants, I'm simply using an additional, unused, Neutral Player and using that player's race to affect how the game starts. But I'd definitely rather try to check my custom game variants since that would be more elegant.
Use If Then Else or Switch actions on Game - Map Initialization that have a condition of the type Attribute Game Value. Based on the selected value you can then use Set Variable, Run Trigger or Turn Trigger On/Off actions to get the desired responses.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
So you can see I did make the variants, but how, in the conditions, do I check which one is selected in the game lobby? Short, Medium, Long. Because I don't have any option for game variant in the attribute values drop-down menu in the Value 2 of the condition. And in value 1, what attribute do I select from that dropdown menu? I assume it's game mode but it doesn't seem to give the option to check for custom game variants.
You can create a Game Attribute with several values and visibility and access of None making it hidden. You can then set your Game Variant to use a value of this attribute under the Game Attributes tab. You can then use the condition I mentioned.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Is that possible? I created custom game variants in Map -> Game Variants. And I want to check which variant is selected because it will affect where the players start.
How do I do this? I don't even know where to start.
EDIT: In the meantime, since there are 3 variants, I'm simply using an additional, unused, Neutral Player and using that player's race to affect how the game starts. But I'd definitely rather try to check my custom game variants since that would be more elegant.
Use If Then Else or Switch actions on Game - Map Initialization that have a condition of the type Attribute Game Value. Based on the selected value you can then use Set Variable, Run Trigger or Turn Trigger On/Off actions to get the desired responses.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
So you can see I did make the variants, but how, in the conditions, do I check which one is selected in the game lobby? Short, Medium, Long. Because I don't have any option for game variant in the attribute values drop-down menu in the Value 2 of the condition. And in value 1, what attribute do I select from that dropdown menu? I assume it's game mode but it doesn't seem to give the option to check for custom game variants.
You can create a Game Attribute with several values and visibility and access of None making it hidden. You can then set your Game Variant to use a value of this attribute under the Game Attributes tab. You can then use the condition I mentioned.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg