ID:146696
 
Code:
    Login()
alert("Welcome to [world.name]!")
switch(input("What do you want to do?") in list("New Game", "Load Game", "Quit"))
if("Quit")
del(usr)
if("New Game")
switch(input("Are you sure? If you have an old character, it will be erased.")in list("Yes", "No"))
if("No")
return ..()
if("Yes")
var/name = input("What would you like your name to be?") as text
var/race = input("What race would you like to be?") in list("Saiyan", "Human", "Android", "Icer", "Namekian")
var/char = input("What character do you want to look like?") in list("Goku", "Vegeta", "Trunks", "Krillin", "Cell", "Frieza", "Piccolo")
switch(race)
if("Saiyan")
src.icon = 'saiyan.dmi'
src.icon_state = "[char]"
if("Human")
src.icon = 'human.dmi'
icon_state = "[char]"
if("Android")
src.icon = 'android.dmi'
icon_state = "[char]"
if("Icer")
src.icon = 'icer.dmi'
icon_state = "[char]"
if("Namekian")
src.icon = 'namekian.dmi'
src.icon_state = "[char]"
else
..()
src << "You have created [name] as a [race] using [char]'s icons."
usr.loc = locate(1,1,1)
world << "--[world.name]-- [name] has logged in."
if("Load Game")
if(fexists("players/[ckey].sav"))
usr.LoadMob()
src<<"Load Successful"
world << "--[world.name]-- [name] has logged in."
return ..()
else
alert("You don't have a character! Please create one!")
return ..()
..()

if(GM.Find(src.key))
src.verbs += typesof(/mob/gm/verb)
else
src.verbs += typesof(/mob/player/verb)


Problem description:

Now, everything works fine, except for after you login. When you login, the first alert comes up again and it keeps asking you what you want to do. Help me fix this please!