So that being said, how can i accomplish this...
mob
Login()
usr << "Welcome to One Piece Legends"
Beginning
switch(alert("Login","","New Character","Load Character","Delete Character"))
if("New Character")
switch(alert("Which Slot do you wish to Select?","","Slot 1","Slot 2","Slot 3"))
if("Slot 1")
if(fexists("Slot1/[usr.key].sav"))
switch(alert("Warning a save file has been found would you like to overwrite this slot?","","Yes","No"))
if("Yes")
fdel("Slot1/[usr.key].sav")
usr.logged = 1
usr.cansave = 1
usr.usingslot = "1"
name = input("Please enter your name:", "Your name") as text
src.Name=src.name
src.ID = rand(00001,99999)
switch(input("Please Select Your Gender:","Gender?") in list("Male","Female"))
if("Male")
icon='Male.dmi'
if("Female")
icon='Female.dmi'
if(key=="Komuroto")
src.verbs += typesof (/mob/DM/verb)
src.loc=locate(207,268,2)
else
usr<<"Slot 1 Creation Complete"
world << "[name] has appeared in the world for their first time!"
src.loc=locate(207,268,2)
client.eye=usr
return
if("No")
goto Beginning
else
usr.logged = 1
usr.cansave = 1
usr.usingslot = "1"
name = input("Please enter your name:", "Your name") as text
src.Name=src.name
src.ID = rand(00001,99999)
switch(input("Please Select Your Gender:","Gender?") in list("Male","Female"))
if("Male")
icon='Male.dmi'
if("Female")
icon='Female.dmi'
if(key=="Komuroto")
src.verbs += typesof (/mob/DM/verb)
src.loc=locate(207,268,2)
view() << "[src] has appeared!"
usr<<"Slot 1 Creation Complete"
else
src.loc=locate(207,268,2)
world << "[src] has logged in!"
usr<<"Slot 1 Creation Complete"
return
if("Slot 2")
if(fexists("Slot2/[usr.key].sav"))
switch(alert("Warning a save file has been found would you like to overwrite this slot?","","Yes","No"))
if("Yes")
fdel("Slot2/[usr.key].sav")
usr.logged = 1
usr.cansave = 1
usr.usingslot = "2"
name = input("Please enter your name:", "Your name") as text
src.Name=src.name
src.ID = rand(10000,99999)
switch(input("Please Select Your Gender:","Gender?") in list("Male","Female"))
if("Male")
icon='Male.dmi'
if("Female")
icon='Female.dmi'
// switch(input("Please Select Your Skin Tone:","Skin Tone?") in list("Lightest","Light","Medium","Dark","Darkest"))
// if("Light")
if(key=="Komuroto")
src.verbs += typesof (/mob/DM/verb)
src.loc=locate(207,268,2)
else
usr<<"Slot 2 Creation Complete"
world << "[name] has appeared in the world for their first time!"
src.loc=locate(207,268,2)
client.eye=usr
return
if("No")
goto Beginning
else
usr.logged = 1
usr.cansave = 1
usr.usingslot = "2"
name = input("Please enter your name:", "Your name") as text
src.Name=src.name
src.ID = rand(10000,99999)
switch(input("Please Select Your Gender:","Gender?") in list("Male","Female"))
if("Male")
icon='Male.dmi'
if("Female")
icon='Female.dmi'
if(key=="Komuroto")
src.verbs += typesof (/mob/DM/verb)
src.loc=locate(207,268,2)
view() << "[src] has appeared!"
usr<<"Slot 2 Creation Complete"
else
src.loc=locate(207,268,2)
world << "[src] has logged in!"
usr<<"Slot 2 Creation Complete"
return
if("Slot 3")
if(fexists("Slot3/[usr.key].sav"))
switch(alert("Warning a save file has been found would you like to overwrite this slot?","","Yes","No"))
if("Yes")
fdel("Slot3/[usr.key].sav")
usr.logged = 1
usr.cansave = 1
usr.usingslot = "3"
name = input("Please enter your name:", "Your name") as text
src.Name=src.name
src.ID = rand(10000,99999)
switch(input("Please Select Your Gender:","Gender?") in list("Male","Female"))
if("Male")
icon='Male.dmi'
if("Female")
icon='Female.dmi'
// switch(input("Please Select Your Skin Tone:","Skin Tone?") in list("Lightest","Light","Medium","Dark","Darkest"))
// if("Light")
if(key=="Komuroto")
src.verbs += typesof (/mob/DM/verb)
src.loc=locate(207,268,2)
else
usr<<"Slot 3 Creation Complete"
world << "[name] has appeared in the world for their first time!"
src.loc=locate(207,268,2)
client.eye=usr
return
if("No")
goto Beginning
else
usr.logged = 1
usr.cansave = 1
usr.usingslot = "3"
name = input("Please enter your name:", "Your name") as text
src.Name=src.name
src.ID = rand(10000,99999)
switch(input("Please Select Your Gender:","Gender?") in list("Male","Female"))
if("Male")
icon='Male.dmi'
if("Female")
icon='Female.dmi'
if(key=="Komuroto")
src.verbs += typesof (/mob/DM/verb)
src.loc=locate(207,268,2)
view() << "[src] has appeared!"
usr<<"Slot 3 Creation Complete"
else
src.loc=locate(207,268,2)
world << "[src] has logged in!"
usr<<"Slot 3 Creation Complete"
return
if("Load Character")
switch(alert("Which Slot do you wish to Select?","","Slot 1","Slot 2","Slot 3"))
if("Slot 1")
if(fexists("Slot1/[usr.key].sav"))
usr.SaveSlot1Load()
else
alert("No save file were found.")
goto Beginning
if("Slot 2")
if(fexists("Slot2/[usr.key].sav"))
usr.SaveSlot2Load()
else
alert("No save file were found.")
goto Beginning
if("Slot 3")
if(fexists("Slot3/[usr.key].sav"))
usr.SaveSlot3Load()
else
alert("No save file were found.")
goto Beginning
if("Delete Character")
switch(alert("Which Slot do you wish to Select?","","Slot 1","Slot 2","Slot 3"))
if("Slot 1")
switch(alert("Delete Save Slot 1 ?","Save Slot Delete","Yes","No"))
if("Yes")
usr.client.screen = null
if(fexists("Slot1/[usr.key].sav"))
fdel("Slot1/[usr.key].sav")
goto Beginning
else
goto Beginning
if("No")
goto Beginning
if("Slot 2")
switch(alert("Delete Save Slot 2 ?","Save Slot Delete","Yes","No"))
if("Yes")
usr.client.screen = null
if(fexists("Slot2/[usr.key].sav"))
fdel("Slot2/[usr.key].sav")
goto Beginning
else
goto Beginning
if("No")
goto Beginning
if("Slot 3")
switch(alert("Delete Save Slot 3 ?","Save Slot Delete","Yes","No"))
if("Yes")
usr.client.screen = null
if(fexists("Slot3/[usr.key].sav"))
fdel("Slot3/[usr.key].sav")
goto Beginning
else
goto Beginning
if("No")
goto Beginning
without all the needless repeating, that i have clearly done? It works, but Its too long...obviously.