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:
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: 10 Attack 2: 15
Was first attack >= 15? Unable to parse dice roll. Was first attack <= 19? Unable to parse dice roll. 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
Ability scores: 12 9 18 15 15 12 11 12 12 9 9 10 17 16 10 12 10 15 15 15 14 11 11 15 13 16 11 15 6 15 14 11 7 18 13 15 9 15 12 7 9 10 14 15 14 7 10 10 10 16 17 15 11 13 11 9 13 15 11 9 13 18 8 11 9 11 11 10 11 16 11 17 13 17 11 14 12 14 11 7 13 13 13 11 13 13 17 13 10 9 14 11 12 15 14 8 14 12 13 14 12 16 6 13 7 14 7 10 14 15 12 10 14 13 10 5 17 18 13 16 14 16 15 10 16 12 7 10 17 12 9 10 9 6 10 11 12 12 14 8 10 14 16 11 5 17 12 12 11 15 14 12 14 11 16 15 12 11 15 12 14 10 14 12 15 11 7 13 13 9 14 9 17 9 7 13 14 13 11 10 6 11 14 14 15 15 17 14 10 9 12 9 14 17 11 10 10 14 9 14 16 14 12 15 12 17 11 11 8 11 11 16 12 5 14 12 7 10 14 10 10 15 14 13 15 14 14 13 16 12 13 14 17 12 15 10 14 13 11 7 11 17 10 6 5 16 13 11 12 12 12 11 14 14 13 13 14 16 11 18 12 8 12 12 9 11 16 8 13 13 8 18 10 13 11 13 13 13 11 14 16 10 10 14 14 18 13 10 4 11 15 15 14 11 16 12 13 15 13 13 13 13 15 13 13 7 13 14 11 12 17 8 8 16 13 10 13 12 15 12 16 8 17 10 13 9 11 10 12 13 14 17 16 17 10 11 13 9 14 4 14 9 18 13 15 16 10 9 17 10 17 12 12 16 14 7 7 14 15 11 11 12 14 15 14 11 9 12 7 11 9 15 14 12 11 11 15 9 15 14 14 14 9 11 16 13 9 10 16 15 13 8 18 15 11 8 8 15 10 13 10 14 14 14 12 6 8 11 10 8 10 8 12 8 8 14 13 13 18 5 12 18 13 10 15 13 15 15 10 14 14 11 15 17 15 14 6 15 9 13 15 9 14 8 9 10 14 16 15 4 8 14 11 16 9 14 15 14 11 17 14 14 14 13 12 15 17 18 18 8 12 9 15 11 13 16 12 10 15 13 11 13 11 16 12 11 12 14 11 16 10 8 15 12 12 9 10 14 16 16 15 13 8 8 11 13 15 14 13 16 10 10 15 10 11 9 13 15 8 11 13 9 9 7 18 10 9 16 11 6 14 9 14 15 14 10 14 10 13 11 10 10 16 10 15 12 15 12 13 14 9 17 11 11 15 12 18 16 6 15 9 11 14 14 13 10 16 8 15 11 13 15 5 9 7 11 12 14 12 14 11 11 13 15 11 17 8 17 15 14 11 12 10 17 14 15 14 7 7 13 17 12 5 15 13 5 10 14 10 14 10 10 18 5 10 16 10 12 15 17 15 15 10 13 15 13 14 12 11 10 13 8 10 16 15 13 10 11 13 10 14 14 11 13 13 11 14 14 17 11 10 10 11 10 8 10 13 16 16 13 10 11 8 6 9 11 12 13 11 11 14 17 14 15 15 11 9 12 16 15 12 11 7 14 13 13 12 14 9 14 10 8 11 13 10 14 9 10 10 8 10 15 12 14 11 7 4 11 17 12 9 14 13 16 9 12 13 11 12 13 9 13 13 16 18 14 11 18 13 15 18 11 12 16 16 12 12 15 16 14 10 12 11 13 9 13 14 11 13 12 11 13 15 13 11 8 9 17 12 13 10 11 10 17 16 14 16 15 14 13 15 16 16 10 17 8 10 13 14 17 16 16 10 16 12 16 12 15 13 15 5 14 14 12 13 12 16 16 15 13 16 11 15 10 7 12 13 12 10 11 12 15 13 11 13 14 9 12 16 14 12 16 8 12 9 14 10 10 11 10 10 16 11 10 10 15 8 8 12 8 3 10 14 9 13 16 14 14 13 16 11 13 10 13 13 14 10 15 16 7 13 12 14 7 7 12 13 9 10 6 11 11 9 10 15 14 16 14 13 15 15 16 12 14 12 11 12 8 15 15 12 12 11 11 11 11 13 11 13 9 14 16 15 12 9 14 10 10 16 10 14 11 14 13 13 11 16 10 15 16 17 9 9 11 15 14 15 15 12 11 12 16 13 12 16 14 14 14 17 7 17 15 10 12 8 10 10 13 10 15 11 10 12 11 12 17 10 11 10 18 16 12 9 8 15 11 18 16 17 7 11 13 12 10 7 12 13 7 11 9 12 16 14 13 11 12 10 8 9 15 17 10 12 12 17 12 15 12 13
Ability scores: 7 14 9 13 11 12 13 12 16 13 10 12 14 9 11 13 14 13 14 14 7 14 14 11 15 10 12 11 14 11 12 16 11 11 12 10 10 14 9 15 10 11 13 13 15 8 16 10 12 12 14 12 11 15 9 16 13 18 10 6 7 11 7 12 11 15 16 10 6 13 14 14 14 12 13 13 11 16 11 6 16 8 11 12 14 13 16 11 13 11 15 8 14 10 12 6 12 18 14 9 16 12 12 15 13 14 12 10 13 17 4 11 18 10 13 13 14 12 4 17 17 13 9 11 12 13 14 8 13 9 10 10 15 6 14 13 13 10 14 13 15 14 14 9 11 13 6 15 9 13 15 14 16 15 10 14 17 12 11 12 12 13 15 13 13 17 12 9 16 16 15 11 11 10 18 11 11 9 14 14 10 14 6 17 14 13 15 17 17 13 14 12 12 12 13 12 16 14 11 15 15 10 14 12 15 12 16 11 13 12 16 12 9 12 11 9 4 12 16 14 11 12 13 9 13 16 12 12 13 16 13 15 18 14 9 7 14 15 12 11 16 8 9 8 14 12 5 14 12 17 12 7 12 12 9 13 10 16 14 12 7 14 17 13 18 12 13 14 12 11 15 13 12 17 10 14 16 10 12 7 16 17 12 12 15 11 17 16 12 6 10 17 7 12 9 7 12 10 18 10 11 13 16 14 14 15 14 11 15 6 16 14 12 14 13 14 11 14 9 9 9 12 10 15 14 15 16 11 14 12 10 11 15 12 3 12 16 12 10 10 17 13 7 9 16 15 10 10 11 11 16 10 7 10 11 10 17 17 13 13 10 7 14 15 17 14 9 8 11 13 15 17 9 15 15 10 17 16 12 11 16 13 12 16 17 10 12 9 14 14 14 11 16 9 15 11 13 13 7 12 14 16 6 11 11 10 8 17 14 14 14 14 9 13 10 17 15 15 13 8 13 13 13 11 15 12 12 18 11 15 9 10 10 13 11 13 10 13 8 17 15 13 9 10 8 9 13 10 7 6 12 14 10 14 15 13 10 17 10 14 13 12 12 5 16 12 13 12 13 10 12 9 10 15 14 11 12 12 18 11 16 10 8 13 11 17 6 11 12 13 11 13 10 14 9 9 8 12 16 9 14 12 13 9 13 11 10 13 17 14 9 16 12 15 11 9 17 15 13 18 16 14 11 11 12 15 9 11 15 13 4 7 13 12 14 12 10 13 7 13 14 10 14 16 11 13 10 13 14 11 8 14 13 12 16 14 9 15 13 13 6 16 18 13 11 14 5 12 13 16 11 11 15 12 10 11 15 13 14 12 10 12 12 9 11 16 14 13 13 13 13 13 13 12 11 15 16 15 5 13 13 13 12 7 15 11 11 6 11 13 11 15 15 12 15 8 12 16 12 11 13 15 11 14 14 13 6 13 11 12 13 14 15 13 14 12 12 11 14 10 13 11 11 6 10 11 15 10 10 10 16 13 10 11 18 8 15 16 10 13 12 15 15 14 12 18 17 14 14 10 13 16 16 14 15 11 16 12 13 10 12 8 15 14 7 8 15 13 12 13 15 12 18 7 13 14 12 11 15 12 8 13 15 12 10 9 15 14 13 13 15 13 11 9 14 13 15 13 12 15 12 8 9 15 13 9 14 11 15 14 16 13 8 11 12 12 7 13 16 15 8 16 8 12 12 13 9 15 13 13 9 16 10 13 14 11 8 17 11 8 8 12 16 13 14 13 13 5 12 11 10 12 10 12 13 16 10 11 6 8 16 16 9 14 10 14 14 5 15 17 10 11 11 10 12 14 12 9 12 10 11 10 16 10 11 14 16 14 11 12 13 10 13 14 10 18 15 6 6 6 11 10 13 12 11 15 15 17 13 16 16 15 9 7 9 14 10 16 14 13 11 11 12 14 7 15 17 9 11 9 12 11 14 14 10 16 12 11 16 11 14 15 10 8 13 14 12 14 10 17 13 16 12 16 14 14 15 14 13 15 10 10 14 13 10 14 17 12 15 10 9 12 13 11 13 13 11 4 11 10 10 14 18 10 12 18 13 13 13 9 6 12 18 13 13 13 11 15 12 10 14 14 16 10 13 10 14 14 13 11 13 12 13 9 10 14 11 12 9 8 9 16 18 13 13 13 8 10 9 11 14 14 14 7 12 11 9 8 10 11 15 14 12 12 7 16 13 15 13 10 16 5 8 11 8 12 9 9 12 12 14 16 16 12 14 11 10 11 17 8 13 9 15 10 14 14 8 15 13
Ability scores: 13 10 12 13 15 13 16 10 15 13 11 13 8 9 16 5 15 13 13 14 11 9 17 11 14 9 11 14 13 9 12 12 14 13 12 10 10 13 16 13 9 9 17 10 11 17 14 17 13 11 8 10 5 12 12 12 10 12 10 12 7 10 13 8 10 15 9 14 15 16 9 9 13 14 13 12 15 3 15 12 13 9 16 16 14 12 11 11 14 17 13 9 11 14 13 13 13 13 11 14 10 10 13 14 12 14 11 14 15 9 17 11 13 16 8 10 15 10 12 11 12 9 12 4 6 11 16 12 15 11 16 13 14 9 11 11 12 14 16 15 16 12 12 7 18 15 8 12 12 13 14 14 14 12 12 15 15 13 14 13 9 12 14 9 13 16 15 14 14 11 6 12 14 14 12 9 15 13 9 18 15 13 15 18 13 13 15 12 5 14 13 7 14 9 11 16 13 11 14 15 10 15 14 12 13 13 9 8 13 9 9 10 13 13 11 10 10 14 9 13 14 12 14 12 11 11 16 13 6 18 15 12 9 13 15 15 10 6 12 17 18 11 12 12 11 15 15 11 9 12 11 8 10 7 16 11 11 14 13 9 17 10 10 16 13 10 10 10 14 14 16 11 9 13 7 12 11 13 7 16 15 14 8 12 13 14 14 9 15 11 13 10 13 14 14 9 11 15 11 11 11 12 12 13 13 6 8 14 16 10 11 16 8 10 9 14 16 16 12 13 7 12 11 14 11 16 8 10 9 5 13 16 8 15 13 17 11 10 12 15 12 8 11 9 11 9 6 10 15 15 12 11 10 14 8 12 15 15 15 16 18 17 9 9 13 15 7 12 16 10 7 15 11 18 13 12 10 12 5 17 14 10 14 12 9 11 13 12 9 13 17 11 12 18 10 13 12 11 10 14 11 15 6 11 15 14 16 12 10 18 11 10 13 15 15 17 13 8 14 8 11 10 15 9 11 12 14 17 16 14 13 10 12 12 16 12 11 9 8 15 15 10 8 16 13 13 14 10 11 10 16 7 8 16 15 17 15 17 14 12 16 11 11 17 8 14 11 9 11 9 16 11 14 6 10 12 13 10 17 12 15 14 15 10 17 12 9 7 11 16 13 9 10 12 14 14 11 11 10 16 11 12 10 17 11 10 17 15 14 16 12 11 11 11 7 13 12 9 10 6 15 12 15 12 15 10 11 8 9 9 15 13 11 7 16 9 7 13 11 11 15 16 11 16 11 13 15 10 11 13 12 5 11 16 15 13 16 10 14 13 17 14 10 15 11 14 17 12 14 12 10 6 14 17 16 16 13 15 12 16 12 10 17 12 18 15 10 14 15 10 12 12 15 15 14 15 14 12 14 16 7 12 13 12 14 17 14 12 10 16 8 14 16 9 12 11 14 9 11 16 15 16 13 10 10 12 13 10 11 16 10 15 12 13 15 9 16 8 7 13 14 11 8 13 9 14 12 11 11 15 13 18 11 11 14 9 13 13 13 12 12 16 11 12 12 10 14 9 10 10 10 8 13 10 13 12 15 9 9 10 15 10 14 10 10 18 10 12 16 15 16 13 12 12 13 17 11 13 17 15 14 11 7 9 13 12 11 10 14 16 8 10 11 14 12 11 15 13 12 13 16 14 12 13 12 16 12 12 11 17 16 10 12 13 14 17 11 15 16 15 13 8 11 10 11 14 13 7 12 13 14 11 8 14 12 9 7 13 10 7 13 11 11 12 14 17 10 9 9 13 10 8 13 8 13 9 14 17 9 13 11 13 9 16 12 14 14 9 16 12 9 10 12 10 9 13 13 17 11 12 10 12 10 16 12 11 12 8 4 6 14 10 10 13 11 11 9 12 14 15 11 15 14 16 12 15 14 14 12 13 12 9 15 16 11 10 17 6 13 10 8 5 15 17 13 12 12 12 12 7 13 13 16 14 9 10 7 15 15 12 15 13 9 17 16 14 13 15 15 9 8 9 14 15 16 15 16 13 8 14 10 7 13 11 18 14 12 12 16 9 13 15 13 13 10 11 8 14 5 16 17 13 16 17 18 15 15 9 12 8 14 13 11 8 9 11 17 12 7 12 10 14 10 12 7 13 14 13 14 9 13 12 13 16 14 11 17 11 15 13 13 6 12 13 13 11 9 13 13 11 17 9 10 14 8 15 17 13 12 7 8 13 14 17 10 15 17 12 12 9 11 9 13 11 12 11 13 13 16 7 17 11 17 10 11 12 14 15 9 12 15 15 12 11 12 14 8 14 9
Ability scores: 12 8 17 12 14 10 14 10 12 11 16 11 14 12 13 16 12 13 16 12 15 13 13 14 15 16 16 14 18 9 9 15 9 13 11 10 17 10 11 11 12 14 10 17 8 12 18 13 15 13 18 9 8 9 11 12 16 10 14 15 16 13 15 15 11 15 13 10 16 8 13 13 13 10 16 10 9 8 10 12 16 7 12 13 7 10 12 11 9 12 15 13 12 18 11 14 11 8 12 11 12 11 13 11 12 10 14 11 10 11 9 11 10 10 14 15 17 10 10 10 11 16 4 11 6 13 11 10 10 12 12 11 15 15 17 13 17 12 13 12 16 13 14 12 16 16 9 13 18 13 13 10 12 14 13 12 11 8 13 13 18 11 13 10 10 15 14 9 11 16 11 9 13 10 8 10 14 14 6 14 7 11 12 11 11 14 14 18 15 4 11 16 13 12 10 11 8 13 15 14 11 16 9 17 16 10 10 14 15 14 9 12 5 10 9 15 15 9 14 9 16 15 14 14 15 13 11 12 12 15 7 15 14 12 11 14 15 12 14 13 9 11 13 10 16 14 14 14 10 11 11 13 8 14 17 13 11 4 17 9 13 11 14 17 5 11 14 13 9 16 17 16 15 6 16 14 16 16 10 15 13 13 12 13 12 16 6 13 11 14 11 12 13 17 14 17 7 10 15 10 13 14 11 6 14 10 12 13 14 14 11 11 13 11 11 12 14 10 15 14 14 13 9 10 18 15 14 17 14 4 15 14 14 12 13 10 16 12 14 11 12 14 4 12 18 10 14 13 13 12 11 8 16 15 14 11 10 11 14 16 12 13 10 13 10 10 8 13 5 10 7 9 15 11 15 15 11 11 8 12 12 11 15 14 14 9 15 11 16 14 10 12 9 12 12 11 10 13 9 10 10 11 14 11 17 14 13 13 15 11 16 15 11 14 17 17 8 8 14 11 12 15 14 14 9 17 9 11 13 13 15 8 14 15 4 13 17 17 12 13 13 11 12 17 13 14 12 8 13 12 10 15 10 13 16 11 16 16 14 16 16 13 10 14 10 16 11 10 12 15 15 12 15 14 8 12 15 15 8 6 16 18 16 13 11 12 7 8 12 10 14 14 15 12 16 15 8 11 9 11 14 9 17 12 14 8 15 14 15 10 15 16 13 15 15 16 14 10 13 16 11 18 10 13 14 13 14 13 11 13 16 16 16 6 10 17 14 12 15 12 13 11 11 13 15 14 9 9 17 9 12 9 14 17 15 15 13 7 9 14 15 8 14 7 9 11 12 13 10 16 16 13 10 8 6 9 9 13 16 11 15 12 9 12 9 12 15 13 12 5 9 12 11 8 14 12 9 11 13 11 11 9 10 12 10 12 8 11 12 12 15 8 17 10 17 10 14 11 11 9 12 16 14 10 14 16 9 12 13 10 6 14 13 15 13 13 14 8 12 14 11 14 13 12 9 11 17 8 12 15 13 9 10 14 13 13 15 15 14 13 10 12 15 14 14 17 11 13 14 13 14 11 13 16 12 10 10 11 10 6 12 11 15 13 8 15 14 7 8 16 14 14 14 12 11 11 13 10 10 14 9 6 10 10 15 11 15 7 11 16 12 9 10 10 14 12 12 8 15 16 12 10 14 14 16 12 16 14 14 17 7 13 12 9 8 10 14 9 16 16 13 12 14 16 15 12 8 12 17 7 11 15 13 16 9 17 10 14 13 15 14 8 6 14 9 8 17 11 12 13 15 14 14 14 12 12 11 13 14 15 12 15 8 14 13 11 9 15 10 17 13 15 8 16 14 17 16 17 9 12 14 12 13 12 14 17 11 10 16 13 15 9 16 10 14 16 13 12 8 7 12 11 9 14 17 7 12 14 15 11 13 11 15 11 11 8 7 11 12 15 11 8 10 12 6 9 18 12 9 15 10 13 10 10 13 14 10 7 16 10 9 7 15 12 12 16 8 16 15 14 11 8 12 15 16 10 15 14 9 9 8 13 11 17 12 17 10 15 11 11 16 10 11 17 18 12 12 15 9 11 12 15 17 15 14 12 5 14 14 6 13 11 16 11 8 15 9 12 14 15 10 10 13 12 13 11 6 8 9 13 12 14 14 12 15 7 12 6 13 16 17 13 12 17 10 9 12 10 12 9 8 18 10 8 10 9 12 15 9 7 10 12 9 15 14 11 14 12 12 14 17 14 7 16 11 5 13 8 7 6 12 17 14 13 9 6 8 15
Ability scores: 11 13 18 16 9 13 15 11 9 12 8 13 5 12 8 14 11 12 14 9 10 17 13 12 11 16 13 14 12 15 6 18 16 12 14 10 11 9 12 18 15 13 15 16 10 10 8 15 7 15 15 11 16 16 7 8 15 13 17 12 8 10 15 14 14 9 15 11 12 10 10 11 14 11 14 8 12 14 14 10 15 8 15 11 14 16 4 14 14 11 17 11 12 14 9 11 11 9 9 15 12 9 10 9 16 17 10 14 14 12 14 4 13 10 15 15 11 9 10 11 13 12 9 13 5 14 15 12 12 12 10 8 12 11 12 8 14 12 11 14 9 16 15 14 12 5 15 15 11 12 8 8 6 14 10 15 15 10 16 13 15 11 9 13 9 12 17 15 12 15 11 8 10 6 11 18 13 16 14 12 14 14 8 13 14 12 13 15 10 16 13 15 12 14 11 9 10 13 16 11 10 13 9 15 12 13 14 15 18 12 11 11 10 13 11 12 16 13 13 12 13 11 5 15 16 11 16 13 11 17 18 11 11 12 15 6 10 17 12 11 16 14 8 9 12 11 14 12 12 18 11 7 11 9 16 5 9 11 11 12 5 13 10 6 16 14 7 16 8 9 13 14 14 10 14 11 10 13 10 9 11 13 17 11 16 10 11 17 10 17 11 17 13 9 10 12 14 14 10 15 12 14 11 11 12 15 16 13 14 15 9 11 12 15 8 6 11 9 11 9 8 13 6 10 10 12 11 13 13 13 13 9 13 15 14 13 14 14 11 13 12 11 17 11 13 11 13 9 12 10 15 10 12 8 12 13 11 11 16 12 14 12 13 12 5 16 15 16 5 16 13 11 11 13 14 14 14 16 11 14 11 11 9 17 9 14 16 9 10 18 11 14 11 10 11 17 10 16 14 12 14 10 12 16 12 14 10 8 11 13 12 7 15 14 10 15 12 12 13 14 12 14 10 10 16 11 9 7 8 12 13 12 13 17 9 10 11 14 12 15 11 11 11 10 11 13 15 12 16 14 10 13 12 12 9 15 15 14 15 17 13 11 13 10 3 12 11 14 14 12 17 14 14 7 8 14 12 11 11 13 10 10 9 13 15 11 7 15 12 13 16 10 9 13 13 11 9 13 16 15 15 11 13 18 11 8 15 9 15 8 14 16 11 16 9 12 12 13 12 15 12 16 16 8 8 14 17 12 8 9 15 8 5 13 16 9 11 12 9 13 12 14 14 14 13 18 13 17 8 16 11 11 13 13 13 14 14 12 8 9 15 17 14 14 15 10 16 14 12 16 10 13 15 10 13 9 11 10 8 16 11 14 13 13 13 8 8 11 7 11 13 9 10 16 15 7 11 9 11 11 14 12 10 17 12 10 10 12 14 10 12 12 3 13 14 9 16 10 11 15 14 11 14 13 9 13 9 13 14 12 10 10 14 7 15 12 9 15 12 15 11 11 14 10 10 14 13 10 13 11 13 13 15 14 16 12 14 14 14 13 9 13 7 9 13 10 14 13 6 10 10 14 13 13 12 18 11 15 14 12 17 14 11 16 14 14 14 14 8 16 13 10 9 14 12 13 11 9 9 14 14 14 13 10 17 13 14 11 14 11 14 10 18 11 6 12 7 11 11 12 11 14 17 13 5 10 7 18 9 13 6 17 12 16 15 14 12 7 13 12 13 12 9 14 8 11 9 14 12 11 13 16 13 15 8 11 8 14 9 12 13 9 11 16 11 15 9 15 13 14 13 5 13 15 7 13 10 9 15 15 10 13 12 11 13 16 12 13 11 14 15 10 15 13 7 15 10 7 14 11 14 12 14 9 12 13 11 11 12 9 7 10 16 5 17 17 13 16 13 14 12 10 17 11 14 13 10 10 11 13 10 12 9 15 11 15 8 9 17 17 13 10 14 11 14 6 11 12 6 17 9 11 14 12 11 11 14 10 9 12 16 15 13 16 12 13 15 15 15 10 5 15 16 14 18 13 16 12 12 12 13 13 10 13 14 13 14 16 12 12 16 11 10 13 14 9 13 12 14 14 11 10 12 15 15 13 12 15 10 15 12 12 12 15 16 14 17 12 15 9 11 12 14 11 9 7 16 16 5 13 13 16 15 11 10 13 13 11 11 13 15 10 9 12 10 15 12 15 12 15 16 15 11 10 9 16 12 11 12 14 16 11 13 11 14 15 17 13 16 17 6 16 13 8 13 9 13 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: 13
Attack 2: 24
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: 7
Was first attack >= 15? 1
Was first attack <= 19? 1
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: 10
Attack 2: 15
Was first attack >= 15? Unable to parse dice roll.
Was first attack <= 19? Unable to parse dice roll.
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: 13
Attack 2: 11
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) - 2
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: 8
Attack 2: 9
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: 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: 12 12 10 11 16 12
Ability scores: 18 16 14 12 10 10
Ability scores: 13 12 16 14 15 14
80
Varielky
22
Attack: 7 Damage: 7
Ability scores: 14 14 18 18 16 15
Ability scores: 11 13 16 13 18 8
Ability scores: 14 17 14 13 11 13
540
515
530
505
505
ey/em/eirs, or they/them works, too (just not he).
Role-playing since that keep on those borderlands. I love it so.
Ability scores: 12 11 14 18 11 15
Ability scores: 10 13 13 15 15 12
Ability scores: 15 11 11 12 12 13
Ability scores: 16 12 14 16 12 13
Ability scores: 17 12 14 12 13 15
Ability scores: 8 13 6 15 17 12
Attack: 13 Damage: 6
Attack: 13 Damage: 6
Attack: 14 Damage: 5
Attack: 8 Damage: 7
10
12 18 20 3
Varielky
Unable to parse dice roll.
Unable to parse dice roll.
39
76
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