ID:148885
 
Ok.. I been pondering for quite some time...OK so What i wana do is...

this.. now u stupid n00bs dont go rippin my [expletive deleted]

Login() //Login() Proc
world << " [usr] has entered "
src.overlays += new /obj/Legs/
src.overlays += new /obj/Rightarm/
src.overlays += new /obj/Leftarm/
src.overlays += new /obj/Head/
src.overlays += new /obj/Eyes/
src.overlays += new /obj/Eyesbrows/
//creates the new obj as an overlay
//call parent Login() proc

alert("Welcome to [gamename], We will begin to customize your character now..")
Eyescolor()
Hairstyle()

..()


Ok so this is all fine and Dandy.... as for my hairstyle Its an Icon..
as for the hairstyle proc
Hairstyle()
var/choice1 = input("What Hairstyle do you want??") in list("Spikey",)
if(choice1 == "Spikey")
usr.overlays += new /obj/Hairspikey/
var/
and...


Hairspikey
icon = 'hair.dmi' //defines the icon
icon_state = "Spikey"
layer = MOB_LAYER+1 // defines the layer
density = 0 //defines the dinsity
New() //New() proc
pixel_y = 31 //this makes the whole thing come together, it displaces the icon by x amount of pixels x or y


Ok now that you got some info... I need to be able to choose the hairstyle... and += its rgb from inputs.... i tried almost everything... like input vars then

haircolor(r as num, g as num, b as num)
and but

/obj/hairspikey/ is a OBJ now a var and RGB needs a VAT so it can +=

I also tries

var/icon/I = new('hair.dmi')
usr.icon = I
icon_state = "Spikey"

That dont work..


'
OK sorry i sound al lcunfusing its kuz im confused myself... LOL.. PLZ HELP!

Mitchy....sheesh. You should have posted this in newbie central. I mean...sheesh....


Don't act like you know me... *turns*
Click Here

Alatar
obj/Hair/H = new()
var/icon/I = H.icon
var/R = input("R") as num
var/G = input("G") as num
var/B = input("B") as num
I += rgb(R,G,B)
usr.overlays += I

Of course, having an object for an overlay isn't a smart idea. You should just have a new image datum for all the overlays.
In response to Sariat
lol.. But i mean all the extra [expletive deleted] i did...

*run up to sariat* SARITY!! OL BUDDY!!!! how's it gone? WANA GO GET A SODA?!
Please watch your language on the forums.

Lummox JR