mob/player
Login()
..()
//Make their name their key(temporary)
src.name=src.key
//Set their icon(Testing purposes)
icon='./Icons/Base.dmi'
//Initiate all stats(Required)
Initiate()
mob
player
Initiate()
level=new(src,,,)
health=new /stats(src, "Health", 100, 0, 50, 25)
stamina=new /stats(src,"Stamina",100,0,50,20)
reiryoku=new /stats(src,"Reiryoku",100,0,50,1)
hakuda=new /stats(src,"Hakuda",50,0,50,1)
zanjutsu=new /stats(src,"Zanjutsu",50,0,50,1)
GetSave(mob/player/M)
var/file=M.ckey
var/first_letter=copytext(file,1,2)
return new /savefile("Saves/[first_letter]/[file]")
//Saves
mob/Save()
var/savefile/F=GetSave(src)
F<<src
src<<"Saved."
//Loads
mob/Load()
var/savefile/F=GetSave(src)
src<<F
src<<"Loaded."
mob/verb/Randomize_Reiryoku()
var/new_val=round(rand(100,500),1)
var/new_m_val=round(rand(500,1000),1)
usr.reiryoku.value=new_val
usr.reiryoku.max_value=new_m_val
//Read and Write for mobs
mob/Write(savefile/F)
..(F)
F.dir.Remove("icon","overlays","underlays","contents")
F["saved_x"]<<x
F["saved_y"]<<y
F["saved_z"]<<z
mob/Read(savefile/F)
..(F)
var
_x
_y
_z
F["saved_x"]>>_x
F["saved_y"]>>_y
F["saved_z"]>>_z
loc=locate(_x,_y,_z)
Well, I was going to blame this on the whole "Loading doesn't pass to New()" thing, but this is preventing the savefile from being created. I use the Randomize_Reiryoku verb to change things up(To see if it saves/loads), but when I noticed it wasn't loading, I went and looked, and found out that the savefile hadn't even been created. Can anyone tell me what is wrong?