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: 12 11 14 15 10 8 15 11 12 18 17 9 14 13 10 11 8 12 16 15 8 16 15 13 12 13 13 16 12 15 11 11 8 11 7 11 9 12 11 12 16 16 13 13 10 11 15 14 15 11 12 17 10 11 10 10 14 10 12 17 12 18 11 10 6 13 15 10 14 15 7 13 13 8 10 14 14 8 12 16 18 14 14 13 12 9 9 10 11 10 14 15 18 9 5 15 6 12 8 12 16 14 10 14 11 12 7 11 12 15 11 13 14 13 11 6 18 17 15 8 14 7 14 11 13 13 12 10 9 12 9 14 12 10 14 13 13 12 11 15 5 6 13 9 12 9 11 14 17 11 9 11 10 12 13 9 12 8 11 9 11 16 14 13 14 15 15 14 13 10 8 16 8 18 16 12 17 10 8 16 13 11 12 11 10 15 12 15 15 13 14 11 15 12 11 14 9 16 13 10 13 10 14 15 12 13 17 8 10 14 11 16 15 7 11 4 9 12 16 14 14 9 10 8 16 11 11 17 9 13 15 10 8 14 10 8 7 13 13 12 9 12 15 15 9 12 11 14 13 9 10 11 11 10 12 12 18 16 10 15 12 14 10 14 12 11 15 13 15 12 13 10 15 17 7 12 11 14 8 14 16 17 9 6 16 13 13 9 11 10 15 15 14 9 17 11 15 15 7 12 13 14 15 14 15 12 10 7 11 13 13 11 15 13 13 8 14 15 15 11 12 9 12 10 8 16 12 15 13 16 10 13 13 11 11 13 13 13 13 11 13 11 10 16 13 16 9 4 12 8 11 16 16 16 9 11 15 15 12 11 15 3 17 9 12 12 15 12 10 10 12 11 13 14 10 14 13 13 17 11 10 13 9 12 8 12 17 6 17 11 14 12 13 12 18 12 8 13 14 15 16 14 12 13 11 6 12 14 6 14 11 9 9 11 15 9 10 14 7 11 14 13 8 16 12 10 10 14 9 16 14 15 15 13 11 15 12 12 14 10 13 6 16 14 12 12 15 15 15 14 13 14 17 14 13 12 16 11 13 13 11 13 14 14 15 15 11 7 14 13 11 11 11 11 12 16 16 13 10 15 15 14 14 11 12 11 11 12 9 8 15 14 13 14 9 15 15 9 12 11 13 10 10 15 9 15 9 8 7 14 14 4 15 13 10 10 13 10 14 16 15 15 15 16 13 15 18 12 13 9 15 9 15 9 17 11 11 17 14 15 18 10 13 15 17 12 11 14 10 9 13 14 8 18 9 18 12 14 10 14 10 9 8 11 10 14 14 11 18 13 14 10 10 15 14 14 5 11 10 13 12 16 13 15 13 11 14 15 14 12 11 13 13 13 10 12 15 14 14 10 11 10 9 14 12 12 9 10 15 8 13 12 18 7 14 8 15 10 13 11 8 12 12 12 14 14 13 12 14 15 10 14 15 15 17 14 16 13 13 11 10 11 13 7 14 14 13 14 12 16 15 13 12 13 14 16 17 15 12 13 16 7 13 10 10 12 11 11 11 14 11 12 14 15 9 12 12 13 7 12 9 9 16 9 11 13 11 15 13 10 13 13 15 13 14 12 15 14 9 10 9 15 17 15 13 15 15 15 7 13 12 12 12 16 13 14 8 9 17 8 8 18 15 10 13 16 11 15 16 12 16 14 6 17 15 12 5 11 18 13 12 7 10 8 10 13 15 17 11 14 10 16 17 16 17 16 12 17 11 13 12 11 11 13 10 10 11 13 11 10 9 18 16 8 11 8 15 10 12 6 16 13 12 14 13 11 11 7 14 8 14 9 14 6 12 14 11 15 6 11 16 5 15 10 7 13 9 8 11 9 14 14 9 15 9 16 9 13 12 7 11 14 8 13 14 13 8 12 12 9 10 10 10 6 14 10 14 11 13 13 11 10 9 14 10 12 10 7 9 7 14 7 16 13 13 11 9 13 16 11 10 10 13 7 11 11 8 11 6 16 14 9 15 16 15 12 8 12 12 8 15 13 11 9 11 14 13 7 15 11 11 13 9 9 12 13 16 10 11 11 13 11 11 12 4 11 14 10 17 15 14 14 9 16 14 16 10 6 7 18 9 9 15 15 14 11 11 8 12 11 9 14 11 14 8 13 7 12 12 13 14 17 12 9 11 11 13 11 12 9 10 17 10 8 11 12 9 11 15 11 15 8 16 17 15 17 14 10 13 14 14 11 8 14 6 9 12 6 16 15 13 10 12 11 14 12 9 18 7 13 13 9 14 14 14 10 15 16 11
Ability scores: 17 16 11 7 13 12 13 9 15 12 13 14 13 12 10 15 12 5 12 13 13 12 9 15 9 13 12 10 10 8 13 12 12 11 12 9 8 12 17 12 13 12 14 11 15 16 12 16 13 11 15 11 15 12 12 13 16 12 9 13 14 14 13 16 7 15 11 12 13 15 14 13 12 12 7 10 15 16 15 8 14 10 13 10 12 9 16 9 17 12 10 9 11 10 14 15 13 12 9 11 16 16 16 11 13 15 16 13 6 14 13 14 17 13 14 16 9 16 14 15 17 11 8 14 12 13 15 14 15 10 5 18 15 11 10 15 16 9 10 10 11 13 7 11 12 13 15 14 15 15 14 9 9 14 12 11 11 13 14 12 16 10 13 13 9 13 12 13 15 9 14 10 15 13 12 11 12 7 14 13 11 13 17 13 13 10 11 15 13 16 15 11 13 15 18 13 13 13 14 8 10 18 14 9 12 12 15 16 10 13 10 14 16 15 13 13 12 14 13 18 13 14 14 10 11 15 15 14 13 8 6 14 8 9 14 11 14 6 16 15 13 17 12 10 13 13 12 14 9 13 12 9 7 5 6 15 13 14 18 13 13 10 13 14 8 12 13 8 10 13 10 10 10 12 15 9 13 17 16 10 15 6 16 18 13 13 11 12 11 16 9 6 9 10 15 16 13 13 14 15 11 8 8 14 6 7 16 13 14 6 15 5 11 10 15 12 8 9 13 9 7 9 9 11 12 15 16 12 6 16 10 8 13 11 14 5 12 11 11 6 9 8 10 14 10 9 10 15 9 11 12 9 15 11 16 9 16 18 9 17 13 12 10 13 14 11 14 15 15 11 17 8 15 11 6 11 14 11 11 8 13 13 8 12 12 13 11 15 13 16 16 17 12 16 10 16 11 8 17 9 10 9 11 6 8 11 11 15 13 14 15 16 11 12 7 14 16 13 15 12 13 17 11 10 6 15 6 13 11 14 12 11 13 17 12 13 9 8 14 9 13 9 14 10 15 11 17 16 8 15 16 13 13 12 11 9 14 10 13 13 7 14 11 7 10 11 12 10 13 17 17 17 18 11 8 14 15 9 13 16 13 13 15 8 14 15 11 13 15 8 15 11 16 16 12 13 13 16 11 12 9 13 12 13 13 17 14 16 13 7 17 15 12 16 17 9 9 12 6 16 15 12 14 8 12 15 15 12 14 15 9 15 10 16 5 12 17 14 14 13 13 10 10 12 17 11 15 10 17 12 10 9 10 14 11 7 14 13 13 8 13 8 14 13 9 11 10 10 14 8 13 10 11 14 8 12 10 14 9 12 14 10 11 17 11 11 14 18 12 10 12 13 10 18 15 16 16 15 14 11 17 9 17 10 13 4 11 14 11 12 12 11 15 12 16 14 15 15 13 11 11 10 16 14 14 14 16 16 10 15 13 10 10 15 10 12 10 15 15 13 15 16 11 14 7 15 10 14 9 11 11 13 8 17 10 13 16 8 16 14 12 14 9 12 11 16 8 15 11 11 10 15 11 15 16 13 10 15 11 9 8 15 12 13 14 14 13 11 13 14 10 14 7 12 9 13 15 15 12 9 14 15 10 14 14 14 15 17 11 8 15 12 14 17 7 12 8 12 17 14 9 14 8 11 16 13 18 10 17 11 11 13 16 10 11 15 11 16 5 14 15 16 17 7 14 11 11 12 12 13 14 9 13 14 15 15 11 11 9 16 15 15 10 12 16 11 9 17 15 12 10 16 9 14 10 17 11 15 8 5 10 18 16 15 13 13 13 14 11 15 14 7 13 9 10 13 7 11 13 12 8 18 15 15 13 16 12 17 9 15 18 16 9 16 4 16 14 14 14 14 14 7 18 11 5 14 14 12 10 15 14 13 12 14 18 15 16 12 10 11 16 15 14 7 15 9 11 9 6 14 15 11 14 14 9 9 17 16 12 14 12 11 12 14 11 15 14 15 10 12 13 14 10 15 9 14 12 6 13 13 13 11 11 11 14 11 12 14 13 11 12 13 13 15 13 10 9 17 14 10 12 13 8 14 13 15 8 9 12 11 12 8 14 12 11 10 15 12 16 13 13 11 14 12 14 12 12 14 10 16 15 11 8 14 13 17 10 12 16 16 7 14 13 13 17 15 13 15 13 16 10 14 16 9 11 14 9 9 13 10 12 14 12 12 13 13 16 10 10 6 15 11 11 15 8 15 10 13 16 12 10 12 14 15 14 14 11 17 9 12 11 10 13 12 15 12 17 11 16
Ability scores: 10 14 15 18 15 13 16 10 15 16 13 15 10 11 13 13 17 7 14 8 14 9 10 16 14 15 15 16 14 10 7 9 14 11 13 16 13 14 10 14 6 16 4 15 14 14 11 10 13 10 16 7 15 11 10 14 14 13 14 9 14 14 15 13 13 11 16 13 14 12 14 12 12 12 14 17 4 13 12 13 9 15 13 9 6 10 15 17 7 15 12 17 13 10 11 15 9 14 14 14 9 14 8 12 12 10 12 16 13 16 9 8 10 12 8 12 11 17 16 14 11 17 13 15 6 10 15 10 14 11 7 10 16 10 14 16 13 8 10 13 16 13 15 15 13 11 13 10 15 14 6 18 14 9 17 12 9 12 15 14 16 5 15 14 11 15 14 14 9 12 10 18 9 14 11 9 13 13 14 11 14 11 16 15 13 11 14 6 12 14 15 16 8 17 12 9 10 13 13 7 12 16 10 6 8 12 11 13 14 11 17 12 17 15 17 14 6 12 10 9 14 11 10 12 12 7 8 12 6 14 12 16 16 12 16 17 10 12 16 14 9 5 13 10 15 16 11 7 12 8 10 15 17 12 10 15 14 12 12 18 12 9 14 12 7 12 9 15 12 17 8 13 12 15 13 12 9 13 8 14 9 16 16 15 16 9 8 12 6 13 9 13 11 10 13 14 10 13 11 14 6 10 9 8 14 10 10 13 13 8 10 16 11 14 14 14 14 11 13 11 15 8 15 10 8 13 16 15 12 13 16 14 13 16 9 16 11 11 15 16 12 15 14 13 13 13 11 16 11 13 9 11 15 10 14 15 14 13 13 13 16 8 10 11 6 14 12 16 11 9 13 8 16 10 17 12 10 8 12 12 13 9 10 3 15 13 7 13 3 16 9 11 14 10 12 15 14 13 12 13 10 15 17 12 12 14 10 12 14 13 10 11 8 14 15 11 10 9 13 13 11 8 13 16 13 13 11 10 8 14 12 6 12 7 11 14 13 11 8 12 15 10 14 13 16 10 10 14 10 13 10 10 7 13 10 13 14 14 13 14 11 7 14 14 12 12 14 13 11 12 13 15 15 16 13 16 13 14 13 15 12 10 14 14 8 12 9 13 14 15 12 9 13 15 14 10 12 13 16 14 15 13 9 14 12 13 11 12 6 4 10 16 11 9 16 13 16 12 10 11 17 10 14 8 14 14 18 12 7 13 12 11 15 12 13 11 Unable to parse dice roll. 11 14 13 9 16 14 9 11 5 9 12 11 16 7 9 15 12 12 16 10 12 11 9 12 11 16 11 9 13 12 7 10 12 13 9 13 13 16 18 12 11 14 8 9 12 16 12 14 15 13 9 16 9 16 14 12 14 11 7 14 13 13 16 6 15 14 10 16 11 15 15 8 8 12 10 12 14 13 9 8 8 15 14 16 11 10 12 14 16 10 14 14 11 12 15 15 12 12 14 12 12 15 8 12 11 13 13 15 9 7 17 14 6 13 13 10 12 7 16 14 15 18 10 8 11 14 11 14 16 12 15 11 16 6 14 11 14 7 13 9 9 15 7 9 17 10 12 15 16 12 9 14 9 11 12 10 16 16 9 10 12 7 8 11 11 13 11 16 11 15 11 10 12 17 9 11 13 10 11 13 13 14 16 10 11 5 12 7 9 8 17 10 11 9 13 12 13 16 10 9 9 8 11 10 10 13 14 18 16 10 13 16 14 11 9 14 17 10 9 13 14 15 17 8 12 12 10 10 14 14 11 6 8 12 8 17 15 11 15 11 16 9 7 8 8 9 9 15 17 16 16 8 12 15 9 13 13 8 14 10 11 11 14 10 11 12 16 14 13 17 9 13 14 16 13 12 15 7 15 11 8 14 13 13 7 13 15 17 15 14 14 14 13 13 12 16 15 10 8 8 10 13 11 18 6 11 11 13 13 7 13 9 16 11 12 6 13 9 10 11 9 14 16 9 11 12 16 15 13 10 14 8 14 10 12 12 12 18 11 16 16 14 13 10 9 12 14 17 9 12 16 13 9 11 9 13 16 10 16 7 14 5 13 15 12 17 11 14 12 14 10 11 9 15 13 12 11 10 14 9 15 15 10 15 9 17 13 13 13 16 17 13 15 15 15 8 11 15 11 14 12 12 17 15 13 16 12 12 7 16 10 13 13 14 11 9 15 11 13 10 17 8 9 14 14 16 10 13 11 12 13 8 13 17 16 18 12 16 15 15 12 12 10 17 10 7 10 12 11 18 10 13 11 11 15 9 13 15 13 10 12 13
Ability scores: 12 15 17 11 12 14 15 13 16 14 12 14 13 12 9 11 9 8 11 10 16 8 11 15 16 12 13 9 11 13 10 12 16 13 11 10 17 12 13 15 18 12 11 15 11 7 13 11 8 11 14 16 7 14 10 16 16 12 9 14 9 8 7 7 12 10 8 11 12 8 14 15 12 13 14 12 10 15 10 12 14 16 6 10 7 16 15 12 14 7 11 17 12 13 14 18 9 9 9 12 16 6 6 13 15 16 8 9 12 11 5 16 16 15 11 8 14 15 9 12 16 13 15 12 11 12 14 12 18 13 15 16 15 10 15 8 15 11 14 16 13 17 14 13 15 16 10 12 11 17 10 9 13 14 15 12 12 14 15 13 13 16 10 16 17 6 11 14 12 13 11 18 16 10 16 14 12 13 9 12 16 13 13 8 10 13 14 12 15 16 14 13 13 9 15 10 10 11 9 8 10 11 8 13 14 13 12 12 11 16 14 14 10 6 15 15 10 7 13 13 13 13 9 13 8 10 11 8 11 18 11 10 17 10 14 16 8 14 16 9 14 13 14 10 10 8 12 14 13 9 15 13 13 13 12 10 16 9 7 11 18 15 9 9 17 17 9 12 8 13 15 6 11 10 11 14 16 16 9 14 13 11 11 15 10 12 11 11 13 14 13 10 15 17 11 16 13 17 13 9 13 15 16 14 14 9 10 11 15 14 4 11 14 18 10 15 12 11 12 17 6 11 14 14 11 9 11 16 13 13 10 11 11 9 15 10 15 12 9 11 10 10 14 10 15 15 16 18 8 15 13 11 16 14 10 10 16 12 12 12 9 14 17 12 14 6 13 13 12 14 15 14 13 14 10 18 17 11 13 12 14 13 12 15 5 10 11 8 14 15 17 12 16 15 7 9 13 12 15 10 13 8 11 13 15 8 10 12 17 15 9 15 12 11 12 17 15 12 13 10 9 15 8 11 8 13 15 12 9 14 14 7 10 7 12 14 10 13 10 9 15 11 9 13 7 15 12 13 9 10 5 15 11 12 16 14 10 13 14 12 14 11 13 15 14 15 13 8 15 13 12 13 12 15 13 14 14 14 13 15 9 13 4 9 10 13 15 15 11 15 12 14 17 9 13 10 13 17 7 11 11 9 15 12 12 10 12 17 8 9 11 10 16 6 15 3 6 11 7 18 11 13 11 12 12 14 14 9 12 11 14 16 10 11 17 13 18 9 12 11 14 11 13 11 7 11 13 13 6 11 12 11 10 11 10 15 12 12 8 13 11 13 13 7 10 15 11 13 11 15 17 13 4 14 8 17 8 14 11 13 13 12 10 12 9 12 9 14 13 13 10 12 17 16 12 14 13 8 13 11 11 12 12 17 11 9 12 8 10 18 10 14 6 18 11 7 15 16 11 10 9 12 15 10 10 17 15 10 17 11 17 11 10 11 12 13 12 18 13 9 10 13 12 13 11 14 10 13 13 16 9 8 11 18 13 14 14 13 16 8 14 17 17 13 14 10 12 12 13 10 14 9 12 9 11 16 15 14 13 16 15 8 5 15 11 12 12 11 8 13 9 9 16 14 15 10 16 8 5 16 18 15 15 11 12 10 12 16 15 9 13 12 8 11 11 10 9 11 13 10 16 14 13 9 13 10 14 11 17 15 12 13 14 14 15 14 9 9 10 12 4 13 14 10 12 12 12 14 12 6 15 12 10 9 16 15 12 11 13 17 9 8 13 13 8 14 13 18 16 13 11 9 11 14 12 12 8 12 17 12 14 7 15 9 8 9 9 11 9 8 12 13 16 17 12 15 15 6 11 13 10 18 12 14 13 11 17 9 9 16 13 12 13 13 16 15 11 15 17 15 13 15 12 14 10 18 15 6 16 11 10 8 15 10 15 11 12 9 12 16 10 17 16 11 15 8 9 8 11 12 13 11 15 16 15 14 12 9 12 14 11 10 10 10 13 6 11 16 12 12 13 12 11 13 14 12 12 16 8 15 16 11 11 10 9 11 12 11 9 14 17 8 11 12 17 9 7 15 13 14 14 12 13 17 16 13 15 13 14 13 13 17 14 10 11 8 14 16 10 16 12 12 11 14 9 16 17 13 13 13 14 15 15 9 14 9 13 16 16 12 15 15 12 13 13 12 12 13 12 14 14 12 11 13 8 11 13 13 14 14 14 13 13 9 10 8 6 14 8 13 14 15 14 10 13 6 8 9 8 13 10 17 9 10 18 12 12 14
Ability scores: 14 11 10 13 13 11 7 15 14 12 14 14 18 11 11 12 8 8 12 13 15 11 8 10 14 8 9 13 11 16 12 17 8 11 13 12 14 12 13 11 6 13 11 11 15 5 17 14 15 16 15 15 10 15 11 14 8 13 7 12 13 7 15 12 13 12 5 12 12 14 14 14 13 13 14 15 13 9 11 7 17 8 10 14 17 9 14 5 14 15 10 11 9 13 15 11 11 16 12 15 8 9 14 13 17 13 6 15 14 10 13 13 14 14 8 16 11 13 15 12 7 12 13 13 9 9 8 10 14 14 10 9 7 17 11 15 15 16 11 15 7 10 10 16 Unable to parse dice roll. 11 13 15 15 14 12 14 16 10 8 14 15 15 13 10 13 15 15 13 13 15 12 12 13 14 13 15 12 13 5 12 15 15 12 11 13 14 15 17 13 13 16 4 16 13 14 7 9 15 16 14 9 13 14 12 6 14 8 14 10 9 14 16 12 14 13 12 11 11 12 13 15 6 12 14 12 10 12 12 15 13 12 13 4 13 9 15 15 10 12 14 13 12 18 7 11 13 8 14 15 15 16 14 13 8 10 17 15 15 15 14 12 16 9 7 14 13 10 8 17 13 16 12 12 8 10 16 14 14 9 15 13 10 8 10 14 11 12 13 18 14 15 15 5 14 10 15 13 16 13 14 7 14 14 14 13 15 12 17 3 15 15 13 8 12 13 13 16 12 12 12 13 18 12 8 13 17 16 16 9 16 12 18 17 8 13 13 11 12 18 9 8 10 8 12 14 16 14 10 16 18 11 11 16 11 7 17 12 14 15 15 16 15 15 12 15 14 8 12 7 11 16 9 4 12 8 17 13 15 12 11 9 13 14 14 16 15 12 13 10 9 13 10 13 14 17 13 12 11 11 12 12 16 6 12 15 10 14 12 11 17 14 10 14 11 14 11 15 14 15 10 10 7 11 11 11 11 12 12 15 14 14 11 13 8 7 8 12 13 16 11 12 14 10 15 14 10 14 14 13 8 14 9 14 11 13 13 13 16 12 12 14 11 16 16 12 14 9 15 10 6 14 9 13 17 18 12 16 9 14 14 14 15 15 12 10 13 14 13 7 17 8 11 18 14 7 15 13 14 14 11 15 11 12 16 14 12 14 16 12 14 17 9 13 9 13 14 10 12 10 18 12 12 7 9 9 12 15 12 16 8 14 14 10 13 12 14 12 10 16 18 13 14 7 14 11 11 12 15 10 12 15 8 14 7 15 12 8 14 12 4 10 13 12 16 10 12 8 14 13 13 14 18 13 5 8 7 17 11 14 11 16 11 11 8 15 12 16 10 10 12 14 12 9 12 16 12 17 14 17 11 11 9 12 17 15 9 12 13 13 10 12 10 10 10 10 14 12 11 15 16 13 14 7 10 16 13 17 10 17 12 11 17 11 14 12 11 16 9 7 13 11 11 6 11 7 12 10 15 10 13 16 12 10 12 9 17 12 14 10 15 8 15 10 15 8 7 17 9 13 10 11 10 14 18 6 13 13 14 14 10 13 9 11 13 14 11 8 15 15 7 13 12 12 13 11 13 10 12 13 16 17 12 15 14 10 16 13 13 9 14 10 16 6 11 13 12 12 6 12 16 15 5 12 14 10 16 14 15 13 13 10 12 4 11 16 18 5 12 18 9 18 13 11 10 15 13 15 14 10 13 11 11 9 11 14 12 12 12 4 15 5 12 9 12 16 10 11 13 14 14 9 10 14 14 12 17 11 15 9 16 12 14 11 16 14 11 10 13 11 15 17 17 17 11 13 10 11 12 11 9 10 18 15 12 11 14 9 15 13 13 4 8 10 14 11 8 14 14 15 15 15 10 16 8 13 10 11 13 16 13 10 13 10 9 12 15 14 11 14 15 11 5 9 14 13 13 16 15 9 10 13 12 10 12 10 13 9 7 10 13 8 8 14 12 14 13 14 12 13 15 11 13 16 9 12 12 17 12 5 14 6 7 8 12 13 13 16 17 11 17 15 13 14 12 10 11 8 14 17 9 15 9 14 8 13 13 5 10 14 17 12 13 15 14 15 10 18 16 15 13 15 12 12 13 14 11 13 12 15 11 14 13 9 13 9 11 15 8 13 14 16 14 9 17 16 12 11 9 13 13 13 8 15 12 9 11 7 8 13 16 10 9 8 14 13 14 11 12 8 10 10 12 10 Unable to parse dice roll. 13 12 15 12 14 13 6 13
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: 15
Attack 2: 8
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: 12
Attack 2: 21
Was first attack >= 15? 0
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: 22
Attack 2: 13
Was first attack >= 15? 1
Was first attack <= 19? 0
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) - 2
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: 18
Attack 2: 23
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) - 8
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: 26
Attack 2: 24
Was first attack >= 15? 1
Was first attack <= 19? 0
Was first attack NOT just a normal hit? 1
How many attacks were criticals? 1
Should we do double damage? 1 <-- 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
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: 15
Attack 2: 21
Maneuver Damage (presuming 1+ hits) - 7
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: 13 8 12 9 13 12
Ability scores: 13 12 16 16 14 9
Ability scores: 15 17 11 11 16 14
100
Varielky | Werhann
16
Attack: 18 Damage: 6
Ability scores: 14 14 14 12 11 10
Ability scores: 12 13 18 14 12 18
Ability scores: 10 13 17 17 11 14
505
545
505
535
510
she/her
Role-playing since that keep on those borderlands.
Ability scores: 12 15 14 14 16 15
Ability scores: 13 13 16 18 11 11
Ability scores: 14 10 14 16 13 15
Ability scores: 11 16 16 18 14 11
Ability scores: 11 10 14 15 12 12
Ability scores: 10 11 11 11 16 14
Attack: 16 Damage: 5
Attack: 9 Damage: 8
Attack: 14 Damage: 9
Attack: 19 Damage: 7
12
16 11 14 1
Varielky | Werhann
Unable to parse dice roll.
Unable to parse dice roll.
44
42
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