ID:270178
 
Has anyone ever played Chao Chatterz? You can change your font color there when you enter in a HEX code. I want to request code like that, Because I don't know how to make one xD. When you click the verb a box comes up asking you to enter a HEX code to change your font color, and that color stays for the entire game.
You can find HEX colors online. Search Google. If you want to know how to actually manage it, just store the hex code in a variable and whenever the person needs to use this color, plug it into
<font color = [hexcode]>Text</font>
If you have any questions post back.


-Doh
In response to XxDohxX
What? I just want a change font color code in my game. I just can't make one. something like this but it doesn't work anyway
var
colorchange = "#5FFEF7"
mob
verb
Change_Font_Color(colorchange as text)
usr.text = "[(colorchange)]"//enter HEX code here to change font color
In response to Kiyo Takamine
It's simple what I said, but since you didn't understand I will try again.

Store a variable, and let them edit it to whatever HEX code they prefer.

Then output the hex color when they say something.


Example:

mob
var
fontcolor = "#5FFEF7" //Store the variable
verb
Change_Font_Color(colorcode as text)
if(colorcode)
fontcolor = "[colorcode]" //Let them change it
src << "<font color = [fontcolor]> This is your font color."
Say(T as text)
if(T)
world << "<font color = [fontcolor]>[src] Says, [T]" //Output it
return
else
return


Any questions ask.


-Doh