Re: Spells/skills

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 03/08/98


On Mon, 9 Mar 1998, Chuck Reed wrote:

->Was wondering, how hard would it be to set classes up where they could use
->both skills and spells.  Anyone got any good pointers on where to start?

Uhhmm, they already can.  Of course, there are certain skills that
have class checks in them (and my opinion is that stock Circle should
avoid class checks like that whenever possible) so, like in do_kick,
you would find the line,

  if (GET_CLASS(ch) != CLASS_WARRIOR) {

and change it to,

  if (!GET_SKILL(ch, SKILL_KICK)) {

That way it's just dependent on whether or not they know how to kick.
Stuff like this also goes a ways towards making classes easier to add
(and, for that matter, remove).

-dak


     +------------------------------------------------------------+
     | 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