ID:872267
 
(See the best response by DarkCampainger.)
Code:
proc
save(mob/who)
var/savefile/F = new("player/[who.ckey].save")
for(var/var/vars in who)
F["[vars]"]<<vars

what would be the problem with this? im guessing not finding the vrs in the usr right, this is from when i was trying to make easier saving.

Best response
That's not proper syntax. To do something like that, you would have to use the vars list, and you would have to check issaved() and initial() manually to see if the variable should be saved.

The easiest way to save is to simply output the mob itself to the file, which takes tmp and initial variables into account automatically, and recurses through any objects in the mob's contents or other variables to save them as well. You just have to make sure to use the tmp modifier properly.

mob/proc/Save()
var/savefile/F = new("player/[src.ckey].save")
F["mob"] << src
ok, and what about saving items?
i dont want ALOT of space being taken up by the objects in the world