Shared Constructs
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 Example
json
{
"min": 2,
"max": 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 Example
json
{
"numerator": 3,
"denominator": 5
}
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.