Grouped Rolls
Grouped rolls, using curly braces `{ }`, allow you to combine multiple separate dice rolls or expressions into a single unit. This is primarily useful when applying modifiers like `k` (keep) or `d` (drop) across the results of different roll types (e.g., keeping the best result between a d20 roll and a d8 roll).
Within the braces `{ }`, there are two main ways to define the items that form the group:
Comma Separation (`,`): Each item separated by a comma is evaluated independently. The final result of each item becomes a distinct member of the group.
Example: `{2d6, 1d8}` creates a group with two members: the result of `2d6` and the result of `1d8`.
Plus Operator (`+`): Items separated by a plus sign are summed before forming a single member of the group. This allows you to combine multiple dice rolls into one value within the group context. Note: Other mathematical operators like `-`, ``, `/` are not directly used in this way to combine terms into a single group member; they typically form part of a standard mathematical expression which would evaluate to a single member anyway.
Example: `{2d6 + 1d8}` creates a group with one member: the summed result of `2d6` and `1d8`.
This distinction is crucial because modifiers applied after the group (like `k1`) operate on the distinct members created by the commas or the single combined member created by the plus signs.
Examples:
`{2d6, 1d8}` - Demonstrates comma separation: Roll 2d6 and 1d8 as separate items. The group contains two results. Final group value is the sum of members.
Example: Roll 2d6: `[4, 2]` (Total 6), Roll 1d8: `[5]` → Group Members: `[6, 5]`, Final Value: `6 + 5 = 11`
`{2d6 + 1d8}` - Demonstrates plus combination: Roll 2d6 and 1d8, add them first. The group contains one result (the sum). Final group value is that single member's value.
Example: Roll 2d6: `[4, 2]` (Total 6), Roll 1d8: `[5]` → Evaluate `6 + 5 = 11` → Group Member: `[11]`, Final Value: `11`
`{2d6, 1d8}k1` - Modifier on comma-separated group: Roll 2d6 and 1d8 (two members), then keep the highest member. Final group value is the value of the kept member.
Example: Roll 2d6: `[4, 2]` (Total 6), Roll 1d8: `[5]` → Group Members: `[6, 5]` → Keep Highest 1 (`k1`): `[6]` → Final Value: `6`
`{2d20 + 2d8, 3d6}k1` - Modifier on mixed group: Evaluate `2d20 + 2d8` as one item, roll `3d6` as another, then keep the higher of those two results.
Example: Evaluate `2d20 + 2d8`: `[15] + [3, 6]` = `24`. Roll 3d6: `[2, 5, 1]` (Total 8) → Group Members: `[24, 8]` → Keep Highest 1: `[24]` → Final Value: `24`
`{2d6 + 1, 3d6 - 1, 4d6 * 2}k1` - Modifier on complex expressions: Evaluate each expression, then keep only the highest result among the three.
Example: Evaluate `2d6+1`: `[3, 1]` (4) → `4+1=5`. Evaluate `3d6-1`: `[5, 6, 2]` (13) → `13-1=12`. Evaluate `4d6*2`: `[4, 4, 1, 3]` (12) → `12*2=24`. → Group Members: `[5, 12, 24]` → Keep Highest 1: `[24]` → Final Value: `24`