I need some one to help me with a character handling system. take a look at this code. I don't have it to save, but I get a runtime error after it's done with my character creation proc:
usr.name = input("What is your character's name?","Name",usr.key)
usr.PET_color = input("What color PET would you like?","PET") in list("Red","Orange","Yellow","Green","Blue","Purple","Black" ,"White","Silver")
switch(PET_color)
if("Red")
usr.contents += /obj/PET/Red
if("Orange")
usr.contents += /obj/PET/Orange
if("Yellow")
usr.contents += /obj/PET/Yellow
if("Green")
usr.contents += /obj/PET/Green
if("Blue")
usr.contents += /obj/PET/Blue
if("Purple")
usr.contents += /obj/PET/Purple
if("Black")
usr.contents += /obj/PET/Black
if("White")
usr.contents += /obj/PET/White
if("Silver")
usr.contents += /obj/PET/Silver
I get this error:
runtime error: type mismatch
proc name: Login (/mob/Login)
usr: Delita12345 (/mob)
src: Delita12345 (/mob)
call stack:
Delita12345 (/mob): Login()
Deadron's character handling doesn't work either.
I just want it to be where each player has 1 character and it saves their location whenever they logout or save. Could someone write a save and load proc for me please? I've read Deadron's simple saving over and over. I still can't understand it. :(
ID:174286
Sep 2 2003, 6:57 pm
|
|