Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Three kinds of success

1456628853

Edited 1456628971
I suspect the answer is "you can't," but I'll ask anyway. Roll20 supports critical hits and fumbles. In the game I'm running, there are three special kinds of rolls: Victories (critical hits), Blunders (fumbles), and Graces. A Grace is a success in which you were secretly helped by time traveler (e.g., "So it WAS me to took my dad's keys!"). A Victory happens if you roll a 1 (on a d10) and roll again and get another 1; a Blunder happens on a 10 and roll again and get another 10; a Grace happens if you roll your unmodified skill rating and roll again and get your unmodified skill rating again. The closest I've been able to get to this in a roll template is with: {{result=[[@{rating} - 1d10cs1cs[[@{rating}]]cf10]]}} {{check=[[1d10]])). To show Victories and Blunders I use: {{#rollWasCrit() result}} {{#rollTotal() check 1}} VICTORY {{/rollTotal() check 1}} {{/rollWasCrit() result}} {{#rollWasFumble() result}} {{#rollTotal() check 10}} BLUNDER {{/rollTotal() check 10}} {{/rollWasFumble() result}} So far, the best I've been able to do for Graces is: {{#rollWasCrit() result}} {{#^rollTotal() check 1}} POSSIBLE GRACE: are Rating and Check the same? {{/^rollTotal() check 1}} {{/rollWasCrit() result}} and ignoring the someone unusual case of someone with a rating of 1 rolling both a Victory and a Grace at the same time. I'm sure there isn't another die modifier, like cs and cf, that could solve this by giving me something else to "hook" onto with a helper function. Right? Anybody have any ideas on how this might be accomplished? Is there a way to move the math of (rating - roll) to someplace other than "result" such that I can refer to {{rating}} and {{roll}} separately in the template but still end up with the correct {{result}} as well?
This would be fairly easy with an API script, but I don't see a way to do it just using the default roll20 options.