My game have 2 player.
Player 1 : MrX, red color
Player 2 : MrY, blue color
When player 2 leave the game, there will be a message for all player
"MrY left the game"
So I want to make the "MrY" to colored
This is using JASS so is there a function to create a player color string based on the player number?
like
convertToColor(2, "MrY") where it will return string
thus i only need to do like this in my JASS
Player 1 : MrX, red color
Player 2 : MrY, blue color
When player 2 leave the game, there will be a message for all player
"MrY left the game"
So I want to make the "MrY" to colored
This is using JASS so is there a function to create a player color string based on the player number?
like
convertToColor(2, "MrY") where it will return string
thus i only need to do like this in my JASS
JASS:
call DisplayTimedTextToForce( GetPlayersAll(), 10, convertToColor(2, "MrY")+" left the game" )