functions: {
and: ((...args: any[]) => 0 | 1);
eq: ((a: any, b: any) => 0 | 1);
gt: ((a: any, b: any) => 0 | 1);
gte: ((a: any, b: any) => 0 | 1);
if: ((condition: any, ifTrue: any) => any);
ifelse: ((condition: any, ifTrue: any, ifFalse: any) => any);
lookup: ((condition: number, fallback: number, ...results: any[]) => any);
lt: ((a: any, b: any) => 0 | 1);
lte: ((a: any, b: any) => 0 | 1);
ne: ((a: any, b: any) => 0 | 1);
not: ((a: any) => boolean);
or: ((...args: any[]) => 0 | 1);
sizeReach: ((size??: string | number, reach??: boolean, stature??: "tall" | "long") => NumericTerm[]);
sizeRoll: ((count: number, sides: number, target: string | number, initial: string | number) => number);
xor: ((...args: any[]) => 0 | 1);
} = ...
Type declaration
and: ((...args: any[]) => 0 | 1)
- (...args): 0 | 1
Returns 0 | 1
eq: ((a: any, b: any) => 0 | 1)
- (a, b): 0 | 1
Returns 0 | 1
gt: ((a: any, b: any) => 0 | 1)
- (a, b): 0 | 1
Returns 0 | 1
gte: ((a: any, b: any) => 0 | 1)
- (a, b): 0 | 1
Returns 0 | 1
if: ((condition: any, ifTrue: any) => any)
- (condition, ifTrue): any
Parameters
- condition: any
- ifTrue: any
Returns any
ifelse: ((condition: any, ifTrue: any, ifFalse: any) => any)
- (condition, ifTrue, ifFalse): any
Parameters
- condition: any
- ifTrue: any
- ifFalse: any
Returns any
lookup: ((condition: number, fallback: number, ...results: any[]) => any)
- (condition, fallback, ...results): any
Parameters
- condition: number
- fallback: number
Rest
...results: any[]
Returns any
lt: ((a: any, b: any) => 0 | 1)
- (a, b): 0 | 1
Returns 0 | 1
lte: ((a: any, b: any) => 0 | 1)
- (a, b): 0 | 1
Returns 0 | 1
ne: ((a: any, b: any) => 0 | 1)
- (a, b): 0 | 1
Returns 0 | 1
not: ((a: any) => boolean)
- (a): boolean
Returns boolean
or: ((...args: any[]) => 0 | 1)
- (...args): 0 | 1
Returns 0 | 1
sizeReach: ((size??: string | number, reach??: boolean, stature??: "tall" | "long") => NumericTerm[])
- (size?, reach?, stature?): NumericTerm[]
Parameters
Optional
size: string | number = "M"Optional
reach: boolean = falseOptional
stature: "tall" | "long" = "tall"
Returns NumericTerm[]
sizeRoll: ((count: number, sides: number, target: string | number, initial: string | number) => number)
- (count, sides, target, initial): number
Internal
Parameters
- count: number
- sides: number
- target: string | number
- initial: string | number
Returns number
xor: ((...args: any[]) => 0 | 1)
- (...args): 0 | 1
Returns 0 | 1
Roll functions