@dice-roller/rpg-dice-roller / ast / die
Function: die()
die(
name, ...args):DieNode
Defined in: src/ast/builders.ts:107
A reference to a die factory, e.g. die("percentile") for d%, or die("range", -2, 3). Register custom names in the die registry used by the evaluator before rolling. Registration is not checked here; custom dice and some built-ins have display-only notation.
Parameters
name
string
args
...ExpressionInput[]