
For context: this will be used as a "versus test" macro for Mouse Guard 2e. I am trying to write a macro that will ask for a Skill Name (which it does), Ask for Side A's base rating and modifiers (which it then uses to be Xd6s, which it does). Then does the same for Side B (still good here). Then I want it to compare Side A's and Side B's successes (greater than 3), determine a winner, and report the margin/delta between the two (neither thing works consistently). &{template:default} {{name=?{What is the skill name?} Versus Test}}{{A_Successes=[[ (?{Side A base}+?{Side A mod|0})d6>3 ]]}}{{B_Successes=[[ (?{Side B base}+?{Side B mod|0})d6>3 ]]}}{{Margin=[[$[[0]]-$[[1]]]]}} The image below shows two outputs from different iterations that I've tried: In the top one, the successes carry over, but no math happens, and there are visible brackets. In the second, the line is outside the template, and just prints, it doesn't do either thing. Any recommendations would be appreciated.