Const
Rest
...args: any[]if
roll function
Alias for ifelse()
if-else
roll function
ifelse(condition, if-true, if-else)
ifelse(@powerAttackPenalty, 4, 0)
lookup
roll function
lookup(condition, fallback, ...results)
Rest
...results: any[]lookup(1d4, 0, 4, 3, 2, 1)
lookup(@cl, 0, 3, 2, 1)
Rest
...args: any[]Return reach information for defined size and stature.
Optional
size: string | number = "M"PF1.sizeChart key or offset
Optional
reach: boolean = falseReach weapon
Optional
stature: "tall" | "long" = "tall"Character stature
Internal
For use with roll formulas.
Number of dice
Number of sides
Target size
Initial size
Rest
...args: any[]eq(a,b) // equal (a === b)
ne(a,b) // not equal (a !== b)
lt(a,b) // less than (a < b)
lte(a,b) // less than or equal (a <= b)
gt(a,b) // greater than (a > b)
gte(a,b) // greater than or equal (a >= b)
and(a, b, ...) // all true
or(a, b, ...) // some true
xor(a, b, ...) // one true
not(a) // not (!a)
Generated using TypeDoc
Roll functions