ID:145774
 
Code:
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

Well, you should put this ..() after each Login... like so..
[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...
In response to Killer22
it still doesnt work.do you think it can be anything else? Do you think it has to deal with the fact that i cant even get character names..i only use keys right now
In response to KamuraiKin
use <.dm> <./dm> tags. Not [code] o.O (Without the '.'
Are you using Deadrons character handling? If so, it sounds like you have the players base amount of characters set at 1, so it autoloads when you already have a character.

You'll want to allow the person to have more than one character, by changing the client variable base_num_characters_allowed to how many characters you want to allow. For example:
client
base_num_characters_allowed=3//sets the var at 3\
allowing a max of 3 characters

Please don't copy and paste, as it's just not conducive to learning. I hope I was able to help.
In response to Mysame
i added
..() to the bottom of my character handling stuff
and after this
mob/create_pc
Login()
for(var/mob/M in world)
M<<"WHOA."
..() //Continues to any other logins that there may be...
In response to Detnom
actually yes i am, i didnt think somthing of deadrons would screw it up lol, thanks guys for you help
In response to KamuraiKin
runtime error: Cannot modify null.name.
proc name: CreateCharacter (/mob/creating_character/proc/CreateCharacter)
source file: characterhandling.dm,141
usr: KamuraiKin (/mob/creating_character)
src: KamuraiKin (/mob/creating_character)
call stack:
KamuraiKin (/mob/creating_character): CreateCharacter()
KamuraiKin (/mob/creating_character): Login()


... it just wont even let me login, help?
In response to KamuraiKin
Wild guess - You're trying to change character.name without initializing character as a new mob first.

It would however help if you showed your new code, and pointed out the line with the error (141).
In response to Detnom
well i fixed it, but the runtime error was when i actually tried to login. after i logged in and try to go to my char it would say that like 16 times (exagurate).