Shared Constructs
Stable
Last updated for Version 1.18.10
A few JSON constructs are expressible in multiple locations in the add-ons system.
Range Objects
Range objects define a spread between two numbers.
Range Object ExampleCopy
json
{
"min": 2,
"max": 4
}
1
2
3
4
2
3
4
When provided, a random value will be selected inclusively between the minimum and maximum. Rolls are not retained; a new random value will be rolled each instance the range object would be used. The maximum must not be less than the minimum, but they may be equal to affix rolls to a specific value.
Fraction Objects
Fraction objects define a fraction using a numerator and denominator.
Fraction Object ExampleCopy
json
{
"numerator": 3,
"denominator": 5
}
1
2
3
4
2
3
4
The value used in place of the object will be the computed division, numerator
รท denominator
. Both the numerator and denominator must be at least 1
, and the denominator cannot be equal to the numerator.
We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies. See our Privacy Policy for more information.