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!
ID:148885
![]() Aug 25 2002, 4:19 pm (Edited by moderator on Aug 26 2002, 7:07 am)
|
|
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. |
Don't act like you know me... *turns*