Hello, is there any way to change player names? I just want to append a string to the name like "Gwypaas(XXXX)"
Also, is there any way to do this so team A sees everyone else in the team as "Gwypaas(XXXXX)" but for team B it will look like "Gwypaas(AAAAA)" or just "Gwypaas". This was done in WC3 using GetLocalPlayer() combined with GetPlayerName(player) and SetPlayerName(player, string) but I don't know how to do it in SC2.
As far as I know, you can not change somebody's name. What you can do is assign each player's name to a string variable, and then modify that string. When you need to display a player's name, you can just use the variable. The following code would pull each player's name into a string variable.
// Assign each player's name to a stringForeachplayerpinplayergroup(ActivePlayers){setvariableplayernames[p]=NameofPlayer(p)}
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
Hello, is there any way to change player names? I just want to append a string to the name like "Gwypaas(XXXX)"
Also, is there any way to do this so team A sees everyone else in the team as "Gwypaas(XXXXX)" but for team B it will look like "Gwypaas(AAAAA)" or just "Gwypaas". This was done in WC3 using GetLocalPlayer() combined with GetPlayerName(player) and SetPlayerName(player, string) but I don't know how to do it in SC2.
As far as I know, you can not change somebody's name. What you can do is assign each player's name to a string variable, and then modify that string. When you need to display a player's name, you can just use the variable. The following code would pull each player's name into a string variable.