Skip to content

Roll groups ​

Roll groups combine one or more expressions inside curly braces, with commas separating the expressions:

javascript
{4d6, 2d10, d4}

Each expression is a sub-roll. Its total contributes to the group total, unless a group modifier changes how it is counted.

Groups let you apply modifiers across several sets of dice or select between complete roll expressions.

Creating a group ​

Enclose your expressions in { ... }:

javascript
{4d6, 2d10, d4}: {[2, 6, 4, 2], [7, 4], [1]} = 26

Here, the three sub-rolls have totals of 14, 11 and 1, giving a group total of 26.

Sub-rolls can include mathematical expressions and dice modifiers:

javascript
{2d6+3, d20*2, 4d6kh3}

You can also use a group as part of a larger calculation:

javascript
{2d6, d8}+5

Groups with one sub-roll

A group does not need to contain commas. Without group modifiers, a group containing one expression produces the same total as the expression on its own:

javascript
{4d10}      // Same total as 4d10
{4d10*3}    // Same total as 4d10*3
{4d10+5d6}  // Same total as 4d10+5d6

However, adding a comma creates separate sub-rolls. This matters when applying group modifiers:

javascript
{4d10+5d6} // One sub-roll containing two sets of dice
{4d10,5d6} // Two separate sub-rolls

Modifiers ​

Add a group modifier after the closing brace:

javascript
{4d6, 2d10}k1 // Keep the sub-roll with the highest total

Groups support Map, Keep, Drop, Target Success, Target Failure and Sort.

Their notation matches the corresponding dice modifiers, but their behaviour depends on whether they are applied to individual dice or a group.

Modifiers inside the braces apply to the dice or groups they follow. Modifiers after the closing brace apply to the outer group:

javascript
{4d6kh3, 2d10}k1

Here, Keep first selects the highest three results from 4d6. The group-level Keep then compares that sub-roll's total with the total of 2d10, keeping whichever is higher.

Modifier order

Each sub-roll is evaluated, including its own modifiers, before the group modifiers are applied.

Group modifiers follow the same execution-order rules as dice modifiers. By default, Map runs before Keep and Drop, followed by Target Success and Target Failure, then Sort.

Their position in the notation does not change this order.

Map New in v6 ​

Notation: map(expression)

Order: 7

Apply an expression to the total of each immediate sub-roll, even when the group contains only one member. Unlike the dice-level Map modifier, this does not transform the individual dice inside a sub-roll.

javascript
4d6map($$value * $$value)   // Square each die individually
{4d6}map($$value * $$value) // Square the entire pool total
{2d6+3, 3d8*2}map($$value * 2) // Double each expression total

Here, $$value is the sub-roll total, $$index is its zero-based position and $$count is the number of immediate sub-rolls. A nested group is treated as a single member, not flattened into its individual dice.

Map with Keep or Drop on single-member groups

Map changes the total of the immediate sub-roll, but Keep and Drop on a single-member group still select individual dice inside that sub-roll. The mapped value remains the value calculated before Keep or Drop, even if some underlying dice are subsequently excluded.

For example, if {4d6}map($$value * 2)kh2 rolls 1, 3, 5 and 6, the mapped total is 30. Keep excludes 1 and 3, but the mapped total remains 30.

To keep or drop individual dice before mapping the total, place the selection modifier inside the group: {4d6kh2}map($$value * 2). To map individual dice before selecting them, use 4d6map($$value * 2)kh2 instead.

For groups with multiple sub-rolls, Keep and Drop compare the mapped member totals as usual.

Keep ​

Notation: k{n} / kh{n} / kl{n}

Order: 8

Keep the specified number of highest or lowest results, excluding the rest from the total.

As with the dice-level Keep modifier, kh keeps the highest values, kl keeps the lowest, and k defaults to highest.

The results being compared depend on the number of sub-rolls. See the Map compatibility warning when combining these modifiers.

Single sub-roll ​

For a group containing one expression, Keep selects individual die results across the sets of dice in that expression.

javascript
// Keep the highest two results across all nine dice: 8 and 6
{4d10*(2+5d6)}k2: {[8, 1d, 4d, 1d]*(2+[1d, 6, 1d, 5d, 3d])} = 64

The selected results remain in their original sets of dice, and the expression is recalculated. Other numbers and operators are unchanged.

In this example, the calculation becomes 8*(2+6), giving 64.

Multiple sub-rolls ​

For a group containing several expressions, Keep selects whole sub-rolls by their totals.

javascript
// Keep the two sub-rolls with the highest totals
{4d10, 5d6, 2d10}k2: {[8, 1, 4, 1], [1, 5, 1, 5, 3], ([6, 3])d} = 29

The sub-roll totals are 14, 15 and 9. Keep excludes the sub-roll totalling 9, leaving 14+15 = 29.

The calculation includes any maths within each sub-roll:

javascript
{5+d10, 3d4*2}k1: {(5+[8])d, [3, 2, 2]*2} = 14

Here, the sub-roll totals are 13 and 14, so the second is kept.

Combining Keep and Drop

Keep and Drop both consider all eligible results, including those already excluded.

For a single sub-roll, they both select from the individual dice. For multiple sub-rolls, they both select from the whole sub-rolls.

See the Keep and Drop explanation for examples of how this can affect the total.

Calculated keep count New in v6 ​

Use a parenthesised expression after Keep, just as you would for a dice pool. The group’s sub-rolls are evaluated first, then the count is evaluated once when the modifier runs.

javascript
// Roll a d4 for the number of dice to keep across both pools
{2d6+2d8}kh(d4)

// Keep the two sub-rolls with the highest totals
{2d6,2d8,2d10}kh(1+1)

// Use the higher of two d2 rolls as the count of dice to keep
{2d6+2d8}kh({d2,d2}kh1)

If the d4 rolls 2, Keep selects the two highest individual dice across the d6s and d8s. The d4 only determines the count.

Drop ​

Notation: d{n} / dh{n} / dl{n}

Order: 9

Exclude the specified number of highest or lowest results from the total.

As with the dice-level Drop modifier, dh drops the highest values, dl drops the lowest, and d defaults to lowest.

This is the opposite of Keep. See the Map compatibility warning when combining these modifiers.

Single sub-roll ​

For a group containing one expression, Drop selects individual die results across the sets of dice in that expression.

javascript
// Drop the lowest three results across all nine dice
{4d6+2d8-3d30}d3: {[3d, 5, 3, 2d]+[7, 4]-[2d, 14, 7]} = -2

The selected results are excluded from their original sets of dice, and the expression is recalculated.

Here, the calculation becomes (5+3)+(7+4)-(14+7), giving -2.

Multiple sub-rolls ​

For a group containing several expressions, Drop selects whole sub-rolls by their totals.

javascript
// Drop the two sub-rolls with the lowest totals
{4d10, 5d6, 2d10}d2: {([8, 1, 4, 1])d, [1, 5, 1, 5, 3], ([6, 3])d} = 15

The sub-roll totals are 14, 15 and 9. Drop excludes the sub-rolls totalling 9 and 14, leaving 15.

The calculation includes any maths within each sub-roll:

javascript
{5+d10, 3d4*2}d1: {(5+[8])d, [3, 2, 2]*2} = 14

Calculated drop count New in v6 ​

Use a parenthesised expression after Drop to decide how many results to exclude. The count follows the same rules as a calculated drop count on a dice pool.

javascript
// Roll a d2 for the number of sub-rolls to drop by total
{2d6,2d8,2d10}dl(d2)

// Drop the two highest-scoring sub-rolls if $bonus is 3
{2d6,2d8,2d10}dh($bonus-1)

// Drop the lowest-scoring sub-roll only if the character is poisoned
{2d6,2d8,2d10}dl(($character.isPoisoned) ? (1) : (0))

If the d2 rolls 2, Drop excludes the two sub-rolls with the lowest totals. The d2 only determines the count.

Target success / Dice pool ​

Notation: {cp} / {cp}:{amount}

Order: 10

Count sub-rolls whose totals meet a condition, rather than adding their totals together.

Add a compare point after the group. Each matching sub-roll contributes 1 success; other sub-rolls contribute 0.

Unlike Keep and Drop, Target Success always checks complete sub-roll totals, even when the group contains only one sub-roll.

Single sub-roll ​

A group containing one sub-roll returns either 1 or 0:

javascript
// The sub-roll total is 42, which is greater than 40
{3d20+5}>40: {([11, 7, 19]+5)*} = 1

The condition checks the total of 3d20+5, not each individual die result.

Multiple sub-rolls ​

Each sub-roll is checked separately, and the successes are counted:

javascript
{4d6+2d8, 3d20+3, 5d10+1}>40: {[4, 3, 3, 2]+[2, 6], ([17, 5, 20]+3)*, ([7, 9, 6, 10, 8]+1)*} = 2
Sub-rollTotalOutcome
4d6+2d820Not a success
3d20+345Success
5d10+141Success

Two sub-rolls have totals greater than 40, giving 2 successes.

Sub-rolls excluded by Keep or Drop do not contribute to the success count.

Target failure / Dice pool ​

Notation: f{cp} / f{cp}:{amount}

Order: 10

Subtract failures when counting successful sub-rolls.

Start with a target success condition, then add f followed by a compare point. Keep all target conditions together:

javascript
{3d10+5}>30f<15

Each sub-roll contributes:

  • 1 if its total matches the success condition.
  • -1 if its total matches the failure condition.
  • 0 if its total matches neither condition.

If a total matches both conditions, the last matching condition wins. The final count can be negative.

Single sub-roll ​

A group containing one sub-roll returns 1, -1 or 0:

javascript
// The sub-roll total is 14, which is less than 15
{3d10+5}>30f<15: {([5, 3, 1]+5)_} = -1

Multiple sub-rolls ​

Successes and failures are counted across the group:

javascript
{4d6+2d8, 3d20+3, 5d10+1}>40f<30: {([4, 3, 3, 2]+[2, 6])_, ([17, 5, 20]+3)*, ([7, 9, 6, 10, 8]+1)*} = 1
Sub-rollTotalOutcomeContribution
4d6+2d820Failure-1
3d20+345Success1
5d10+141Success1

Two successes minus one failure give a final count of 1.

As with Target Success, sub-rolls excluded by Keep or Drop do not contribute to the count.

Weighted targets New in v6 ​

Groups support the same weighted successes and weighted failures as individual dice. Add :amount after a condition to choose its contribution. The amount must be a whole number from 1 to 10, and defaults to 1.

Each condition checks a complete sub-roll total, even for a group containing only one sub-roll:

javascript
{3d20+5}>40:2: {([11, 7, 19]+5)**} = 2

With multiple sub-rolls, each contributes its own score:

javascript
{2d6, 2d6, 2d6}>=8>=10:2f<=3:3: {([5, 5])**, ([4, 4])*, ([1, 2])___} = 0
Sub-roll totalContribution
102
81
3-3

The last matching condition in written order wins; scores from overlapping conditions are not added together. Here, the first sub-roll matches both >=8 and >=10:2, so it contributes 2.

Write all target conditions together, without other modifiers between them. Sub-rolls excluded by Keep or Drop still do not contribute to the total.

Sort ​

Notation: s / sa / sd

Order: 13

Sort sub-rolls by their totals and sort the individual results within each set of dice.

As with the dice-level Sort modifier, sa sorts in ascending order, sd sorts in descending order, and s defaults to ascending.

Sorting changes the display order without changing the total.

Single sub-roll ​

For a group containing one expression, the results within each set of dice are sorted:

javascript
// Original order
{4d6+4}: {[4, 3, 5, 1]+4} = 17

// Ascending order
{4d6+4}s: {[1, 3, 4, 5]+4} = 17

// Descending order
{4d6+4}sd: {[5, 4, 3, 1]+4} = 17

If the expression contains several sets of dice, each set is sorted separately. Results stay with the dice they came from.

Multiple sub-rolls ​

For a group containing several expressions, the sub-rolls are sorted by their totals. The results within each set of dice are also sorted:

javascript
// Original order: sub-roll totals are 6.5, 14 and 12
{4d6/2, 3d4+5, 2d10}: {[4, 3, 5, 1]/2, [3, 2, 4]+5, [8, 4]} = 32.5

// Ascending order: 6.5, 12, 14
{4d6/2, 3d4+5, 2d10}s: {[1, 3, 4, 5]/2, [4, 8], [2, 3, 4]+5} = 32.5

// Descending order: 14, 12, 6.5
{4d6/2, 3d4+5, 2d10}sd: {[4, 3, 2]+5, [8, 4], [5, 4, 3, 1]/2} = 32.5

MIT Licensed Β· Credits