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

How to write a macro that rolls a D12 which fails if 1 or 7 or 11, else succeed

"How to write a macro that rolls a D12 which fails if 1 or 7 or 11, else succeed", everything is in the title So far I tried  [[{?{INPUT}d8>2f7f11}]] but Roll20 doesn't allow for two different failures...
1757000123
timmaugh
Forum Champion
API Scripter
If scripts are available, the Metascript Toolbox would approach it like this: !&{template:default} {{name=Proof of Concept}} {{Base Roll=[[15d12]] }} {{Showing Dice= {&eval}getDiceByVal(--$[[0]] --<13 --included --list|", "){&/eval}}} {{Failures={&eval}getDiceByVal(--$[[0]] --1|7|11 --included --count){&/eval} }} {{Successes={&eval}getDiceByVal(--$[[0]] --2-6|8-10|12 --included --count){&/eval} }}{&simple} If scripts are NOT available, there might be some dark sorcery Rainbow might be able to pull off, if you are willing to pay the price*. I'll see if I can summon them. * -- I am being told there's no actual price.
Are the dice roll values used for anything beyond determining success/failure? If not you can just use [[?{INPUT}d12>4]] as that is statistically equivalent. But if need to be able to read the values the closest you'd get would be [[ (?{INPUT}-[[?{INPUT}d12=11 ]])d12>2f7r11  That would show all the values correctly except 11's. But the correct number of 11's rolled would be visible at the start of the roll inside the ( ) as that would show (INPUT - Eleven's)