another question.. martial arts

From: Brian Williams - Nashak (bmw@efn.org)
Date: 02/06/97


I have it so every 5 or so levels, you have a chance of another attack
but it also depends on your skill in martial arts.. <monks only>
anyways.. I haven't added the skillo(SKILL_MARTIAL_ARTS) or
spell_level for it yet, so all martial arts skills should be 0
but my immortal still gets all the attacks.. any ideas? here is
the if checks

  if (GET_CLASS(ch) == CLASS_MONK) {
    prob = GET_SKILL(ch, SKILL_MARTIAL_ARTS);
    if (GET_LEVEL(ch) >= 15 && number(20, 101) < prob && FIGHTING(ch))
      hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
    if (GET_LEVEL(ch) >= 25 && number(35, 101) < prob && FIGHTING(ch))
      hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
    if (GET_LEVEL(ch) >= 32 && number(50, 101) < prob && FIGHTING(ch))
      hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
    if (GET_LEVEL(ch) >= 38 && number(65, 101) < prob && FIGHTING(ch))
      hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
    if (GET_LEVEL(ch) >= 43 && number(80, 101) < prob && FIGHTING(ch))
      hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
  }
thanks for any advice or help, etc.. =)

        /---------\      /--------/
       / /XXXXXXX\ \    / ////// /
      / ///XXXXX\\\ \  / ////// /
     / /////XXX\\\\\ \/ ////// /    -=-=-=-=-=-=-=-
    / //////  \\\\\\\  ////// /    Brian Williams
   / ////// /\ \\\\\XXX///// /    bmw@efn.org
  / ////// /  \ \\\XXXXX/// /
 / ////// /    \ \XXXXXXX/ / /\  /_ |_|  /\  |/
/--------/      \---------/ /--\  / | | /--\ |\

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