Author Topic: Colored Chat  (Read 1533 times)

holy loving stuff
i'm smarter
oh yeah add another hex code to the list

<color:rickroll>

no, i'm serious, badspot put that in. its the grey that is used in clan tags.
holy loving stuff
i'm smarter yet

holy loving stuff
i'm smarter yet
No I'm serious, try it out. Not trolling at all.

No I'm serious, try it out. Not trolling at all.
this is going to sound like bullstuff, but he isn't actually trolling

this is going to sound like bullstuff, but he isn't actually trolling
True story.

I found it out from another guy who did it on some named brick as clantag color and I didn't believe him when he said the hex was rickroll

He let me see the event and then I went wtflol IRL



I consider it as baddys only Easter egg up to the prepper script

oh yeah add another hex code to the list

<color:rickroll>

no, i'm serious, badspot put that in. its the grey that is used in clan tags.

This is not something Badspot puts in. Torque uses some rather odd mathematical formulas to make sure a hex color code is within limits and correctly formatted. It usually ends up with some completely random color, however it stays the same for different initial erroneous hex codes.

This is not something Badspot puts in. Torque uses some rather odd mathematical formulas to make sure a hex color code is within limits and correctly formatted. It usually ends up with some completely random color, however it stays the same for different initial erroneous hex codes.
so basically, if I put in <color:asdjlkwhjfkhejkgh> it'll pick a random hex color, then if I put in <color:asdjlkwhjfkhejkgh> (same as before) it'll give the same, randomly chosen, color?

so basically, if I put in <color:asdjlkwhjfkhejkgh> it'll pick a random hex color, then if I put in <color:asdjlkwhjfkhejkgh> (same as before) it'll give the same, randomly chosen, color?

Kind of, yes.

Another thing that triggers the clan tag colour is "zzzzzz".
Oh, and mint, you should call them RGB, not XYZ.

« Last Edit: April 25, 2012, 07:09:01 PM by Electrk »

777777 is an entirely valid hex color code, representing 119 119 119 (77: 7 * 16 + 7).

Here's how it works. You say <color:XYZ> in the string. X, Y, and Z are all 2 characters long. Those two characters are hexadecimal numbers (numbers in base 16). This means that X, Y, and Z all range from 00 to FF.

X tells the amount of red in the color, Y tells the amount of green, and Z tells the amount of blue. FF is the maximum amount of that color, and 00 is the minimum amount. For instance, FF0000 is pure red, 00FF00 is pure green, and 0000FF is pure blue.

You can also mix colors. If X, Y, and Z are all the same, then it is a shade of grey. For instance, 000000 is pure black, 808080 is a medium grey, and FFFFFF is pure white.

If you do not make X, Y, and Z equal, it will just mix together the amounts specified for each color. For instance, yellow is a mix of red and green, so X is FF, Y is FF, and Z is 00. Therefore, yellow's code is FFFF00.

Here's an example. Let's say that you want to simulate someone talking in the chat. You would message the following string to a client:
<color:FFFF00>Mint<color:FFFFFF>: Hello. This will end up looking like a chat message.


EDIT:
To add on to that, this is the progression from 00 to FF:
00, 01, 02, 03, ..., 08, 09, 0A, 0B, 0C, 0D, 0E, 0F,
10, 11, 12, 13, ..., 18, 19, 1A, 1B, 1C, 1D, 1E, 1F,
...,
90, 91, 92, 03, ..., 98, 99, 9A, 9B, 9C, 9D, 9E, 9F,
A0, A1, A2, A3, ..., A8, A9, AA, AB, AC, AD, AE, AF,
...,
F0, F1, F2, F3, ..., F8, F9, FA, FB, FC, FD, FE, FF

Thanks!