Skip to content

@vttforge/core / DicePoolSpec

Interface: DicePoolSpec

Properties

drop?

readonly optional drop?: { highest: number; } | { lowest: number; }

Drop the highest or lowest n (at most number), as dh / dl.


explode?

readonly optional explode?: number | boolean

Roll again on the highest face (true) or at this result or above (a number), as x.


faces

readonly faces: number

Faces per die.


failAt?

readonly optional failAt?: number

Count a die as a failure at this result or below, as df<=n: each one takes 1 off the total.


keep?

readonly optional keep?: { highest: number; } | { lowest: number; }

Keep only the highest or lowest n (at most number), as kh / kl.


max?

readonly optional max?: number


min?

readonly optional min?: number

Floor and ceiling for each die, as min / max.


number

readonly number: number

How many dice.


rerollAt?

readonly optional rerollAt?: number

Reroll once at this result or below, as r<=n.


successAt?

readonly optional successAt?: number

Count a die as a success at this result or above, as cs>=n. The total becomes the count.

MIT licensed.