mob/create_character
var/mob/character
Login()
world <<"<b>[usr] has logged In"
src<<"<font color=red>We are ineed of a name but the game is about 4% done.Report any bugs with the report verb."
var/charactername = input("What's your name.","Character Name?")
if(character.name=="")
del(usr)
else
character.name = charactername
switch(input("What race do you wat to be?.","Character Race?") in list("D","F"))
if ("D")
switch(alert("Are you sure?",,"Yes","No"))
if("Yes")
character = new /mob/characters/D()
if("No")
return
if ("F")
switch(alert("Are you sure?",,"Yes","No"))
if("Yes")
character = new /mob/characters/F()
if("No")
return
I keep getting this...
runtime error: Cannot read null.name
proc name: Login (/mob/create_character/Login)
source file: Login.dm,13
usr: CodingSkillz2 (/mob/create_character)
src: CodingSkillz2 (/mob/create_character)
call stack:
CodingSkillz2 (/mob/create_character): Login()
No matter if I put no name or a name.