mob/var/age
mob/create_character
var/mob/character
Login()
alert("You had a baby!! Congradulations!!")
switch(input("It's a....!","Gender") in list("Boy!","Girl!"))
if("Boy!")
character = new /mob/Male()
if("Girl!")
character = new /mob/Female()
var/charactername = input("What will you name him/her?","Baby's Name",src.key)
character.name = charactername
var/age = input("How old are you now?","Your Age")
if(age<=10)
alert("That's too young!")
return
src.client.mob = character
del(src)
When I compile there are no errors but when I run I get a runtime error.
runtime error: type mismatch
proc name: Login (/mob/create_character/Login)
usr: Tozoro (/mob/create_character)
src: Tozoro (/mob/create_character)
call stack:
Tozoro (/mob/create_character): Login()
Could someone tell me what I did wrong please?