The definitive list of the dice rules json
Conditions
These conditions are ANDed, ie. they must all be true for the effect to be applied.
You can apply multiple dice rules for OR conditions.
rolled  Matches part of the dice being rolled.

 e.g. 'd20' matches 1d20, 5d20 etc. 'd' would match everything.

 case insensitive so d6 matches 3D6

natural  * If the die result matches this number.

ge  If the die result is greater or equal to this number.

le  If the die result is less than or equal to this number.

paired  Two of the dice show the same value.

last  Special formatting for the last dice in a roll.

d100double  If true and a d100 shows 11, 22, 33, ..., 99, 100 then this condition is met.

reason  If the reason field of the roll contains this text (case insensitive).

total  * If the total of the dice is equal to a value. 
* natural and total both support expressions. Examples:
"natural":5  matches if a dice roll is exactly 5

"natural":"<15"  matches if a dice roll is less than 15

"total":"10<=x<=15"  matches if the total is between 10 and 15 (inclusive)

"natural":">=15"  matches if a dice roll is greater or equal to 15 
Effects
If the conditions are satisfied then the system applies effects specified in these parameters.
highlight  Highlights the die, and combination of the following separated with spaces:

 bold, success (green), fail (red), info (blue), invert, underline

content  Changes the content of the die result. Emoji can be used for content.

contentAppend  Appends the content to a dice result or total (depending on the condition used).

hideTotal  Hide the total. 
Special
If set to true then all the dice in this pool (matching the rolled condition) are sorted. Other conditions are ignored. This is used by games who always want to see the dice rolls in order.
autoSort  Automatically sort the dice into numberical order 
Examples:
{"rolled":"d20","natural":20,"highlight":"bold success invert"}
If any number of d20s have been rolled and if any of them show a natural 20, then highlight them bold, success (green), invert (white in a green background)
{"rolled": "1d20", "reason":"[injury]", "ge": 5, "le": 7, "content": "Internal Injury"}
If 1d20 is rolled and the reason contains the text '[injury]' and the roll is between 5 and 7, then change the content of the roll to say "Internal Injury"
{"rolled":"3d6","lastDie":true,"highlight":"underline"},
{"rolled":"3d6","paired":true,"highlight":"info bold"}
If 3d6 are rolled then highlight the last dice by underlining it.
If 3d6 are rolled and any two dice match, then highlight the last dice by making them blue and bold.
{"rolled": "2d6","total": "<=6","highlight": "fail bold invert", "contentAppend":"ðŸ˜« Miss"},
{"rolled": "2d6","total": "7<=x<=9", "contentAppend":"ðŸ˜‘ Partial Success"},
{"rolled": "2d6","total": "10<=x<=11", "contentAppend":"ðŸ˜Š Success"},
{"rolled": "2d6","total": ">=12","highlight": "success bold invert", "contentAppend":"ðŸ¤© Exceptional Success"}
Different highlighting and content appended to the result depending on dice total.
Last edited January 24, 2022 10:50 am