Re: Code:Skill learning

From: Daniel Koepke (dkoepke@california.com)
Date: 12/16/96


On 16 Dec 1996, Tyler Wilhite/FASTTAX wrote:
> [snipped the message]

You could make it so that a player can practice/use a spell/skill
outside of their class if GET_SKILL(ch, xxx) is not zero.  So, for
instance:

  if (GET_LEVEL(ch) >= spell_info[i].min_level[(int) GET_CLASS(ch)] ||
      GET_SKILL(ch, i)) {
    .
    .
    .
  }

the GET_SKILL(ch, i) check is new.  You'll also need to change skills
which have things like:

  if (GET_CLASS(ch) != CLASS_WARRIOR) {
    send_to_char("Only warriors can do this!\r\n", ch);
    return;
  }

to...

  if (!GET_SKILL(ch, SKILL_x)) {
    send_to_char("You don't know how to do that.\r\n", ch);
    return;
  }

Pretty much it, though... :)


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST