The following macro sometime produce an error most notably when I try to select Dext or Con first but some other times it works. I can't find what cause this or how to debug it. /roll {?{Nb|1}d100cs<5cf>96-(?{Mod|0})}<?{Stat 1 |For,?{Stat 2 &#124;Dext&#44;[[floor((@{For}+@{Dext})/2)]] &#124;Int&#44;[[floor((@{For}+@{Int})/2)]] &#124;Con&#44;[[floor((@{For}+@{Con})/2)]] &#124;Per&#44;[[floor((@{For}+@{Per})/2)]] &#124;Cha&#44;[[floor((@{For}+@{Cha})/2)]] &#124;Luck&#44;[[floor((@{For}+@{Luck})/2)]] &#125; |Dext, ?{Stat 2 &#124;For&#44;[[floor((@{Dext}+@{For})/2)]] &#124;Int&#44;[[floor((@{Dext}+@{Int})/2)]] &#124;Con&#44;[[floor((@{Dext}+@{Con})/2)]] &#124;Per&#44;[[floor((@{Dext}+@{Per})/2)]] &#124;Cha&#44;[[floor((@{Dext}+@{Cha})/2)]] &#124;Luck&#44;[[floor((@{Dext}+@{Luck})/2)]] &#125; |Int,?{Stat 2 &#124;For&#44;[[floor((@{Int}+@{For})/2)]] &#124;Dext&#44;[[floor((@{Int}+@{Dext})/2)]] &#124;Con&#44;[[floor((@{Int}+@{Con})/2)]] &#124;Per&#44;[[floor((@{Int}+@{Per})/2)]] &#124;Cha&#44;[[floor((@{Int}+@{Cha})/2)]] &#124;Luck&#44;[[floor((@{Int}+@{Luck})/2)]] &#125; |Con, ?{Stat 2 &#124;For&#44;[[floor((@{Con}+@{For})/2)]] &#124;Dext&#44;[[floor((@{Con}+@{Dext})/2)]] &#124;Int&#44;[[floor((@{Con}+@{Int})/2)]] &#124;Per&#44;[[floor((@{Con}+@{Per})/2)]] &#124;Cha&#44;[[floor((@{Con}+@{Cha})/2)]] &#124;Luck&#44;[[floor((@{Con}+@{Luck})/2)]] &#125; |Per,?{Stat 2 &#124;For&#44;[[floor((@{Per}+@{For})/2)]] &#124;Dext&#44;[[floor((@{Per}+@{Dext})/2)]] &#124;Int&#44;[[floor((@{Per}+@{Int})/2)]] &#124;Con&#44;[[floor((@{Per}+@{Con})/2)]] &#124;Cha&#44;[[floor((@{Per}+@{Cha})/2)]] &#124;Luck&#44;[[floor((@{Per}+@{Luck})/2)]] &#125; |Cha,?{Stat 2 &#124;For&#44;[[floor((@{Char}+@{For})/2)]] &#124;Dext&#44;[[floor((@{Cha}+@{Dext})/2)]] &#124;Int&#44;[[floor((@{Cha}+@{Int})/2)]] &#124;Con&#44;[[floor((@{Cha}+@{Con})/2)]] &#124;Per&#44;[[floor((@{Cha}+@{Per})/2)]] &#124;Luck&#44;[[floor((@{Cha}+@{Luck})/2)]] &#125; |Luck,?{Stat 2 &#124;For&#44;[[floor((@{Luck}+@{For})/2)]] &#124;Dext&#44;[[floor((@{Luck}+@{Dext})/2)]] &#124;Int&#44;[[floor((@{Luck}+@{Int})/2)]] &#124;Con&#44;[[floor((@{Luck}+@{Con})/2)]] &#124;Per&#44;[[floor((@{Luck}+@{Per})/2)]] &#124;Cha&#44;[[floor((@{Luck}+@{Cha})/2)]] &#125; } Thanks for helping me.