Disarm problems...

From: Mark Garringer (zizazat@rmii.com)
Date: 08/09/95


Ok, I need some advice here...I got this disarm thing down, finally. 
However, a 1st level char without any skill whatever in disarm will 
always disarm someone...

Here is my code:

   percent = number(1, 101); /* 101% is a complete failure */
   prob = GET_SKILL(ch, SKILL_DISARM);
   
   if (percent < prob) {
      act ("You failed to disarm $s.", FALSE, ch, 0, victim, TO_CHAR);
   } else {
   disarm(ch, victim);
   }
}

Advice? Thanks.

--Ziz, NetShamen



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