[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

12826: Re: [MUD-Dev] [CODE] unique items

[Full Header] [Plain Text]
From: Marc Bowden <ryumo@merit.edu>
Newsgroups: nu.kanga.list.mud-dev
Date: Mon, 20 Mar 2000 07:54:07 -0500
References: [1]
Organization: Kanga.Nu
> From: J. Coleman <stormknight@alltel.net>
> 
> 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?

  Just off the cuff, a really quick way that would work for us
(Dreamshadow pre-dates lockers or item storage, so ymmv of course.)

create() {
 ...
 if(sizeof(children("/obj/generic/misc/ark_covenant"))<2)
  new("/obj/generic/misc/ark_covenant")->move(this_object());
 ...
}

--------------------------------------------------------------------
Marc Bowden - Soulsinger         Dreamshadow:The Legacy of the Three
  ryumo@merit.edu                                 206.246.120.2 3333
--------------------------------------------------------------------




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