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

Show critical (green square) when the combined dice roll is greater than a value

Pretty simple - I want to roll something like [[[[3d6]]cs>10]] If the total of 3d6 is greater than (or equal to) 10, show it as a critical. However the syntax above doesn't work. Does anyone know what the correct syntax for this is?
1661908752

Edited 1661913152
timmaugh
Pro
API Scripter
Try this: [[(3d6)cs>10]] Using the parentheses renders the value into a single number. The metamancer responsible for the content of this inaccurate, dis-educational, and wholly unentertaining post has been sacked. His replacements are currently working on a real solution.
1662561316

Edited 1662567945
Grinning Gecko
Pro
Sheet Author
So, I guess it's fair to say this isn't possible? Kind of frustrating that I can't use the _total_ to represent a crit. I know I could do this with roll templates, but that's a lot of effort for something that should be simple.
I think it only works on 1 die.&nbsp; <a href="https://wiki.roll20.net/Dice_Reference#Critical_Success_and_Fumble_Points" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Critical_Success_and_Fumble_Points</a>
1662564897
Kraynic
Pro
Sheet Author
Assuming this is being displayed in a roll template, you can probably use logic after the roll to highlight crits.&nbsp; I haven't played with it myself, but you might want to use RollGreater: &nbsp; <a href="https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Logic" rel="nofollow">https://wiki.roll20.net/Building_Character_Sheets/Roll_Templates#Logic</a>
Ah, yes, roll *templates* (I mistakenly said *tables* above). I guess that's the route I'm going to have to go.
1662585851
timmaugh
Pro
API Scripter
I made it work. It ain't pretty, but... Well, no. There's no "but" to it. It just isn't pretty. Here is an option using ZeroFrame and MathOps (metascripts): [\][\]1d[[3d6]]r&lt;{&amp;math $[[0]] - 1}cs&gt;10\]\] And here is an option using just ZeroFrame: [\\][\\]1d[[3d6]].valuer&lt;[\][\]$[[0]] - 1\]\].valuecs&gt;10\\]\\] In both cases, your initial roll of 3d6 is in a position where it will be interpreted as roll index 0, so we can refer to it later. This is important to understand if you replace 3d6 with some other roll that has a nested roll inside of it, or if 3d6 isn't the very first roll in the message. In those cases, change the $[[0]] roll marker accordingly. The thinking here is to take your result and brute-force it into a single-die roll of that many sides where we are rerolling anything but a top result: 3d6 =&gt; becomes =&gt; 15 =&gt; becomes =&gt; 1d15r&lt;14cs&lt;10 With the whole thing being reduced to a single die, you can apply your critical success threshold and get your green-rimmed result.
LOL yikes. I'm impressed at your persistence, but I'm not a big fan of depending on API scripts, as they're not available to free users. I'll likely go the roll template route since it's related to my sheet anyway. But thanks!
1663048790

Edited 1663048815
Victor B.
Pro
Sheet Author
API Scripter
Roll templates can do it.&nbsp; You need to put the syntax equivalent of an IF statement.&nbsp; If ROLL &gt; whatever, then show ROLL in Green, otherwise, show roll in (fill in blank).&nbsp;&nbsp;