[Circle] Second/Third/Fourth Attack Skills

From: Leonard Burns IV (lburns@continet.com)
Date: 07/31/96


Ok I have the skills for a second/third/fourth attack defined in spell_parser.c and spells.h and I added some 
stuff to fight.c in the void perform_violence(void)

---[SNIP]---
    hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
    if (MOB_FLAGGED(ch, MOB_SPEC) && mob_index[GET_MOB_RNUM(ch)].func != NULL)
      (mob_index[GET_MOB_RNUM(ch)].func) (ch, ch, 0, "");

        if((GET_SKILL(ch, SKILL_SECOND) > 0)) {
           if(GET_SKILL(ch, SKILL_SECOND) > number(1,200)-15*GET_LEVEL(ch) )
	      if(FIGHTING(ch));
                 hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
        }

        if((GET_SKILL(ch, SKILL_THIRD) > 0)) {
           if(GET_SKILL(ch, SKILL_THIRD) > number(1,200)-10*GET_LEVEL(ch) )
	      if(FIGHTING(ch));
                 hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
        }

        if((GET_SKILL(ch, SKILL_HEXA) > 0)) {
           if(GET_SKILL(ch, SKILL_HEXA) > number(1,200)-5*GET_LEVEL(ch) )
	      if(FIGHTING(ch));
                 hit(ch, FIGHTING(ch), TYPE_UNDEFINED);
        }
---[SNIP]---

Now when I fight a mob I ALWAYS hit it, with each attack, how would I make it more random as the number of 
attacks get higher, like its harder to hit more time.

-- 
Leonard Burns IV
lburns@continet.com
+-----------------------------------------------------------+
| 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/07/00 PST