So I have everything worked out the way I want except when my macro calculates sneak attack dice crit it's rolling too many dice. Here is the macro I've cobbled together. As you can see I set the crit threshold to 10 to test crit I know it's really low but the issue is when crit happens it's rolling 2d6 + 4d6. I don't understand what the math issue is here. &{template:atkdmg} {{mod=@{Ikkaku / Rat Scratch|dexterity_mod}}} {{rname=Shortsword}} {{r1=[[ 1d20 + [[ @{Ikkaku / Rat Scratch|dexterity_mod} + @{Ikkaku / Rat Scratch|pb} ]] ]]}} {{always=1}} {{r2=[[ 1d20cs>10 + [[ @{Ikkaku / Rat Scratch|dexterity_mod} + @{Ikkaku / Rat Scratch|pb} ]] ]]}} {{charname=Ikkaku / Rat Scratch}} {{attack=1}} {{range=melee}} {{damage=1}} {{dmg1flag=1}} {{dmg1= [[ 1d6 + @{Ikkaku / Rat Scratch|dexterity_mod}]]}} {{dmg1type=Piercing}} {{dmg2flag=1}} {{dmg2=[[[[ceil((@{Ikkaku / Rat Scratch|base_level})/2)]]d6]]}} {{dmg2type=Sneak Attack}} {{crit1=[[ 1d6 + @{Ikkaku / Rat Scratch|dexterity_mod}]]}} {{crit2=[[[[ceil((@{Ikkaku / Rat Scratch|base_level}))]]d6]]}} {{charname=Ikkaku / Rat Scratch}}