Tim F. said: I have run into an issue, without changing my code, my first set of code "[[((@{level} + 1) / 6 + 0.5)d6]]" is now giving the issue of: Could not determine result type of: [{"type":"M","expr":"(((((abs(0-1)) (0+0+0+0+0+0+0+0+1+0+0+5+0+0+0+0+0+0))+(0 0))+1)/6+0.5)"},{"type":"C","text":"d6 + 0 + 0 + (0) + 0d0"}] My DM changed it to the shaped 5e player sheet, and this issue started to occur You can't use functions (such as abs ) in an expression to calculate the number of dice to roll, and @{level} is expanding to an expression including abs . The regular 5e sheet's @{level} attribute is simply the sum of all of the class levels. The Shaped 5e sheet multiplies that same sum with @{is_pc}, which is defined as " abs(@{is_npc} - 1) ". Now you see the problem. @{is_pc} could be redefined as " 1 - @{is_npc} ", still get the same values, and wouldn't have this problem with rolls.