
Hi. I've modeled a nested roll query with the default roll template in the chat window and have it working. It involves using HTML entities to do escapes as described in the Macros wiki. The problem is when I place the working query in the value attribute of a roll button the escaping seems to revert to an unescaped state (at least as observed in the chat window) thereby causing errors. Here's my code: <button type="roll" class="sheet-roll-button" name="roll_bodyroll" value="&{template:default} {{name=Body}} ?{Dice Pool Modifier|0} + ?{Action | Roll Dice, {{Successes=[[(@{body}*2+?{Dice Pool Modifier})d2>2]] }} {{Modifier=?{Dice Pool Modifier} }}|Take the Average, {{Average Successes=[[((@{body}*2+?{Dice Pool Modifier})%2)d2>2+[[floor((@{body}*2+?{Dice Pool Modifier})/2)]] ]] }} {{Modifier=?{Dice Pool Modifier} }} {{Body (x2)=[[@{body}*2]] }} }"></button>
Is what I'm proposing above possible? There's a passage in the Advanced Usage for Roll Queries about having to save these to abilities that I don't quite get, but am wondering if it affects my solution above. Edit: It looks like the editor here also unescapes the escape codes...argh...