Re: [NEWBIE][CODE] Object manipulation and modification

From: Patrick Dughi (dughi@imaxx.net)
Date: 03/03/99


> > >So the BIG question: Can a single instance of an object be modified
> > >without modifying the VNUM/object database?  and further, code to do it.
> >
> > The ASCII object files (PjD I think) can do it.  Otherwise, no.
> >
> > object->description = str_dup("Your reward.");
> >
> > Then his object code determined it was different and saved it.  I might be
> > pulling this out of the thin air, but I could swear that's what was done.
> > Don't remember where he put it though.
>
> ftp.circlemud.org/pub/CircleMUD/contrib/code/xapobj.patch

        It worked by setting a flag 'unique' on the objects, and saving
them special if that was the case.

        His code was also rather bug ridden, and only worked for all
simple cases, and even then not so well.  I'd suggest taking a long look
at all related posts previous to installing this patch, since the major
bugs at least, are pointed out there.

        On the other hand, I hear that the second version of it is almost
done (class and job and friends and women (well, maybe) and partylife
willing), and includes an ieditor just like oedit, for ease of alteration.
Little problems with the extra descriptions, but not to worry.

                                                        PjD


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



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