ID:551180
 
Keywords: color
(See the best response by Kaiochao.)
on the color wheel it says current but always shows black , how could i change this to show players current color?
Provide a value for the Default argument in your call to input().
any chance of a eg?
In response to Madhead88
Best response
Sure.

Example:
mob/verb/create_character()
usr.name = input("Choose a name for your character.",
"Your Name",
usr.name)

usr.gender = input("Select a gender for your character.",
"Your Gender",
usr.gender) in list("male","female","neuter")

-DM Reference

mob
var hair_color

verb
Recolor_Hair()
hair_color = input(src, "Pick a color for your hair.",
"Recolor Hair",
hair_color) as color

-Me
In response to Kaiochao
my code
    verb
Rank_Colour()
set hidden = 1
set category = "Commands"
col
var/rank_colour=input("What Colour Do You Want You Rank?","")as color||de
if(!rank_colour)
usr<<"<font color=white>Cant Be Blank"
goto col
else
usr.ooccolour = "[rank_colour]"
usr.saycolour = "[rank_colour]"
usr<<"<font color=white>You Set Your Rank Colour To <font color=[rank_colour]>[rank_colour]"
return
In response to Kaiochao
it dont have the ||de in my bad, was typin somethin and 4got
got it workin thanks alot
In response to Madhead88
I hope you're not expecting me to provide a better version of your code. I'm simply providing you with a solution that will better aid you intellectually; letting you figure it out on your own, but I've given you more than enough direction.