ID:156950
 
I want players to see all thier saved characters when they loadcharacter.Then they can select anyone of those save characters to play as.

Add a good ol'

if(fexists("savefile."))
Guess I'll delete this post since you wanted to hide your code for some reason, makes no sense, someone else could have learned in this situation.


.>
In response to Vector2
I know about the fexists() but how do i load all the characters the player has created into one menu without using slots.Furthermore, I want no more than 3 character save files.
In response to NightSparta
Save a list of character names, and save each character under its name. You can load the list, select from it, then load the appropriate character.
In response to Garthor
var/characters[]

mob
verb
loadcharacter()
set hidden=1
src.LoadCharacter()

mob
proc
LoadCharacter()
var/saveFolder=uppertext(copytext(ckey,1,2))
var/savefile/F=new("savefile/players/[saveFolder]/[char_name].sav")
if(fexists("savefile/players/[saveFolder]/[char_name].sav"))
var/choice=input("Which Character do you wish to load?","Load Character") in characters
if(!choice)
return
else
Read(F)
src.loc=locate(src.last_x,src.last_y,src.last_z)
mob
proc
SaveMob()
var/saveFolder=uppertext(copytext(ckey,1,2))
var/savefile/F=new("savefile/players/[saveFolder]/[char_name].sav")
F["last_x"] << src.x
F["last_y"] << src.y
F["last_z"] << src.z
characters+=char_name
mob
Logout()
if(src.online==1)
src.SaveMob()

This is the best i can come up with and nothing works.