mob/create_pc
Login()
var/mob/character
var/classlist[] = list("Warrior","Thief","Mage","Cleric")
var/charactername = src.key
alert(src, "Welcome, [charactername]. The following is a character creation, when you are ready to proceed, simply click OK.")
switch(input("What is thy class?","Class Selection","Warrior") in classlist)
if("Warrior")
character = new /mob/pc/warrior()
if("Thief")
character = new /mob/pc/thief()
if("Mage")
character = new /mob/pc/mage()
if("Cleric")
character = new /mob/pc/cleric()
character.name = charactername
src.client.mob = character
if(character.name == null)
character.name = src.key
del(src)
Problem description: when i login it goes straight to my last save point...it overrides the choose character screen
[code]
mob/Login()
..() //Continues to all other logins first, then comes back to this one
for(var/mob/M in world)
M<<"WHOA."
[/code]
or at the end...
[code]
mob/Login()
for(var/mob/M in world)
M<<"WHOA."
..() //Continues to any other logins that there may be...
[/code]
Depending on the order you what your logins... it doesnt matter, the point is, if you use multiple logins, they need ..() to coninue onto others, works for all procs...