Re: ascii pfiles v2.0

From: Sammy (samedi@DHC.NET)
Date: 03/26/98


On Thu, 26 Mar 1998, Eduardo Gutierrez de Oliveira wrote:

> While we are here is there *any* way to save temporary objects (and mobs,
> like pets) in this setup or that would be too unwieldy?

Temporary objects will be a snap.  As long as they're based on a valid
prototype (as opposed to corpses and such with -1 vnum) you just have to
make sure any data that isn't saved in stock rent files is added to the
ascii load/save routines.  I've used this method to save mail in players'
inventory.  Corpses could be saved, too, if you throw everything they need
into the load/save functions.

Pets and other mobs could be added as a seperate file and loaded/saved
like objects will be, meaning a vnum will be saved, and then any
non-prototype info, like current hitpoints if they aren't equal to the
prototyped max for that mob.

Neat idea.  Maybe I'll add support for saveable pets.

Sam


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST