Keep and drop

Keep or discard the highest or lowest dice in a pool.

Keep dice

kN and khN keep the N highest dice; klN keeps the N lowest. Other dice are marked excluded. With no N, k, kh, and kl default to 1. The km alias normalizes to kl.

4d6kh3
2d20k
2d20kl1
2d20km

Drop dice

dN and dlN drop the N lowest; dhN drops the N highest. In 4d6d1, the first d creates dice and the second drops a face.

4d6d1
5d10dh2
6d6dl2

N must be a positive integer. Ties use original positions for stable selection. Selection runs after min/max, explosions, rerolls, and unique, and before targets. If a modifier kind appears more than once, the last one wins. Advantage and pool adjustments that create a selection cannot coexist with explicit keep/drop on the same die.

Dropped dice remain in result.dice with included: false and contribution: 0. Use these fields for scoring and animation.

Try the examples

Try 4d6kh3 · Try 4d6d1 · Try 2d20kl1