I have searched among old threads regarding this topic, but they state that it is not possible.. :(
However, when I tried the Warcraft 3 mod on Battle.net, the names of the races are indeed changed in the ingame lobby, so it says Human, Orc, etc instead of Terran, Zerg, Protoss... See the picture below... So it must be possible :)
Any idea how to do that? I have checked the text editor and the race field in the data editor, but that does not seem to have any effect.
yeah if I go to the race tab and for example change the name of Terran to "Humanoids" or whatever.. then I upload my mod-file on B.net.. when I enter the lobby to select race, I can still only choose between Terran, Zerg, Protoss. The names remain the same
2: Create a Player Attribute and add the value of your races
3: Create a Game Variant.
You can hide the default race selection in top right and you can choose the Player Attribute you created in the bottom. At that point I think it should show up in the lobby. Might still have to mess around with it, that part is kinda annoying, to have to login to galaxy, upload, loging to sc2, test, repeat if its not like you want.. Then you can track in triggers which Player attribute a player picked.
You just need to make a trigger with a Map Initialization event that uses a For Each Player In Player Group action. Under this loop use several If Then Else actions that use a Comparison condition with the logic of Attribute Player-Value = (insert your race here) and a Set Player Race action. At the end have a Set Starting Units For Player action. You also need to use the Picked Player function for all parameters defining the player.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hummm... not sure. I guess you might be able to get what the player variant was picked in data but I don't know how. Someone more experienced in data could probably answer that question.
You just need to make a trigger with a Map Initialization event that uses a For Each Player In Player Group action. Under this loop use several If Then Else actions that use a Comparison condition with the logic of Attribute Player-Value = (insert your race here) and a Set Player Race action. At the end have a Set Starting Units For Player action. You also need to use the Picked Player function for all parameters defining the player.
Bumping this thread.
I have managed to create the lobby selection for races, as described in post #8 in this thread. This is how it looks in the lobby: https://imgur.com/a/t9qBWUm
I am now trying to create the trigger in the quote above but I don't understand. I suck at triggers. :(
If anyone has time to explain in more details or upload a picture of it or something, that would be highly appreciated.
Ok you need to add a local Integer type variable and set the For Each Player action to use the variable and then use that variable for all fields where you specify the player number. For the player group use the Human Players function.
Under the Map menu of the terrain editor go to Game Attributes and create a new one under the General tab and set it to Player and under Usage set it to be Self Only so only the player can change their race. Finally under Values list the names of your races and set one under Defaults as default. These are the values players can select in the lobby and the values you can put in the trigger function.
There was then some way to hide the default races menu in the lobby UI but I forget.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I have searched among old threads regarding this topic, but they state that it is not possible.. :(
However, when I tried the Warcraft 3 mod on Battle.net, the names of the races are indeed changed in the ingame lobby, so it says Human, Orc, etc instead of Terran, Zerg, Protoss... See the picture below... So it must be possible :)
Any idea how to do that? I have checked the text editor and the race field in the data editor, but that does not seem to have any effect.
Dunno if you mean that with race-field, but in the data-editor there is a race tab. Tried changing anything there?
Thanks for your reply,
yeah if I go to the race tab and for example change the name of Terran to "Humanoids" or whatever.. then I upload my mod-file on B.net.. when I enter the lobby to select race, I can still only choose between Terran, Zerg, Protoss. The names remain the same
Anyone has any good advice?
Bump.
Anyone knows?
Most people use player attributes for race selection anyhow.
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
Would you mind to elaborate on player attributes?
1: Open Game Attributes
2: Create a Player Attribute and add the value of your races
3: Create a Game Variant.
You can hide the default race selection in top right and you can choose the Player Attribute you created in the bottom. At that point I think it should show up in the lobby. Might still have to mess around with it, that part is kinda annoying, to have to login to galaxy, upload, loging to sc2, test, repeat if its not like you want.. Then you can track in triggers which Player attribute a player picked.
Working on projects:
Thanks for a very informative post!
This solution still requires triggers, right? Is it possible to make it work without triggers?
You just need to make a trigger with a Map Initialization event that uses a For Each Player In Player Group action. Under this loop use several If Then Else actions that use a Comparison condition with the logic of Attribute Player-Value = (insert your race here) and a Set Player Race action. At the end have a Set Starting Units For Player action. You also need to use the Picked Player function for all parameters defining the 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
Hummm... not sure. I guess you might be able to get what the player variant was picked in data but I don't know how. Someone more experienced in data could probably answer that question.
Working on projects:
You cannot. Player and Game attributes interact only with triggers.
Edit: Silly question but do you have the Selectable flag enabled under the Races data type?
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
Thanks for your replies! I will follow your advice and fiddle around with the race selection menu
I have a quick question about this. How can this be done on a mod? There is no game variant tab in the mod editor, so how can it be done?
In reply to TheRedKraken:
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
Bumping this thread.
I have managed to create the lobby selection for races, as described in post #8 in this thread. This is how it looks in the lobby: https://imgur.com/a/t9qBWUm
I am now trying to create the trigger in the quote above but I don't understand. I suck at triggers. :(
If anyone has time to explain in more details or upload a picture of it or something, that would be highly appreciated.
I really want this to work properly : /
What part are you having issues with?
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
Below is a picture of how my trigger looks so far, with some red arrows and questions mark added to it.
As you can see on the picture, I don´´'t understand how to insert a race in: Attribute Player-Value = (insert your race here)
And I don't understand this: "You also need to use the Picked Player function for all parameters defining the player."
Ok you need to add a local Integer type variable and set the For Each Player action to use the variable and then use that variable for all fields where you specify the player number. For the player group use the Human Players function.
Under the Map menu of the terrain editor go to Game Attributes and create a new one under the General tab and set it to Player and under Usage set it to be Self Only so only the player can change their race. Finally under Values list the names of your races and set one under Defaults as default. These are the values players can select in the lobby and the values you can put in the trigger function.
There was then some way to hide the default races menu in the lobby UI but I forget.
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