On Wed, 9 Aug 1995, Mark Garringer wrote: > 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); > } > } You've got it flipped, it should be if (percent > prob). (Think about the newbie - he has prob 0, therefore percent will never be less than prob.) Levork
This archive was generated by hypermail 2b30 : 12/18/00 PST