I'm pretty sure that I've seen someone tint messages through triggers, and I'd love to get some help as to how I do so.
UI-Display((((Nameofplayer(Triggeringplayer))+" - ")+(Nameof(Unittypeof(Triggeringunit))))+" has used the right teleport and is...")for(Allplayers)toSubtitlearea
This is my trigger. I want the ((((Name of player (Triggering player)) + " - ") + (Name of (Unit type of (Triggering unit))) to be tinted in the color of the triggering player. How's this done?
EDIT: I know how to tint a chat message, just need to know how to set up an action so that it tints the message in the color of the player. Not the entire message, just part of it
UI-Display((Text(Combine((Nameofplayer(Triggeringplayer))," - ",(Nameof(Unittypeof(Triggeringunit)))," has used the right teleport and is..."))withcolor(Color((Currentplayer(Triggeringplayer)color))))+"... the other text which is white....."for(Allplayers)toSubtitlearea
There is an action that can color text with the color. The non-colored text is outside of that function...
Maybe this helps more to see the structure:
TextMessageMessage:CombineTextText1:TextWithColorText:CombineTextMultipleText<Text+>Text:NameOfPlayerPlayer:TriggeringPlayerText:" - "Text:NameOfUnitTypeUnitType:UnitTypeOfUnitUnit:TriggeringUnitText:" has used the right teleport and is..."Color:ConvertPlayerColorToColorPlayerColor:PlayerColorOption:CurrentPlayer:TriggeringPlayerText2:"... the other text which is white....."Players:AllPlayersMessageArea:Subtitle
I'm pretty sure that I've seen someone tint messages through triggers, and I'd love to get some help as to how I do so.
This is my trigger. I want the ((((Name of player (Triggering player)) + " - ") + (Name of (Unit type of (Triggering unit))) to be tinted in the color of the triggering player. How's this done?
EDIT: I know how to tint a chat message, just need to know how to set up an action so that it tints the message in the color of the player. Not the entire message, just part of it
There is an action that can color text with the color. The non-colored text is outside of that function...
Maybe this helps more to see the structure: