ok heres the code
mob/create_character
var/mob/character
Login()
var/charactername = input("What is your name?","Name",src.key)
switch(input("What do you want your Skin Color to be?","character") in list("Light", "Tan", "Dark"))
if("Light")
character = new /mob/Light()
switch(input("What color do you want your shirt to be?","character") in list("Yellow", "Gray", "Black", "Blue", "Red", "Green"))
if("Yellow")
usr.overlays += 'Yellow Shirt.dmi'
if("Green")
usr.overlays += 'Green Shirt.dmi'
if("Black")
usr.overlays += 'Black Shirt.dmi'
if("Blue")
usr.overlays += 'Blue Shirt.dmi'
if("Red")
usr.overlays += 'Red Shirt.dmi'
if("Gray")
usr.overlays += 'Gray Shirt.dmi'
if("Tan")
character = new /mob/Tan()
switch(input("What color do you want your shirt to be?","character") in list("Yellow", "Gray", "Black", "Blue", "Red", "Green"))
if("Yellow")
usr.overlays+= 'Yellow Shirt.dmi'
if("Green")
usr.overlays+= 'Green Shirt.dmi'
if("Black")
usr.overlays+= 'Black Shirt.dmi'
if("Blue")
usr.overlays+= 'Blue Shirt.dmi'
if("Red")
usr.overlays+= 'Red Shirt.dmi'
if("Gray")
usr.overlays+= 'Gray Shirt.dmi'
if("Dark")
character = new /mob/Dark()
switch(input("What color do you want your shirt to be?","character") in list("Yellow", "Gray", "Black", "Blue", "Red", "Green"))
if("Yellow")
usr.overlays+= 'Yellow Shirt.dmi'
if("Green")
usr.overlays+= 'Green Shirt.dmi'
if("Black")
usr.overlays+= 'Black Shirt.dmi'
if("Blue")
usr.overlays+= 'Blue Shirt.dmi'
if("Red")
usr.overlays+= 'Red Shirt.dmi'
if("Gray")
usr.overlays+= 'Gray Shirt.dmi'
character.name = charactername
src.client.mob = character
del(src)
Ok the overlays aren't working. they are not adding the Shirts to the person. Is there any way i can fix this?
Alienman
ID:149117
Jul 2 2002, 7:17 am
|
|
You should be adding to character.overlays instead of usr.overlays, since character is the mob you end up eventually using. usr is the current mob (in this case), which you end up discarding.
Lummox JR