Minimum, maximum, and sorting

Transform face bounds and arrange pool display.

Per-face minimum and maximum

minN raises each die below N to N; maxN lowers each die above N to N. Both accept signed or decimal numbers. The original face remains in rawValue while the transformation appears in value and transform events. These differ from the min(a,b) and max(a,b) functions, which compare whole expressions.

4d6min2
4d6max5
4d6min2max5

Display order

s and sa sort ascending; sd sorts descending. Sorting changes presentation order without changing values, inclusion, or the total. It also works on groups.

5d6s
5d6sd
{d4,d6,d8}sd

Execution applies min, max, explosion, reroll, unique, keep, drop, target, criticals, and sort in this fixed order even when the suffixes are written differently. If a modifier kind repeats, the last one wins.

Try the examples

Try 4d6min2max5 · Try 5d6sd