 
I was trying to automate increased damage of cantrips on my 5e character sheet via macros using one like:  [[((floor(((@{Pik-Nik Gearheart|level})+1)/6)+1))d10]] for firebolt. Up to d10 part [[((floor(((@{Pik-Nik Gearheart|level})+1)/6)+1))]] the macro works ok but when I add the d10 to this value it says  Could not determine result type of: [{"type":"M","expr":"((floor(((0+0+0+0+0+0+0+8+0+0+0+1)+1)/6)+1))"},{"type":"C","text":"d10"}] it looks to me like the macro reads d10 value as text and not as dice input but well I don't know much about how these work.  So any suggestions on how to fix this?
 
				
			 
