MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

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




> 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



[ Other Periods  | Other mailing lists  | Search  ]