Re: "Room Saving" Snippet and Containers...

From: X Schiltz (joes@SKIPNET.COM)
Date: 03/06/98


On Fri, 6 Mar 1998, Patrick J. Dughi wrote:

> On Fri, 6 Mar 1998, X Schiltz wrote:
>
> > Give objects two new parameters, object num, and container num. When
> > something enters a house, assign it an object num, if it's in a container,
> > assign it a container num(that of it's container's object num). If it
> > leaves the house, remove it's object num, when the house reloads, load all
> > object's into the item that has the same object num as the item's
> > container num. Sound simple enough? (:
>
>         Would it be just as easy (upon saving) assign a depth to it...
> 0 being on the floor, 1 being in a container... then when reading in,
> just wrap each object with the depth...
>
>         depth           object
>           0             dagger
>           0             leather armour
>           0             bag
>           1             torch
>           1             torch
>           1             bag
>           2             bread
>           1             scroll of recall
>           0             dagger
>
>                                                         PjD
Uh...I suppose that isn't to bad of an idea...it's bad, but not to bad, I
might consider it. (;

\  /
 \/
 /\
/  \


     +------------------------------------------------------------+
     | 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