well
this is the code...
var/list/files = list()
proc/WorldSave()
world<<"World saving!! Saving world every 10 minutes. Lag monster coming!! Please hold."
spawn(10)
for(var/mob/M as mob in world)
var/first_initial=M.name
M.Save(first_initial)
spawn(100)
WorldSave()
return
var
filename
mob/proc/Save(O)
var/savefile/F=new("/mobs/[O].sav")
files+=O
F["[O]M"]<<src
F["[O]x"]<<src.x
F["[O]y"]<<src.y
F["[O]z"]<<src.z
return
mob/proc/Loadworld()
for(var/T in files)
var/savefile/F=new("/mobs/[T].sav")
F["[T]M"]>>M
F["[T]x"]>>M.thex
F["[T]y"]>>M.they
F["[T]z"]>>M.thez
M.loc=locate(M.thex,M.they,M.thez)
world<<"Loading saved world..."
return
I'm having it create savefiles and it keeps popping up every time a new one is created...