This post has potentially manipulated dice roll results.
Two Attacks at +6, trying to hit an AC of 15. Calculating added Maneuver damage (so presuming there's at least one hit.)
First, we need to determine if the first attack is just a hit, IOW within the range 15-19. Will do this by returning a 1 if it's >= 15 (0 otherwise) and a 1 if it's <= 19 (0 otherwise,) and multiplying the values. If both are true, it'll return 1. If either is not (it's < 15 or > 19) it'll return 0. Then we subtract 1 from the final result, so that if the first attack was NOT just a normal hit, we get 1, otherwise we get 0. Code for "Was First Attack Not a Normal Hit" (WFANNH) -
Next, we need to determine if either is a crit. This is easier; just add together the number of crits in each roll, and if it's > 0, then we had at least one crit. Code for "How Many Crits" (HMC) -
[ roll:-2:critical ] + [ roll:-1:critical ]
Finally, we only need double damage if there was a crit, AND the first attack was NOT just a normal hit. That means if the first code returned 1, AND the second code was greater than zero. We can calculate this by multiplying the two values; if either was 0, then the final result is 0, and we only return single damage. Final code:
Ability scores: 14 11 12 15 10 11 12 13 11 12 9 12 5 12 14 12 7 14 6 12 14 9 14 11 10 13 8 13 12 16 9 8 16 9 11 15 15 15 11 17 12 14 9 7 9 12 9 11 17 10 11 8 7 14 11 8 12 7 13 13 9 9 16 11 14 12 17 15 16 12 14 14 10 14 11 14 15 13 15 11 12 12 10 12 14 10 12 17 15 8 11 16 14 15 16 12 10 16 14 12 16 17 12 14 10 6 14 14 11 14 12 16 5 10 10 11 13 8 15 11 16 9 9 14 11 17 11 14 9 12 12 18 14 13 13 12 10 14 6 12 13 12 12 16 10 17 9 11 11 14 13 17 12 12 13 14 14 15 9 14 12 13 16 15 11 10 15 14 13 15 11 13 14 10 7 14 13 15 17 10 16 15 14 6 11 15 15 12 14 13 12 13 8 17 11 15 17 8 10 10 13 12 12 14 10 15 14 4 11 9 11 17 14 15 13 13 11 10 14 10 15 11 15 8 11 13 15 18 9 11 10 10 14 13 14 12 10 14 16 11 17 14 11 7 11 12 15 13 15 12 16 11 11 13 15 10 12 17 7 18 12 12 7 12 15 14 14 17 6 14 5 11 9 7 13 11 13 10 6 11 8 16 13 14 15 13 12 11 8 12 12 14 10 7 14 16 8 14 12 13 13 17 16 16 13 6 6 17 11 9 11 12 13 12 17 10 15 10 9 14 9 9 9 14 10 15 13 9 16 11 12 12 14 13 15 15 10 13 10 16 11 16 16 16 8 7 15 14 14 13 11 15 12 10 10 12 7 16 16 15 12 15 16 14 11 10 12 13 17 9 9 9 15 4 16 15 12 11 17 16 14 8 15 16 12 13 9 10 8 15 13 9 15 6 14 9 14 11 11 13 9 11 14 12 11 12 9 9 11 13 6 14 14 11 11 9 12 9 15 15 17 10 15 15 11 13 15 12 12 14 14 14 11 12 14 14 13 18 16 15 15 10 12 12 12 12 15 7 11 15 15 10 8 11 12 12 16 16 10 9 9 12 11 11 17 6 10 10 16 10 14 14 13 10 15 11 13 13 14 17 13 16 16 11 18 12 15 15 8 14 12 12 14 13 12 16 12 16 8 11 12 11 8 12 11 13 16 11 9 5 10 15 13 15 14 10 6 10 10 14 12 10 5 15 12 14 10 11 12 15 10 14 9 10 11 11 18 7 14 14 15 14 9 15 9 12 11 15 16 11 17 13 16 7 13 15 10 15 12 15 15 15 11 14 14 14 13 11 15 8 5 13 16 16 14 12 9 16 9 14 13 10 12 13 12 3 12 12 12 15 13 14 17 15 16 9 14 18 17 13 7 15 16 16 18 14 15 15 15 9 10 13 11 10 14 13 13 8 11 12 13 12 7 4 11 16 10 12 14 11 10 7 15 11 16 15 13 15 13 9 9 9 13 11 14 17 9 14 10 14 7 13 16 13 11 11 15 14 15 12 11 16 10 14 12 8 10 13 14 15 12 13 13 15 15 15 13 12 10 10 9 7 12 14 6 12 15 16 12 10 14 14 14 12 11 12 7 12 16 9 9 13 14 5 10 13 8 11 5 14 14 14 8 11 12 9 11 8 15 11 14 7 9 12 15 16 17 13 11 10 10 13 13 15 12 11 13 9 12 17 15 5 9 13 Unable to parse dice roll. 14 10 11 14 10 14 10 10 12 13 7 10 15 10 16 17 13 16 16 10 10 15 12 11 10 11 6 12 10 15 16 7 13 16 17 12 14 15 15 12 13 12 11 11 12 14 7 13 11 13 8 13 9 9 15 8 15 14 16 8 11 9 8 16 13 8 14 10 11 16 11 11 14 8 10 14 14 15 12 10 16 13 17 14 14 11 15 10 8 17 16 10 8 14 11 9 11 12 14 13 16 13 8 14 14 11 11 8 15 14 9 11 16 14 12 8 10 11 10 15 11 11 16 6 16 15 12 8 12 14 15 6 14 14 12 16 17 16 13 13 11 16 15 12 13 13 15 12 15 8 17 12 17 12 11 12 14 15 8 13 10 9 14 16 15 11 11 9 17 10 10 15 13 12 16 11 8 15 10 12 10 9 12 12 17 13 12 10 11 18 8 14 11 9 12 17 12 11 12 9 11 10 10 7 14 14 12 11 10 17 12 11 14 13 9 9 13 12 15 15 16 15 13 13 12 10 12 15 11 14 14 9 11 6 18 10 11 10 8 15 14 8 10 7 18 12 13 10 12 10 14 8 12 10
Ability scores: 7 16 11 4 12 11 15 11 11 14 18 17 13 8 12 13 8 13 11 11 11 13 13 8 17 10 14 15 13 10 13 16 11 10 16 14 15 15 12 15 14 13 16 14 13 9 16 13 9 7 15 8 13 12 13 10 13 14 13 15 14 15 11 14 14 9 14 12 10 12 12 12 16 9 14 14 12 17 12 18 15 9 14 15 9 16 10 8 12 11 16 18 10 13 12 10 15 12 16 12 15 9 13 15 15 16 16 7 16 9 15 15 9 12 13 10 10 13 9 16 10 17 14 14 8 7 11 14 12 15 14 10 14 13 10 11 12 7 11 8 12 13 11 10 10 9 13 13 14 14 7 13 16 10 11 8 11 11 13 7 9 9 17 14 15 18 15 10 12 15 12 11 10 10 11 12 14 13 11 13 12 14 6 16 12 13 16 9 5 7 12 16 8 8 12 11 14 13 10 11 14 13 13 10 10 10 11 14 10 7 13 10 15 15 9 11 16 10 16 10 12 12 12 9 15 12 14 14 10 12 12 13 6 12 15 14 15 14 15 14 8 15 17 10 13 13 12 9 13 11 11 6 15 18 12 15 12 9 13 16 12 16 12 10 15 14 9 13 15 10 15 14 16 13 16 17 13 9 14 15 16 11 15 12 5 16 13 15 13 14 11 9 16 12 12 10 11 14 13 16 13 9 13 16 14 11 15 12 11 13 9 13 18 8 14 11 13 13 13 11 14 11 14 17 10 13 13 7 16 15 9 9 16 11 14 16 10 12 13 14 16 7 12 8 13 16 12 8 12 12 7 4 11 13 11 8 6 12 12 13 11 12 9 10 14 13 13 13 15 11 15 12 12 5 14 15 16 12 12 10 15 8 14 8 14 11 18 15 10 9 14 14 13 11 9 8 15 11 16 13 12 13 17 7 6 11 7 5 12 12 14 9 11 11 11 18 14 9 11 16 16 16 11 11 12 12 14 13 14 16 11 15 14 14 11 17 12 14 17 10 13 13 9 11 11 8 12 12 13 14 11 16 14 17 9 15 10 13 11 13 13 9 9 16 13 14 7 13 16 16 15 11 10 17 15 16 12 14 11 12 14 14 8 9 4 9 15 13 15 13 15 12 15 11 13 13 12 18 11 16 10 11 15 10 14 11 13 16 15 13 12 12 8 11 16 14 9 15 15 11 10 18 13 14 7 11 13 10 14 11 14 15 10 9 12 12 8 16 10 9 12 9 10 12 9 10 16 11 13 15 8 7 15 18 11 9 12 9 12 13 14 10 15 9 10 14 8 9 14 13 11 10 11 8 9 14 10 15 10 14 15 12 6 15 13 10 9 10 7 17 17 18 17 9 11 16 8 13 9 14 15 12 13 16 13 15 14 8 18 14 13 16 8 13 12 10 15 17 9 13 8 16 9 16 11 18 11 14 17 12 15 7 14 16 16 16 12 14 11 16 12 9 14 5 17 13 16 16 9 9 7 13 13 16 9 14 17 8 10 15 16 16 9 9 8 14 9 11 12 10 13 11 11 12 12 10 11 17 11 8 10 8 7 17 17 11 11 11 14 12 14 15 13 18 15 9 16 16 16 12 14 16 15 8 13 12 11 16 13 12 8 18 14 10 11 13 13 10 16 16 15 8 16 16 18 15 17 13 12 10 15 10 14 14 12 13 14 13 10 12 11 16 8 14 12 9 12 10 8 9 6 6 13 8 11 10 15 11 12 16 16 11 11 10 13 12 11 10 15 12 12 17 11 12 16 7 6 16 10 10 14 4 14 10 13 11 14 7 9 11 12 7 13 14 17 9 12 11 10 16 12 12 12 13 11 11 12 10 8 17 9 14 14 12 13 13 14 6 17 7 12 9 13 14 16 12 11 12 16 18 8 8 8 8 12 15 13 18 12 13 9 13 11 13 16 14 12 9 10 9 10 11 14 13 13 15 11 11 9 8 14 10 13 10 14 13 14 14 13 10 14 11 6 11 17 13 16 8 8 11 12 14 11 10 13 15 14 11 12 9 11 17 8 6 10 11 6 8 11 11 12 17 13 13 10 15 14 11 14 10 6 12 10 14 10 16 12 14 8 18 12 8 8 13 12 11 11 16 15 15 17 13 7 11 11 9 11 8 15 14 14 14 15 13 12 9 13 13 13 9 10 13 13 12 14 11 13 13 11 14 14 6 12 10 12 7 11 13 12 15 14 14 16 13 8 13 15 9 15 15 11 15 10 9 11 9 13 15 11 8 9 12 10 13 17 12 12 12 10
Ability scores: 10 15 14 11 14 11 12 12 12 14 14 17 14 8 12 7 11 10 14 10 16 11 10 14 10 13 10 13 13 13 15 12 9 10 13 9 14 15 12 12 15 15 14 10 17 11 8 10 17 10 14 10 16 13 15 11 11 17 18 11 15 12 14 17 12 13 12 11 13 15 17 17 10 10 10 11 11 14 14 10 11 10 17 10 15 9 15 15 15 10 16 15 14 14 17 11 8 15 14 13 11 16 14 15 8 18 11 17 10 15 10 11 6 15 15 12 14 13 10 9 6 11 17 9 11 13 13 11 15 17 7 15 12 14 16 12 10 9 10 9 15 15 13 10 13 9 14 13 11 13 13 16 11 14 15 10 8 11 12 15 9 8 16 14 15 12 12 12 10 13 16 9 13 9 13 13 12 13 13 15 8 10 11 11 18 10 13 15 16 6 17 8 12 11 12 11 8 14 10 16 17 6 9 9 14 9 16 14 11 10 16 12 13 11 9 16 8 8 10 11 15 15 13 13 5 14 9 9 15 16 7 15 11 12 11 13 12 11 11 12 16 13 10 18 10 14 5 11 10 10 12 15 13 10 10 15 14 18 13 6 14 15 8 11 18 16 11 13 14 11 10 10 13 7 11 10 15 16 12 12 12 12 15 10 13 12 11 8 13 13 12 12 13 13 15 14 16 11 10 8 10 11 9 14 14 10 11 14 7 13 11 12 14 14 10 8 16 16 8 14 12 11 15 14 11 12 13 9 10 13 16 14 10 13 12 15 14 15 17 12 12 14 14 12 7 11 12 14 10 16 10 11 9 8 7 14 13 12 9 15 16 11 13 17 13 11 10 15 18 10 11 15 15 17 11 17 15 11 10 14 10 18 13 16 17 8 13 9 10 11 5 13 17 5 15 8 15 8 14 13 15 16 16 11 12 11 8 14 14 6 12 13 13 12 17 5 11 15 11 15 10 14 15 16 11 14 16 10 14 17 11 14 16 17 9 15 10 7 18 12 15 Unable to parse dice roll. 7 14 14 17 16 10 10 14 12 11 15 10 11 13 18 13 16 10 15 11 10 16 10 14 11 12 10 17 10 18 8 10 8 11 14 10 16 14 5 16 11 10 7 14 15 17 13 12 10 14 13 10 13 11 12 14 8 11 11 16 12 17 14 12 14 8 13 12 11 11 10 14 12 15 16 8 11 15 10 13 11 8 11 11 10 14 11 9 14 10 16 8 11 14 14 13 15 14 16 12 14 10 11 9 16 16 14 11 12 11 15 11 10 11 9 14 16 15 14 15 15 16 11 12 17 15 17 15 9 11 10 9 15 14 12 10 11 9 15 8 15 8 9 16 12 10 16 13 12 14 9 17 15 15 7 6 11 9 10 10 11 16 15 8 12 14 15 6 7 8 11 12 9 16 11 9 17 10 8 15 16 14 10 12 12 13 15 11 13 11 5 8 10 3 9 11 15 10 15 14 13 14 13 10 18 11 9 10 13 18 15 13 15 9 11 14 14 11 15 10 15 13 10 15 13 16 9 10 15 10 14 13 13 15 11 13 12 11 8 14 10 12 14 10 12 10 11 11 12 16 14 11 6 11 11 10 11 14 11 16 8 17 6 16 9 11 12 13 13 14 12 11 12 14 18 14 13 13 13 10 12 10 15 15 9 11 13 10 9 12 13 12 9 15 12 13 10 13 11 9 12 10 8 13 17 15 14 13 13 14 7 12 10 16 9 10 10 7 17 15 15 14 14 9 13 11 11 12 13 15 9 9 9 8 8 12 9 13 10 6 10 14 8 11 10 9 14 15 12 11 11 11 17 14 14 14 15 9 8 13 14 17 17 11 10 13 13 11 13 11 9 7 9 14 11 15 6 11 8 14 14 12 11 17 10 15 13 16 12 17 12 15 12 11 10 14 12 10 12 16 13 15 16 15 12 8 13 9 16 14 12 15 15 11 12 13 10 15 14 15 16 13 8 10 12 12 12 10 14 14 7 16 10 12 11 13 14 16 11 18 15 16 9 17 11 13 9 18 14 16 10 14 13 12 15 17 14 9 9 11 17 11 16 12 9 9 9 16 16 14 10 10 11 14 14 11 13 13 14 11 13 14 14 10 14 15 14 13 8 14 9 14 7 18 7 16 16 8 12 17 13 9 6 10 7 9 14 15 13 13 9 14 14 16 14 15 16 16 9 10 18 10 11 15 11 13 13 11 9 15 12 12 16 14 15 9 13 13 17 10 10 8 16 10 10 10 13 10 10 10 11 12 12 9 14 12 13
Ability scores: 7 12 17 9 16 10 12 12 13 10 16 16 12 15 12 13 13 13 10 14 16 15 9 17 14 16 14 14 6 16 10 11 14 12 15 15 17 13 16 16 12 10 9 12 15 16 16 14 12 9 9 11 12 13 8 10 15 9 13 14 16 16 9 11 13 14 12 10 14 7 11 14 10 9 6 11 8 16 8 11 14 14 13 9 16 11 8 9 15 16 12 13 15 14 8 5 11 11 10 13 16 9 15 8 12 13 15 15 14 13 18 10 17 14 15 18 17 16 13 14 17 10 15 11 9 18 14 12 13 10 9 13 15 13 9 12 8 12 10 12 9 12 12 12 11 11 11 13 10 11 15 14 9 14 17 14 14 13 9 8 5 10 12 15 12 16 11 18 13 16 13 11 15 16 13 17 13 16 13 14 13 17 8 9 13 16 12 14 12 16 4 9 13 11 13 11 15 15 16 18 7 10 14 11 11 16 12 16 14 11 15 17 16 14 11 13 16 18 8 6 14 14 10 8 14 8 10 8 13 10 11 8 4 7 10 10 12 12 15 9 13 16 16 12 11 9 14 14 11 8 5 6 13 15 13 12 13 8 12 10 17 10 14 17 13 15 12 7 12 16 8 8 10 10 15 12 12 16 9 11 14 11 9 8 14 13 9 14 9 14 10 12 14 15 15 11 11 17 9 14 16 8 10 13 13 14 15 12 13 18 14 11 9 9 13 14 16 16 12 17 13 14 10 11 10 15 16 12 14 17 14 6 13 10 8 13 8 12 12 12 16 14 17 12 14 9 14 15 16 15 15 10 16 6 12 16 9 9 15 14 15 11 13 9 14 17 10 12 12 14 13 11 15 15 14 13 11 8 11 14 13 12 12 14 13 18 8 11 13 12 12 15 12 8 5 13 17 9 12 14 11 13 10 12 14 12 16 17 17 15 12 10 9 14 13 10 11 16 6 13 14 18 13 16 14 13 14 13 14 17 16 3 15 13 15 8 15 10 8 11 16 12 13 17 14 13 15 18 10 9 9 14 15 13 12 6 17 17 11 13 11 16 12 15 10 14 3 12 13 12 16 10 15 14 17 15 14 12 16 12 8 18 10 10 12 12 9 6 17 12 14 13 5 9 17 11 16 10 12 14 9 7 6 11 10 15 16 13 13 11 12 10 13 10 10 16 9 10 11 8 16 10 11 14 15 15 13 11 11 11 13 13 18 15 11 11 11 11 10 12 13 11 14 14 10 17 15 14 12 15 12 13 13 10 12 7 9 13 15 13 13 15 13 16 14 8 4 9 13 11 4 16 13 10 11 10 8 7 4 16 17 11 13 15 15 9 10 13 9 14 16 11 11 9 9 13 12 13 4 6 15 11 12 11 13 11 16 12 10 13 16 12 16 11 13 14 11 12 12 12 6 16 10 15 14 10 14 16 11 12 7 11 10 16 12 12 15 16 14 8 8 9 10 7 11 11 12 11 13 15 15 15 13 9 6 15 15 11 11 15 8 15 13 13 9 8 15 16 13 7 9 6 15 12 14 15 9 15 8 15 13 8 14 8 10 14 9 9 16 16 6 13 9 9 15 9 14 13 11 15 15 11 7 13 9 14 11 13 6 10 10 13 10 11 13 11 15 16 13 15 7 16 14 16 17 14 15 13 12 11 7 13 11 12 9 9 7 9 12 15 9 13 15 16 11 5 12 14 10 12 8 8 8 11 17 16 14 8 7 12 16 11 14 12 11 12 14 10 11 6 14 8 12 13 16 10 12 17 15 12 9 11 13 11 14 13 15 18 17 14 9 13 16 15 15 10 12 13 10 10 16 13 14 16 17 5 15 14 15 11 7 12 16 11 13 12 13 11 14 13 15 8 13 11 9 13 16 17 15 12 12 11 7 12 12 15 13 10 11 10 11 13 13 11 12 15 13 14 7 10 16 13 17 14 15 12 9 11 15 11 13 14 11 13 9 10 13 13 13 11 17 14 18 15 16 16 15 9 15 12 16 13 8 9 12 12 12 13 17 15 13 14 17 7 7 13 14 8 11 8 16 13 15 14 16 11 14 10 11 16 12 16 12 7 11 17 10 12 10 9 18 9 14 7 14 6 18 10 18 11 13 8 11 9 9 14 15 17 11 11 13 15 14 15 14 16 13 13 11 7 11 7 12 17 13 12 16 17 16 11 8 14 10 12 12 10 14 18 8 8 11 15 14 16 10 13 18 3 8 12 16 8 12 11 15 14 14 17
Ability scores: 15 15 10 13 8 18 8 10 12 11 14 18 9 11 9 17 14 14 12 13 14 13 14 9 8 8 10 14 13 10 16 10 16 15 15 9 14 15 12 11 10 12 16 9 9 16 8 14 14 13 11 11 7 10 10 17 5 7 14 13 14 9 10 16 13 15 9 14 13 12 9 16 14 8 12 11 8 13 17 14 15 13 15 15 10 13 15 12 8 13 15 8 11 16 11 13 11 12 15 13 18 12 14 15 8 16 10 9 13 5 14 13 16 11 9 16 9 14 10 11 17 8 5 15 11 16 14 13 14 12 9 14 9 11 15 7 9 16 17 7 9 11 14 12 10 10 15 17 10 7 12 12 15 14 10 13 16 8 13 14 11 17 17 7 9 12 10 13 9 13 14 12 6 12 11 18 15 14 14 18 13 11 14 9 14 13 13 15 17 12 13 13 17 15 15 13 13 9 11 15 11 14 14 15 12 15 12 10 14 13 15 11 14 13 12 13 11 13 9 17 14 18 8 13 13 4 10 9 15 10 9 10 15 11 11 13 9 9 11 10 13 15 13 9 13 6 12 12 16 10 9 16 10 13 13 9 18 14 13 12 9 17 14 14 15 8 10 7 18 16 15 9 10 15 7 9 17 12 11 5 10 7 15 12 12 7 12 15 17 13 14 13 13 15 5 7 15 11 14 15 14 15 12 14 5 9 12 16 10 12 10 17 9 10 11 13 15 10 17 10 12 14 13 9 4 17 9 12 5 17 16 14 16 6 14 9 9 17 12 6 14 9 3 8 13 15 9 15 10 12 11 15 16 13 14 12 6 12 13 15 11 10 11 11 11 11 9 9 15 10 16 16 12 14 14 12 7 9 13 13 15 14 13 14 12 7 14 10 15 13 10 17 14 9 14 13 13 11 12 11 13 8 13 10 13 12 12 10 8 15 15 16 6 12 16 15 17 13 14 12 13 12 8 12 18 10 7 7 13 16 12 10 15 15 9 14 8 12 13 14 11 8 17 17 7 8 12 12 9 14 10 11 12 17 12 16 9 15 9 15 13 11 12 6 6 9 13 11 10 15 8 7 8 16 13 16 6 15 9 13 12 15 16 11 11 14 14 12 16 13 14 15 9 10 10 16 14 11 11 16 15 11 12 17 14 14 11 14 12 12 11 14 13 10 12 12 10 16 17 11 13 8 11 12 16 11 10 12 12 6 12 10 14 16 11 11 12 18 15 15 15 14 11 8 6 7 7 11 13 13 10 10 13 16 14 13 10 8 13 12 11 14 11 14 11 14 12 15 17 9 13 12 12 16 11 14 9 10 8 15 14 5 12 11 13 11 11 9 14 13 16 12 14 10 8 15 13 12 14 14 12 13 17 16 16 10 16 13 10 13 17 16 13 12 14 7 10 13 13 14 12 13 13 14 9 7 9 12 13 10 14 15 13 7 14 13 9 14 16 7 14 10 11 13 16 13 9 12 11 10 14 12 13 13 10 14 12 10 9 11 16 8 16 10 10 14 14 16 11 16 11 14 12 15 13 12 6 12 15 12 15 14 12 12 8 13 11 13 15 12 13 12 16 14 13 16 11 12 15 14 11 8 6 13 15 12 12 9 13 13 15 13 14 12 15 14 16 13 12 12 13 10 10 12 10 11 13 14 12 14 12 14 13 15 11 15 15 11 8 11 14 15 14 9 15 14 15 11 9 12 12 17 13 10 11 9 15 8 15 15 9 12 16 13 12 8 13 10 10 14 10 14 11 17 12 16 5 12 10 15 12 10 10 13 16 15 12 14 5 13 11 10 15 11 15 11 10 5 13 12 11 16 9 11 12 10 9 10 10 10 14 15 10 15 10 11 7 11 14 10 8 17 9 14 13 9 7 11 11 6 18 17 17 10 13 14 10 10 13 13 10 12 9 14 16 10 15 14 14 7 16 7 7 15 13 12 14 6 11 13 12 13 11 13 13 14 13 15 16 7 7 9 11 7 11 15 10 15 14 8 9 9 9 11 6 13 16 16 12 18 10 11 18 9 11 17 12 9 10 14 13 12 13 16 13 15 11 17 14 6 14 16 17 14 10 7 8 6 17 11 13 14 15 12 12 15 9 18 13 13 15 14 9 13 13 16 14 17 8 11 16 12 9 9 12 16 15 10 8 7 11 15 15 9 10 8 16 14 9 18 12 9 9 5 16 16 12 9 14 10 12 15 6 16 14 10 9 9
Two Attacks at +6, trying to hit an AC of 15. Calculating added Maneuver damage (so presuming there's at least one hit.)
First, we need to determine if the first attack is just a hit, IOW within the range 15-19. Will do this by returning a 1 if it's >= 15 (0 otherwise) and a 1 if it's <= 19 (0 otherwise,) and multiplying the values. If both are true, it'll return 1. If either is not (it's < 15 or > 19) it'll return 0. Then we subtract 1 from the final result, so that if the first attack was NOT just a normal hit, we get 1, otherwise we get 0. Code for "Was First Attack Not a Normal Hit" (WFANNH) -
abs( if([ roll:-2 ], >=15, 1, 0) * if([ roll:-2 ], <= 19, 1, 0) - 1)
Next, we need to determine if either is a crit. This is easier; just add together the number of crits in each roll, and if it's > 0, then we had at least one crit. Code for "How Many Crits" (HMC) -
[ roll:-2:critical ] + [ roll:-1:critical ]
Finally, we only need double damage if there was a crit, AND the first attack was NOT just a normal hit. That means if the first code returned 1, AND the second code was greater than zero. We can calculate this by multiplying the two values; if either was 0, then the final result is 0, and we only return single damage. Final code:
if(WFANNH * HMC, =0, 1d8, 2d8)
Written out fully:
if( abs( if([ roll:-2 ], >=15, 1, 0) * if([ roll:-2 ], <= 19, 1, 0) - 1) * ( [ roll:-2:critical ] + [ roll:-1:critical ] ), =0, 1d8, 2d8)
Here are the rolls themselves:
Attack 1: 8
Attack 2: 12
Maneuver Damage (presuming a hit) - Unable to parse dice roll.
Tooltips Post (2024 PHB updates) - incl. General Rules
>> New FOW threat & treasure tables: fow-advanced-threat-tables.pdf fow-advanced-treasure-table.pdf
"Unable to parse dice roll"
Let's try again, but take each of the intermediate "IF" statements and make them into separate rolls. This will change this:
if( abs( if([ roll:-2 ], >=15, 1, 0) * if([ roll:-2 ], <= 19, 1, 0) - 1) * ( [ roll:-2:critical ] + [ roll:-1:critical ] ), =0, 1d8, 2d8)
into:
X -> if( [ roll:-2 ], >=15, 1, 0)
Y -> if( [ roll:-2 ], <= 19, 1, 0)
Final -> if( abs( [ roll:-2 ] * [ roll:-1 ] - 1) * ( [ roll:-4:critical ] + [ roll:-3:critical ] ), =0, 1d8, 2d8)
Trying again...
Attack 1: 21
Attack 2: 24
Was first attack >= 15? 1
Was first attack <= 19? 0
Maneuver Damage (presuming 1+ hit) - Unable to parse dice roll.
Tooltips Post (2024 PHB updates) - incl. General Rules
>> New FOW threat & treasure tables: fow-advanced-threat-tables.pdf fow-advanced-treasure-table.pdf
"Unable to parse dice roll"
Let's add another few intermediate values. We'll change this:
X -> if( [ roll:-2 ], >=15, 1, 0)
Y -> if( [ roll:-2 ], <= 19, 1, 0) (yes, I spotted the logic error and will correct it)
Final -> if( abs( [ roll:-2 ] * [ roll:-1 ] - 1) * ( [ roll:-4:critical ] + [ roll:-3:critical ] ), =0, 1d8, 2d8)
into:
V -> if( [ roll:-2 ], >=15, 1, 0)
W -> if( [ roll:-3 ], <= 19, 1, 0)
X -> abs( [ roll:-2 ] * [ roll:-1 ] - 1)
Y -> ( [ roll:-5:critical ] + [ roll:-4:critical ] )
Z -> [ roll:-2 ] * [ roll:-1 ]
Final -> if( [ roll:-1 ], =0, 1d8, 2d8)
Trying one more time...
Attack 1: 11
Attack 2: 20
Was first attack >= 15? 0
Was first attack <= 19? 1
Was first attack NOT just a normal attack? Unable to parse dice roll.
How many attacks were criticals? Unable to parse dice roll.
Should we do double damage? Unable to parse dice roll. <-- 0 means no, anything greater means yes
Maneuver Damage (presuming 1+ hits) - 1
Tooltips Post (2024 PHB updates) - incl. General Rules
>> New FOW threat & treasure tables: fow-advanced-threat-tables.pdf fow-advanced-treasure-table.pdf
That should have worked. Trying again, stripping out any extra interior whitespace:
Attack 1: 17
Attack 2: 16
Was first attack >= 15? 1
Was first attack <= 19? 1
Was first attack NOT just a normal hit? 0
How many attacks were criticals? 0
Should we do double damage? 0 <-- 0 means no, anything greater means yes
Maneuver Damage (presuming 1+ hits) - 3
Tooltips Post (2024 PHB updates) - incl. General Rules
>> New FOW threat & treasure tables: fow-advanced-threat-tables.pdf fow-advanced-treasure-table.pdf
Repeat just to verify...
Attack 1: 7
Attack 2: 19
Was first attack >= 15? 0
Was first attack <= 19? 1
Was first attack NOT just a normal hit? 1
How many attacks were criticals? 0
Should we do double damage? 0 <-- 0 means no, anything greater means yes
Maneuver Damage (presuming 1+ hits) - 6
Tooltips Post (2024 PHB updates) - incl. General Rules
>> New FOW threat & treasure tables: fow-advanced-threat-tables.pdf fow-advanced-treasure-table.pdf
Trying the first formula again, with extra interior whitespace stripped:
if(abs((if([ roll:-2 ], >=15, 1, 0)*if([ roll:-2 ], <= 19, 1, 0))-1)*([ roll:-2:critical ]+[ roll:-1:critical ]), =0, 1d8, 2d8)
Attack 1: 23
Attack 2: 9
Maneuver Damage (presuming 1+ hits) - 6
Tooltips Post (2024 PHB updates) - incl. General Rules
>> New FOW threat & treasure tables: fow-advanced-threat-tables.pdf fow-advanced-treasure-table.pdf
Ability scores: 10 13 15 12 7 8
Ability scores: 15 18 13 10 15 13
Ability scores: 6 13 12 15 13 7
Ability scores: 17 13 11 11 15 12
Ability scores: 13 14 18 13 17 14
Ability scores: 11 9 12 15 15 16
120
Varielky | Werhann
19
Attack: 15 Damage: 4
Ability scores: 15 16 12 18 16 8
Ability scores: 12 13 15 14 17 14
Ability scores: 15 12 15 13 14 16
535
520
545
525
545
she/her
Role-playing since that keep on those borderlands.
Ability scores: 10 14 12 16 12 14
Ability scores: 16 12 13 13 15 14
Ability scores: 10 10 17 14 13 13
Ability scores: 12 14 14 12 11 14
Ability scores: 14 12 10 14 12 13
Ability scores: 10 8 16 8 14 12
Attack: 16 Damage: 9
Attack: 23 Damage: 8
Attack: 16 Damage: 7
Attack: 19 Damage: 4
12
12 17 2 2
Varielky | Werhann
Unable to parse dice roll.
Unable to parse dice roll.
46
18
DM - And In The Darkness, Rot: The Sunless Citadel
DM - Our Little Lives Kept In Equipoise: Curse of Strahd
DM - Misprize Thou Not These Shadows That Belong: The Lost Mines of Phandelver
PC - Azzure - Tyranny of Dragons