Re: Help with formula for consider command

From: Del (caminturn@earthlink.net)
Date: 04/21/01


Peter Ajamian wrote:
>
> One thing that I failed to point out that I probably should have...
>
> Karl Buchner wrote:
> >
> > MIN(95, MAX((19 - (thac0 - ac)) *5), 5)
> > MIN and MAX because you always hit on a 1 and miss on a 20.
>
> How does limiting the range to between 5 and 95 account for this?  It
> would seem to do just the opposite of what you want.  Also (not saying
> your wrong with this, just wanting to know) according to the builder's
> doc thac0 ranges from 0 to 20, where do you get the "always hit on 1"
> part?
>

Actually it always hit on 20 and always miss on 1
but it does not change the idea of the formula.

  if ((((diceroll < 20) && AWAKE(victim)) &&
       ((diceroll == 1) || ((calc_thaco - diceroll) > victim_ac)))) {
    /* the attacker missed the victim */

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST