I'm designing a text only game, and I need to save the entire world to a save file on shutdown, then have it restore exactly the way it was left when starting back up.
How would I do this?
ID:261429
Mar 16 2002, 2:27 pm
|
|
In response to Kevin Kitsune
|
|
You can't read and write to world.contents, although it would be nice if you could :o)
|
'index' is a list of all objects in the world, in a maintained numerical order. (So I can imitate a MUCK)
I just read/write that list.
I suppose this would work the same if I directly read and wrote to world.contents?