[MUD-Dev] [CODE] unique items

Kevin Scott London london at cs.utk.edu
Mon Mar 20 00:16:59 CET 2000


On Sun, 19 Mar 2000, Ben Greear wrote:

> "J. Coleman" wrote:
> > 
> > Does anyone know a good way to handle unique items? I want to have
> > players able to make magic items themselves, that are completely custom.
> > Magic items in my game will be fairly powerful because of their rarity,
> > and the fact that they must be created, and not found. Is there a good
> > clean way to keep an "index" file of all magic items that have been
> > created this way, and to reference player files to it perhaps? How does
> > everyone else do this?
> > 
> >         -Justin
In smaug we have "glory" that allows people to specialize weapon/armor/eq,
we keep an index of all the objects and save that to the pfile, then any
changes are saved to the pfile.  I would highly suggest setting a flag, or
having a very big detriment to the player for making a powerful magical
item, or people will make bots and make them all the time.  As for
creating indexs, you could set a flag on the item (A bit), that states it
was made, and when you loadup the pfile, simply make a double or single
linked list of items made on loadup as well as inserting it in the main
obj list, then remove them from the special list when they are extracted.
Kevin London aka Nivek ;)




_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list