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.
Code:
proc 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. |
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.