@dice-roller/rpg-dice-roller / ast / die
Function: die() ​
die(
name, ...args):DieNode
Defined in: src/ast/builders.ts:124
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; valid literal range and face dice use brace notation, while custom names and unsupported arguments have display-only notation.
Parameters ​
name ​
string
args ​
...ExpressionInput[]