Triggering player colour msg

louis_9300

New Member
Reaction score
3
Hello,

i want my in-game msg to contains a (triggering player name) with their own colour. Example: if Player 1, Red, summon a hero, the msg will show the whole msg in red colour, including the triggering player name..When Player 2,Blue, summon a hero, the msg will show the whole msg in blue colour, including the triggering player name.. Currently im red and i summoned a hero,my whole msg is "red" but the triggering player name is "WHITE", so how to make the triggering player name " RED" .. :confused:
 

TooSlowFcker

New Member
Reaction score
10
okay, im pretty sure you dont know the color codes, but you might
so im just going to asume you know it
so this is the way you use color codes
|c00ff3333Player 1|r
|cff0042ffPlayer 2|r
 

TooSlowFcker

New Member
Reaction score
10
This may work, but im not sure
Code:
Untitled Trigger 001
    Events
        Player - Player 1 (Red) leaves the game
    Conditions
    Actions
        Game - Display to (All players) the text: ((|cffff0303 + (Name of the Player)) + lr has left the game)
 

louis_9300

New Member
Reaction score
3
okay, im pretty sure you dont know the color codes, but you might
so im just going to asume you know it
so this is the way you use color codes
|c00ff3333Player 1|r
|cff0042ffPlayer 2|r


Code:
First Hunter Bonus
    Events
        Unit - A unit enters (Entire map)
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Entering unit)) Equal to Hunter 
                
           
    Actions
       
        Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + |cffffcc00 is the first player to train a Hunter.

look a this,what is wrong?
 

Cold

New Member
Reaction score
4
I think you forgot the |r which has to be at the end of the text you want to be colored.
 

louis_9300

New Member
Reaction score
3
I think you forgot the |r which has to be at the end of the text you want to be colored.

yupz but without tat,the color code will still work, but how "tooslow" put the color code inside the ((|cffff0303 + (Name of the Player)) .. which my trigger cannot..

His:((|cffff0303 + (Name of the Player))

Mine:((Name of (Owner of (Triggering unit)))
 

TooSlowFcker

New Member
Reaction score
10
you have to do it the way i did, because the color code and the word has to be togethor
like this
color code |cffff0303|r
Text: Player 1
|c00ff0303Player 1|r
and yeah you did forget the lr
 

TooSlowFcker

New Member
Reaction score
10
yupz but without tat,the color code will still work, but how "tooslow" put the color code inside the ((|cffff0303 + (Name of the Player)) .. which my trigger cannot..

His:((|cffff0303 + (Name of the Player))

Mine:((Name of (Owner of (Triggering unit)))

I used concentrated strings
you can have an infinite number of concentrated strings
because if you click the string 1, then there's another string where you can put a messeage, but each string has a String1 + String 2
so if you keep clicking the Strings, the possiblilties will grow
it's simple if you do it not read it lol
so it's like this
string 1 + string 2
click string 1
it says string 1 + string 2 right?
so if you click string 1 again you get
string 1 + string 2 again right?
so everything you click string 1 you can enter more messages
see what im saying?
 

louis_9300

New Member
Reaction score
3
I used concentrated strings
you can have an infinite number of concentrated strings
because if you click the string 1, then there's another string where you can put a messeage, but each string has a String1 + String 2
so if you keep clicking the Strings, the possiblilties will grow
it's simple if you do it not read it lol

well its hard for me cuz i duno how to do it -.-
 

TooSlowFcker

New Member
Reaction score
10
You got it right, but you just didn't notice some stuff
when you use the "game-" category and you click text
it says concatenate strings
below it says string 1 + string 2
you can have as many striings as you want
so click string 1, then you get the exact same thing
and in the third bullet, value, type in the color code
then, in string 2, put "name of player"
then hit okay
now you see that string 1 is completely filled, now go to string 2 again, of this box, and type lr has the first hunter trained etc.
 

TooSlowFcker

New Member
Reaction score
10
yeah, i know, the link i got it from doesnt work not i guess, but i have the color codes if you want, i might be able to find the other link.
I posted the same question about color codes a while back lol and they gave me links.
 

louis_9300

New Member
Reaction score
3
Code:
Leaver Red
    Events
        Player - Player 1 (Red) leaves the game
    Conditions
    Actions
        Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Unit - Remove (Picked unit) from the game)
        
        Game - Display to (All players) the text: ((|CFFFF0303 + (Name of (Triggering player))) + |c00FF0303 has left the game.)
 

Weegee

Go Weegee!
Reaction score
102
Lol test that cuse that looks a lot like my trigger I was gonna give you xD

Change the even to player 1 presses esc button and try it xD
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top