Roll templates can't make any calculations, only display the results of calculations from rolls. It's impossible to make the sort of roll you want, except in a slightly hacky way. So, while you can't make that calculation, you can use the roll template to compare one number to another. So, if you're working with a fairly limited dice pool, it's trivial to generate a dynamic response. Imagine (for the sake of brevity) that your dice pool is only 3 dice. You could write something like this: {{#rollTotal() total 1}} // if we rolled one dice then... {{#rollTotal result 0}} // ...a result of 0 must mean 1 failure 1 failure {{/rollTotal result 0}} {{#rollTotal() result 1}} // ...a result of 1 must mean 0 failures 0 failures {{/rollTotal() result 1}} {{/rollTotal() total 1}} {{#rollTotal() total 2}} // if we rolled two dice then... {{#rollTotal result 0}} // ...a result of 0 must mean 2 failures 2 failures {{/rollTotal result 0}} {{#rollTotal() result 1}} // ...a result of 1 must mean 1 failure 1 failure {{/rollTotal() result 1}} {{#rollTotal() result 2}} // ...a result of 2 must mean 0 failures 0 failures {{/rollTotal() result 2}} {{/rollTotal() total 2}} {{#rollTotal() total 3}} // etc. etc. {{#rollTotal result 0}} 3 failures {{/rollTotal result 0}} {{#rollTotal() result 1}} 2 failures {{/rollTotal() result 1}} {{#rollTotal() result 2}} 1 failure {{/rollTotal() result 2}} {{#rollTotal() result 3}} 0 failures {{/rollTotal() result 3}} {{/rollTotal() total 3}} And, as I'm sure you can imagine, this is a massive pain to manually write and test for large number sets, which is really why most people wouldn't do it. That said, if you use a HTML pre-processor like PUG, it becomes much easier to achieve via looping. EDIT: Huh, GiGs, TIL.