ID:266374
 
I got this script one for load the other for save

LOAD

mob/verb
loadicon()
var/savefile/F
F = new("file.sav") // create (or open) "file.sav"
F[""] >> src. // read icon from "icon" buffer


SAVE

mob/verb
saveicon()
var/savefile/F
F = new("file.sav") // create (or open) "file.sav"
F["icon"] << src.icon // write icon to "icon" buffer



BUT IT ONLY SAVES THE ICON HOW DO I GET IT TO SAVE EVERYTHING STATS,ICON,ITEMS,EXT??????
Flame Sage wrote:
BUT IT ONLY SAVES THE ICON HOW DO I GET IT TO SAVE EVERYTHING STATS,ICON,ITEMS,EXT??????

First off, don't use all caps. It's unreadable.

Second, just store the whole object:

F["myobject"] << the_object