mob
create_char
Login()
..()
var/mob/New
var/mob/OldMob=src
alert("Hello [src]!","Continue")
while(!charactername) //while you have a nullified name
charactername=input(src,"Welcome! What is your name?","Character Creation")as text
if(length(charactername)>=20)
src<<"Must be smaller then 20 characters!"
return
var/gender=alert(src,"What gender do you wish to be?","Character Creation","Male","Female")
var/race=input("What race do you want to be?","Character Creation") in list("Warrior","Archer","Mage")
var/M=text2path("/mob/characters/[race]")
New = new M
New.icon = 'Icons.dmi'
New.icon_state=copytext("[race]",1,4)+"[gender]" // So for example, you call your male warrior's icon_state: Warmale
New.name = name
src.client.mob = New
New.loc=locate(1,1,1)
raceskills()
del(OldMob)
mob/proc
raceskills()
if(src.race == "Archer")
src.verbs += /mob/archer/verb/Fire
if(src.race == "Warrior")
src.verbs += /mob/warrior/verb/Slash
if(src.race == "Mage")
src.verbs += /mob/mage/verb/Psuedonym
Problem description: src.race:undefined var