To account for spell components, I added a struct component_list to the mud, and added a required pointer to one for each spello() call. Then I added null pointers to all the spello's. My component_list structure is really just an array of up to 4 vnums of objects. The spell casting code looks to see if there is a component_list for the spell and, if so, makes sure the user has these components on them (about the same place required mana is checked for) and, if all conditions are met, the components are removed from the player. At 03:47 PM 6/4/98 -0700, you wrote: >i would like to get some ideas and feedback >concerning the use of spell components, > >i am debating two approaches, >the first, to create a new item type called focusing crystal, and to >make various gems with this type, with higher valued gems lasting >longer before becoming burned out, > >the second, to add a check to each spell that needs common everyday >items that are already made in the stock circlemud database, > >the first seems quick to code and setup > >the second seems laborous but more entertaining to the players > >anyone else care to share any experiences with spell component >implementations? > > > >_________________________________________________________ >DO YOU YAHOO!? >Get your free @yahoo.com address at http://mail.yahoo.com > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ > +------------------------------------------------------------+ | 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