client
var
active_player = 0
proc
Save_Mob()
var/savefile/F = new("players.sav")
var/char_ckey = ckey(mob.name)
mob.tempx = mob.x
mob.tempy = mob.y
mob.tempz = mob.z
mob.temp_dir = mob.dir
F["[ckey]/[char_ckey]"] << mob
active_player = 1
Load_Mob(char_ckey)
var/savefile/F = new("players.sav")
F["[ckey]/[char_ckey]"] >> mob
mob.x = mob.tempx
mob.y = mob.tempy
mob.z = mob.tempz
mob.dir = mob.temp_dir
Create_New_Mob()
mob.name = input("What is your name?","Character name") as text
mob.icon_state = input("What color are your clothes?","Clothing Color") in list("Red","Orange","Yellow","Green","Blue","Purple","Black")
Save_Mob()
and my login proc:
Login()
if(client.active_player == 0)
client.Create_New_Mob()
else
client.Load_Mob()
..()
P.S. the Save() verb is a test 'cause I plan on using save points