Code: For Reference Sake
//The olay builder. launched on new char, load etc.
mob/proc/Overlay_Build() //This is a somewhat of a overlay builder so as to streamline saves.
eye = 'Eyes_Base.dmi'
switch(src.hair_type) //Define all hair types under this.
Code: Attempt #1
mob/verb/Zet(B as color)
var/list/Colours = ReadRGB(B) //From lummox iconproc lib + his guide
src.hair_red = "[Colours]"
src.hair_green = "[Colours]"
src.hair_blue = "[Colours]"
Results: The RGB values i have set (hair_red,green,blue) etc get set properly to the values i chose but the hair remains black (tried saving and loading where the colours are rewritten again remains a black hairstyle when the codes clearly denote a colour such as purple for example)
Code: Attempt #2
var/list/color = ReadRGB(name_colour)
usr.hair_red = "[color]"
usr.hair_green = "[color]"
usr.hair_blue = "[color]"
Results: For this test i pulled up "Crashed's" library for name/text colour changing and tried RGBing that value. same results as Attempt 1 where it outputs a hairdo thats meant to be purple but gives me a black hairdo when values denote the purple variables.
Code: Attempt #3
Click(Hairgb as color)
var/list/Colours = ReadHSV(Hairgb)
usr.hair_red = "[Colours]"
usr.hair_green = "[Colours]"
usr.hair_blue = "[Colours]"
Results: was actually my first attempt but doesnt matter, quite simply doesn't launch that windows palette lookalike thing
Code: Attempt #4
runtime error: cannot read from list
verb name: Zet (/mob/verb/Zet)
source file: B. Creation.dm,482
usr: Midgetbuster (/mob/human/player)
src: Midgetbuster (/mob/human/player)
Midgetbuster (/mob/human/player): Zet(null)
the haircolour rgb (/obj/HairSelection2/haircolour_rgb): Click("22", "main_creation.grid_haircolour", "icon-x=24;icon-y=18;left=1;dra...")
Results: Simply the above attempt put into a proc/verb and trying to launch on click. gives me an error (noted above in the DM tags)
Problem description: So as far as i can tell the code is stuffing up somewhere along the line or i just totally suck and am skipping something (id go with the sucking part) but as you can see by those im trying to make an option that will open up a RGB kind of selector so that a player can choose any kind of hair they want with a graphical interface (alongside an array of predefined choices)
Just having some real headscratchers on why the RGB values are to a purple colour but im getting a black colour.
Thanks in advance to all the experienced personnel who tolerate my noobyness i appreciate it greatly.