User guide All lessons Cookbook Function reference Open playground

D&D 5e d20 checks with bucket

At the table

A D&D attack or save is not just “did the total beat the DC?” Natural 1 and natural 20 are special on the d20 you keep. Advantage and disadvantage change which natural faces are likely before you add your modifier.

Lesson 11 buckets a raw d20 face into four fixed ranges. That teaches ordered labels, but it is not the same as a DC check with a modifier. Here we stay on the natural die (1d20, 2d20kh1, …) and put the modifier into the target number instead of into the roll.

Adjusted target (stay on 1..20)

Table rule: success when natural + MOD >= DC. For integer faces that is the same as:

T = DC - MOD

advantage_check · Outcomes

outcome%fracX/400
CRITICAL_FAIL0.251/4001
FAIL20.01/580
SUCCESS70.07/10280
CRITICAL_SUCCESS9.7539/40039

p_hit_or_better · Prob

outcome%fracX/400
p_hit_or_better79.8319/400319

Reading the result

You get a four-row probability breakdown (one row per outcome label) plus p_at_least("SUCCESS"), which includes both ordinary successes and critical successes.

Try this

Builtin details: standard library reference (scale, Scale.step, bucket, at_most, at_least, keep_highest, keep_lowest). Use classify when house rules do not fit four face bands.

What’s next

Powered by the Apocalypse (2d6 + stat)—miss / partial / full on the total with bucket, the usual PbtA pattern.

See the user guide index.