I'm a bit
new to the forum, so forgive me if this topic may be in the wrong section.
I’m having a
bit of difficulty with the new roll templates. I’m attempting to find a way to
get it to show a critical success/fail whenever two (or more) dice are involved
in a roll. The border around the total result will turn red or green whenever
one of the dice (not both of them) rolls their highest or lowest.
Example:
A PC has a
unique statistic (we’ll pretend it’s simply named @{Stat},) that involves a
dice, let’s say a d6. For good measure, we’ll also include a miscellaneous modifier
(@{Mod}) with a static number, such as a +2. The roll is 1d20+@{Stat}+@{Mod}
(or 1d20+1d6+2). So the highest possible roll, a critical success, would be a
28. The lowest would be a 4.
Presently,
the roll template is set up so whenever the result is a 19+1+2, the result will
show a red box around a 22, instead of a red box around only a 4. Whenever a
2+6+2 is rolled, a green box appears around the resulting 10 instead of only
around the 28.
I’m certain
I’m missing something, either an extra line of code or some CSS trick that I
could implement to have the desired result from the success/fail indicator. It's also possible that I may have missed another forum post with the solution I'm seeking (in which case, I apologize if I'm repeating a topic.)
Any ideas?
Do I need to
clarify something?