mob
proc
CreateNewCharacter()
var/char_name
do
char_name = input(src, "What is your name?","New Character") as null|text
if(!char_name)
return
if (ckey(char_name) in characters)
alert("This name isn't acceptable.")
char_name = null
while(!char_name)
var/char_race = input(src, "What race do you wish to be?", "New Character", "Human", "Alien") in _races
if(char_race == "")
ChoosePower()
switch(input("Do you want to see training information?") in list("Yes", "No"))
if("Yes")
ShowLevel=1
if("No")
ShowLevel=0
alert("This is still in beta if you see any bugs report it with the bug report button, alot of stuff in this game still don't work. Any feature requests please page the owner on byond at: Dragonpearl123")
Ranking(src)
var/rtype = _races[char_race]
var/mob/new_mob = new rtype()
new_mob.savable = 1
new_mob.name = char_name
//new_mob.gender = Gender
savefile[ckey(char_name)] << new_mob //Line 104
new_mob.client = client //after creating the new character, you need to set the new mob's client to end the character creation process and suspend the loop.
Problem description:
Runtime error:
runtime error: bad savefile or list
proc name: CreateNewCharacter (/mob/proc/CreateNewCharacter)
source file: Start.dm,104
usr: (src)
src: Dragonpearl123 (/mob/other/choosing_character)
src.loc: the turf (11,11,3) (/turf)
call stack:
Dragonpearl123 (/mob/other/choosing_character): CreateNewCharacter()
NewO (4,15,3) (/turf/Login/NewO): Click(NewO (4,15,3) (/turf/Login/NewO), "gamewindow.map1", /list (/list))