I'm trying to automate my sneak attack with my weapons. Currently I have the following
&{template:default} {{name= Light Crossbow}} {{attack= [[1d20+@{Shadow|dexterity_mod}+@{Shadow|pb} ]]}} {{damage= [[1d8+@{Shadow|dexterity_mod} +?{Sneak Attack?:|Yes,@{Shadow|SA}|No,0}|]] + [[1d8+@{Shadow|SA} if crit]]}}
The problem is however that it always shows the crit damage regardless if I crit or not.
For what it's worth I'm using the 5th edition OGL character sheet.
The order of operations should be the following. I click the macro. It asks if I want to use sneak attack. It generates the roll and a single damage value that takes into account whether or not I got a critical hit.