s["mob/player"] << src
Ter13 would you like to take a look?
Also, Tarun helped me with it and gave me this format. The only issue now is that I have to manual define and save every var.
mob/proc
SAVEcharacter()
if(fexists("Players/[ckey].sav")) fdel("Players/[ckey].sav")
var/savefile/s = new("Players/[ckey].sav")
s["icname"] << src.icname
/*s["x"] << src.x
s["y"] << src.y
s["z"] << src.z*/
s["LX"] << src.x
s["LY"] << src.y
s["LZ"] << src.z
// s["mob/player"] << src
src<<"Game Saved"
LOADcharacter()
if(fexists("Players/[ckey].sav"))
var/savefile/s = new("Players/[ckey].sav")
//s = new ("[src.ckey].sav")
s["icname"] >> src.icname
s["LX"] >> src.LX
s["LY"] >> src.LY
s["LZ"] >> src.LZ
// s["mob/player"] >> src
src.loc=locate(LX,LY,LZ)
src<<"Success Loading"
winshow(src,"mainwindow",0)
stage4()
atom/var
LX
LY
LZ
mob/verb/SAVE()
alert("SAVE VERB")
usr.SAVEcharacter()
mob/verb/LOAD()
alert("LOAD VERB")
usr.LOADcharacter()
And this is just a little 1 out 26 of them.