mob/create_character
var/mob/character
Login()
alert("Hello and welcome to the rpg(name pending). to talk to a mob double clikc him/her. Note* this is only pre-alpha and is still undergoing many changes.")
var/charactername = input("Hello, Pick a name for your character, something you wish for people to call you in the game.","Character Name?")
switch(alert("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?","Warrior","Cleric","Magician"))
if("Warrior")
switch(alert("Please choose your sex","Character Sex","Male","Female"))
if("Male")
switch(alert("Please choose your hairstyle","Character Hairstyle","Bald","Spikey","Short"))
if("Short")
var/obj/X=new/obj/overlays/short_hair
src.overlays+=X
character = new /mob/You/warrior()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Bald")
character = new /mob/You/warrior()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Spikey")
var/obj/y=new/obj/overlays/spikey_hair
src.overlays+=y
character = new /mob/You/warrior()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Female")
switch(alert("Please choose your hairstyle","Character Hairstyle","Long","Bun","Ponytail"))
if("Long")
var/obj/a=new/obj/overlays/long_hair
src.overlays+=a
character = new /mob/You/fwarrior()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Bun")
var/obj/s=new/obj/overlays/bun_hair
src.overlays+=s
character = new /mob/You/fwarrior()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Ponytail")
var/obj/d=new/obj/overlays/ponytail_hair
src.overlays+=d
character = new /mob/You/fwarrior()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Cleric")
switch(alert("Please choose your sex","Character Sex","Male","Female"))
if("Male")
switch(alert("Please choose your hairstyle","Character Hairstyle","Bald","Spikey","Short"))
if("Short")
var/obj/q=new/obj/overlays/short_hair
src.overlays+=q
character = new /mob/You/cleric()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Bald")
character = new /mob/You/cleric()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Spikey")
var/obj/w=new/obj/overlays/spikey_hair
src.overlays+=w
character = new /mob/You/cleric()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Female")
switch(alert("Please choose your hairstyle","Character Hairstyle","Long","Bun","Ponytail"))
if("Long")
var/obj/e=new/obj/overlays/long_hair
src.overlays+=e
character = new /mob/You/fcleric()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Bun")
var/obj/r=new/obj/overlays/bun_hair
src.overlays+=r
character = new /mob/You/fcleric()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Ponytail")
var/obj/t=new/obj/overlays/ponytail_hair
src.overlays+=t
character = new /mob/You/fcleric()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Magician")
switch(alert("Please choose your sex","Character Sex","Male","Female"))
if("Male")
switch(alert("Please choose your hairstyle","Character Hairstyle","Bald","Spikey","Short"))
if("Short")
var/obj/z=new/obj/overlays/short_hair
src.overlays+=z
character = new /mob/You/magician()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Bald")
character = new /mob/You/magician()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Spikey")
var/obj/c=new/obj/overlays/spikey_hair
src.overlays+=c
character = new /mob/You/magician()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Female")
switch(alert("Please choose your hairstyle","Character Hairstyle","Long","Bun","Ponytail"))
if("Long")
var/obj/v=new/obj/overlays/long_hair
src.overlays+=v
character = new /mob/You/fmagician()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Bun")
var/obj/b=new/obj/overlays/bun_hair
src.overlays+=b
character = new /mob/You/fmagician()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
if("Ponytail")
var/obj/n=new/obj/overlays/ponytail_hair
src.overlays+=n
character = new /mob/You/fmagician()
src.verbs += /mob/Party/verb/Create_Party
client.screen += new/obj/meter1
character.name = charactername
src.client.mob = character
// if(character.gender=="female")
// character.icon_state="2"
character.loc=locate (38,155,2)
world<<"<B>[character] has logged in!"
del(src)
..()
Problem description:Ok well i decided to change my
code again and make it so you get hair at the start.
When you login everything works just fine but when u
finish logging in, you don't have any hair at all.
I made the hair an object to see if that would help
but it doesn't do any different. *Also* i was
wondering if i have to change the letter pleace up in
my code like var/obj/X=new/obj/overlays/short_hair, so
i hafe to change it to a diffenrent letter since its
all in 1 code?
Lummox JR