Through some process, you select an attacker and a defender. Let
us suppose the attack factor is 5 and the defense factor is 3.
Now you compute 2 numbers: first, the chance of hitting the defender:
this is 5/(5+3) = 5/8 = 0.625. Second, compute the chance of hitting
a target with 10 times the given defense value: this is 5/(5+10*3) =
5/35 = 0.143. Now, generate a random number between 0 and 1. If
the number is less than the first value, then you scored a hit.
If the number is less than the second value, then not only did you
score a hit, but you get to attack again immediately. This process
repeats: you can attack again and again as long as you get a good
enough random number.
Note that "10 times defense" is somewhat arbitrary, this can be adjusted
to be "5 times", or whatever seems appropriate.
This is nice in that creatures with high attack values will probably get
multiple hits against low valued opponents, but since the requirement
for getting the extra attack is fairly stringent, it doesn't get out of
hand (except possibly for something like dragons vs. peasants, but then
isn't that what you want anyway?).
-- Bron Campbell Nelson bron@sgi.com or possibly uunet!sgi.com!bron These statements are my own, not those of Silicon Graphics.