I just want to set the amount of resources when start and mineral/vespine geyser has. But I'm also curious about setting more complex things just like skins of units like from the Coop And Campaign units extension mode.
Under the Map menu there are two options called Game Variants and Game Attributes which open up separate windows. The wiki explains what all the fields do.
Under triggers you then use Attribute Game Value and Attribute Player Value functions for Comparison conditions. This is usually part of a Switch or an If Then Else action used on game initialization and very rarely for abilities/unit creation.
For skins go to the Skins data type and mess around with the Replacements - EDSTR_FIELDNAME_SGameReplacement_ fields and use them via the Apply Player Skin trigger action definition.
Depends what you want to vary and on what level. For equal application to all players use game attributes while for stuff like race faction and hero selection use player attributes.
For starting resources try the Modify Player Property or Set Starting Resources For Player trigger action definitions.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Unless your game attribute is called 50, the condition is set up incorrectly. Your Modify Player Propery action is outside the loop so would not apply to any players other than 1. As your trigger does not have an event there can be no triggering player so move that condition into the loop and compare your player number variable instead.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
The While loop action has a slot for putting conditions in. Move the condition of yours that compares player race to the triggering unit to the conditions slot for this action and change the triggering player function to the variable being used for player number.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hi I want to add some options in the lobby like game mode, max game time etc.
https://imgur.com/Es8nJu6
These ones
Is it a trigger? If so, what event do I use?
I just want to set the amount of resources when start and mineral/vespine geyser has. But I'm also curious about setting more complex things just like skins of units like from the Coop And Campaign units extension mode.
Under the Map menu there are two options called Game Variants and Game Attributes which open up separate windows. The wiki explains what all the fields do.
https://sc2mapster.gamepedia.com/Game_Attributes
https://sc2mapster.gamepedia.com/Game_Variants
Under triggers you then use Attribute Game Value and Attribute Player Value functions for Comparison conditions. This is usually part of a Switch or an If Then Else action used on game initialization and very rarely for abilities/unit creation.
For skins go to the Skins data type and mess around with the Replacements - EDSTR_FIELDNAME_SGameReplacement_ fields and use them via the Apply Player Skin trigger action definition.
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
In reply to DrSuperEvil:
Depends what you want to vary and on what level. For equal application to all players use game attributes while for stuff like race faction and hero selection use player attributes.
For starting resources try the Modify Player Property or Set Starting Resources For Player trigger action definitions.
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
Hello. I just wanted to thank Mangmury for asking this and Dr.SuperEvil for the answer. I've been trying to figure this out for a while now too!
Could swear I had answered the same question not to long ago.
https://www.sc2mapster.com/forums/development/data/202346-how-to-change-the-names-of-races-shown-in-the
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
In reply to DrSuperEvil:
Use Game Variants then.
Just use two nested Switch actions within a For Each Player loop.
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
In reply to DrSuperEvil:
What you trying to do?
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
In reply to DrSuperEvil:
For a start you are trying to compare your game attribute to a number while the function returns a Boolean.
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
In reply to DrSuperEvil:
Unless your game attribute is called 50, the condition is set up incorrectly. Your Modify Player Propery action is outside the loop so would not apply to any players other than 1. As your trigger does not have an event there can be no triggering player so move that condition into the loop and compare your player number variable instead.
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
In reply to DrSuperEvil:
You have a While Conditions Are True Do Actions Loop. This action definition repeats all the actions under it as long as the conditions are true.
Yes you need some event or use another trigger with an event to run the trigger. Using the Map Initialization event is a good start.
Just the top condition needs to be moved and changed from triggering player.
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
In reply to DrSuperEvil:
The conditions slot you your While Conditions Are True Do Actions loop.
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
In reply to DrSuperEvil:
The While loop action has a slot for putting conditions in. Move the condition of yours that compares player race to the triggering unit to the conditions slot for this action and change the triggering player function to the variable being used for player number.
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