
So in hackmaster, when you roll the max value on a dice, you get to roll another dice and subtract 1 from that value. In Roll20 this is done with a 1d20!p. So I worked on a roll recognition that would identify if you rolled a 1, 20 or 19. And it would tell you fumble, critical, near-perfect. One of my companions came up with this solution. Using 1d20cs>19cf1cf19 and the following code {{#def_roll}}
<tr><td><span class="tcat">Defense Roll: </span>{{def_roll}}</td></tr>
{{#rollWasCrit() def_roll}}{{#^rollWasFumble() def_roll}}
<tr><td><span class="tcat">Perfect Defense!</span></td></tr>
{{/^rollWasFumble() def_roll}}{{/rollWasCrit() def_roll}}
{{#rollWasCrit() def_roll}}{{#rollWasFumble() def_roll}}
<tr><td><span class="tcat">Near-Perfect Defense!</span></td></tr>
{{/rollWasFumble() def_roll}}{{/rollWasCrit() def_roll}}
{{#rollWasFumble() def_roll}}{{#^rollWasCrit() def_roll}}
<tr><td><span class="tcat">Fumble! (Automatic Fatigue Gain)</span></td></tr>
{{/^rollWasCrit() def_roll}}{{/rollWasFumble() def_roll}} It works perfectly for the d20. However Hackmaster uses multiple dice for defense. If I roll a d12 in this template, it will give me a perfect result on a natural 12, a fumble on a 1 and a near-perfect if I roll a 12 and then the penetrating dice rolls a 1. If I use 1d12!pcs>19cf1cf19 then it never shows a perfect or near perfect but it shows a 1 if I roll a 1 or a 12 and then a 1. Ideally I just want it to show a fumble on a 1, and a near-perfect on exactly a 19 (sum of 12+7), and a perfect on exactly a 20 (sum of 12+8). Is there anyway to do this?