I don't understand exactly how this thing works. When I open a campaign map and check the trigger editor, I see something like PLAYER03_ZERG = 3 <integer>. Yes, I can see that this integer indicates the player number, but no matter where I search, I don't see exactly how this integer is attached to the player's number.
Furthermore, how can you set a computer player's name (through triggers or some other method)? When I open the Player Properties tab in a campaign map, I see that most of the players are left without a name and player 2 is usually titled "Hostile"; is there some other place where you can edit a player's name to be shown in-game?
no matter where I search, I don't see exactly how this integer is attached to the player's number.
If you try removing the variable, the editor will tell you what it will screw up with. (ie. if you remove a variable which is used by a trigger, it will tell you which trigger won't work anymore). The variable may be used in a custom script though, in that case try the Edit menu > Find/Replace > Find... Look for any reference to PLAYER03_ZERG and it will tell you where is this variable used. If you still can't find anything, I'm clueless.
is there some other place where you can edit a player's name to be shown in-game?
As far as I can tell, this is the only way... You still can create a trigger that will "fake" a player name, using a Switch action that will name the player according to its color... This is just an example but you can compare almost everything to determine who to name how. It cannot be used everywhere though, but it's pretty useful if you want to, let's say, label a player as "not playing" in a leaderboard after he quits the game. The only thing that seems impossible to change through triggers is the name determined directly in the editor through the Player Properties tab. So, even if you give a fake name through triggers it will still display the info from the Player Properties tab when you point the unit with your mouse while ingame.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I don't understand exactly how this thing works. When I open a campaign map and check the trigger editor, I see something like PLAYER03_ZERG = 3 <integer>. Yes, I can see that this integer indicates the player number, but no matter where I search, I don't see exactly how this integer is attached to the player's number.
Furthermore, how can you set a computer player's name (through triggers or some other method)? When I open the Player Properties tab in a campaign map, I see that most of the players are left without a name and player 2 is usually titled "Hostile"; is there some other place where you can edit a player's name to be shown in-game?
If you try removing the variable, the editor will tell you what it will screw up with. (ie. if you remove a variable which is used by a trigger, it will tell you which trigger won't work anymore). The variable may be used in a custom script though, in that case try the Edit menu > Find/Replace > Find... Look for any reference to PLAYER03_ZERG and it will tell you where is this variable used. If you still can't find anything, I'm clueless.
As far as I can tell, this is the only way... You still can create a trigger that will "fake" a player name, using a Switch action that will name the player according to its color... This is just an example but you can compare almost everything to determine who to name how. It cannot be used everywhere though, but it's pretty useful if you want to, let's say, label a player as "not playing" in a leaderboard after he quits the game. The only thing that seems impossible to change through triggers is the name determined directly in the editor through the Player Properties tab. So, even if you give a fake name through triggers it will still display the info from the Player Properties tab when you point the unit with your mouse while ingame.