Help with dice rules

Be sure to read and follow the guidelines for our forums.

Aug 4, 2025 2:03 am
Is there any way to test both a die result and the total?

I tried:

{"roll": "2d12",
"natural": 2,
"total": ">4",
"highlight": "fail"}

And it didn't work.
Aug 4, 2025 2:27 am
What is the desired result?

It looks like the plan here is: if you roll a 2, and the other die is greater than a 2 (so the total is greater than 4), the die-total text is red.
Aug 4, 2025 9:13 am
The goal is either to highlight the highest die from a 2d12 roll or, if possible, append one content if the higher die is the first (rolled with Hope) and another content if the higher die is the last (rolled with Fear)

Any ideas? Everything I tried didn't work. =(
Last edited August 4, 2025 9:18 am
Aug 4, 2025 2:02 pm
I had an idea but it didn’t work.

https://i.imgur.com/vdc9D0dm.jpeg

There’s no such thing as firstDie, and I don’t know if there’s a code to determine whether the lastDie is the highest or lowest die. If such a thing exists, you could contentAppend the word HOPE or FEAR. It would appear next to the die face value, like
(2, 5 FEAR) = 7
or
(12, 1 HOPE) = 13

…and I suppose pairs would keep doing what they’re doing already.

I didn’t expect typing "highest" would magically work, but I wrote the code that way to express what I think could work, if there’s some line of code for it, like
"lastDie": "true something"

I know code exists that counts the higher die as well, but the tricky part is that you need a specific die to be higher if you want hope to be blue and fear to be red, or something like that. "lastDie" is the only code I know of that can tie to a specific die, and I know how to work with that die being a specific value or range… but I don’t know how to compare that die to other dice or the total.
Last edited August 4, 2025 2:02 pm
Aug 4, 2025 4:45 pm
Yeah. =(

Thanks for trying. =)
Aug 4, 2025 5:31 pm
We spent some time trying to figure it out and with the current code it doesn't look like it can be done. Until Keleth returns and we see if DH has enough demand to get custom code done for it (shouldn't be that hard, but there are higher priorities), we've just agreed that the first die is hope and the second is fear and you have to read it for hope/fear/crit "manually".
Aug 4, 2025 7:03 pm
Yeah. Those are my rules so far. Will read hope/fear manually using the same convention as you (hope is the first one).

"diceRules": [
{
"paired": true,
"rolled": "2d12",
"highlight": "success bold invert",
"contentAppend": "🎯"
},
{
"total": ">=##",
"reason": "(##)",
"rolled": "2d12",
"contentAppend": "✅️"
},
{
"total": "<##",
"reason": "(##)",
"rolled": "2d12",
"contentAppend": "❌️"
}
]

They support crits and reasons like "Agility Roll (12)" =)
Last edited August 4, 2025 7:41 pm
Aug 4, 2025 9:43 pm
runekyndig set up the dice rules to color the dice (green for the first die and red for the second) but not the success/fail. I think the two combined would make for very readable rolls (except for certain types of colorblindness, I think).

You do not have permission to post in this thread.