world
mob = /mob/create_character
mob/create_character
var/mob/character
Login()
var/charactername = input("Hello, Pick a name for your character, something you wish for people to call you in the game.","Character Name?")
switch(input("Below pick one of the following backgrounds you wish for your character to be. It determines what skills you get in the game.","Character Background?") in list("Warrior","Cleric","Magician"))
if ("Warrior")
switch(input("Please Select your Hair Style.","Character Hair Style?") in list("Spikey","Long","Short"))
if ("Spikey")
src.overlays +='spikey.dmi'
character = new /mob/You/Warrior()
if ("Long")
src.overlays +='long.dmi'
character = new /mob/You/Warrior()
if ("Short")
src.overlays +='short.dmi'
character = new /mob/You/Warrior()
if ("Cleric")
switch(input("Please Select your Hair Style.","Character Hair Style?") in list("Skikey","Long","Short"))
if ("Skikey")
src.overlays +='spikey.dmi'
character = new /mob/You/Cleric()
if ("Long")
src.overlays +='long.dmi'
character = new /mob/You/Cleric()
if ("Short")
src.overlays +='short.dmi'
character = new /mob/You/Cleric()
if ("Magician")
switch(input("Please Select your Hair Style.","Character Hair Style?") in list("Skikey","Long","Short"))
if ("Skikey")
src.overlays +='spikey.dmi'
character = new /mob/You/Magician()
if ("Long")
src.overlays +='long.dmi'
character = new /mob/You/Magician()
if ("Short")
src.overlays +='short.dmi'
character = new /mob/You/Magician()
character.name = charactername
src.client.mob = character
/* if(character.gender=="female")
character.icon_state="2"*/
character.loc=locate (5,5,1)
world<<"<B>[character] has logged in!"
del(src)
..()
Problem description:When you login in it does everything. It asks u to load/create/delete then if u choose new it will ask you what class. Then it asks what type of hair do you want. But when you login in you don't got no hair? Can anyone help?
This is how mine works. Just add icon states. you can do rgb() colors for hair too, but I think that there'd be too many blue-haired avatars in that case. Anyway, make a hair object, like I do. Works like a charm. It also allows for hair styling, to change the type and color of the player's hair - simply remove, modify color and style, then add again.
--Vito