User guide All recipes Tutorial Function reference Open playground

Fireball half damage on save

At the table

In D&D 5e, Fireball deals 8d6 fire damage on a failed Dexterity saving throw. On a success, the target takes half that damage, rounded down (same as halving each possible total with floor division).

Try it

In the playground, open this recipe in the playground and click Run. Output shows the full-damage distribution and the succeeded-save distribution side by side.

The script

output("failed_save", 8d6)
output("succeeded_save", 8d6 // 2)

failed_save · DieRoll · mean 28.000

outcome%fracX
80.0000.000
90.000.0000.000
100.000.0000.000
110.010.0000.000
120.021/50640.000
130.051/21170.000
140.101/9830.001
150.202/9970.002
160.374/10930.004
170.624/6410.006
181.0013/12990.010
191.5210/6590.015
202.1823/10530.022
212.995/1670.030
223.9244/11230.039
234.9049/9990.049
245.88424/72070.059
256.7784/12410.068
267.48115/15380.075
277.94128/16130.079
288.0948/5930.081
297.94128/16130.079
307.48115/15380.075
316.7784/12410.068
325.88424/72070.059
334.9049/9990.049
343.9244/11230.039
352.995/1670.030
362.1823/10530.022
371.5210/6590.015
381.0013/12990.010
390.624/6410.006
400.374/10930.004
410.202/9970.002
420.101/9830.001
430.051/21170.000
440.021/50640.000
450.010.0000.000
460.000.0000.000
470.000.0000.000
480.0000.000

succeeded_save · DieRoll · mean 13.750

outcome%fracX
40.000.0000.000
50.010.0000.000
60.071/14950.001
70.301/3310.003
80.9937/37380.010
92.5231/12310.025
105.1845/8690.052
118.82395/44770.088
1212.7125/9880.127
1315.484/5450.154
1416.0193/12040.160
1514.251/3580.142
1610.8115/10660.108
176.9177/11140.069
183.7069/18640.037
191.6220/12310.016
200.572/3530.006
210.151/6720.001
220.031/37190.000
230.000.0000.000
240.0000.000