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??????
ID:266374
Feb 3 2002, 8:43 am
|
|
First off, don't use all caps. It's unreadable.
Second, just store the whole object:
F["myobject"] << the_object