@dice-roller/rpg-dice-roller / ast / target
Function: target() โ
Call Signature โ
target(
rules):TargetNode
Defined in: src/ast/builders.ts:312
A target block starts with a success and can contain further success or failure rules. Amounts are 1โ10 and default to 1; the last matching rule wins.
Parameters โ
rules โ
readonly TargetRule[]
Returns โ
Call Signature โ
target(
success,failure?):TargetNode
Defined in: src/ast/builders.ts:314
Count successes and optional failures using unweighted compare points.