
I have the feeling the answer to this is "it can't be done", but I'll give it a shot anyway... In Traveller, damage from a weapon is given by a specified dice roll + the amount by which the "to hit" attempt succeeded. For example, to shoot somebody with a weapon, i first need to roll 2d6 with various skill modifiers, and get a result of 8 or better. The amount by which the roll succeeds is called the "effect", and this amount gets added to the weapon's base damage. I'm trying to handle the attack and damage rolls in one button on a character sheet. In other words, what I'd like to do looks something like this: <button type="roll" value="&{template: my-template} {{damage = [[3d6 + {{attack= [[2d6]]}} - 8]] }}">Fire Weapon</button> or this (I already know this syntax is wrong) <button type="roll" value="&{template:my-template} {{attack= [[2d6]]}} {{damage= [[3d6 + &{attack} - 8]]}}">Fire Weapon</button> My roll template would then first check {{attack}} to see if it exceeded 8, and if it did, the {{damage}} would be displayed. (As long as I have both a valid attack and damage result, I know I can handle that part!) The question is... is there a syntax to allow me to nest the two rolls in the button definition? Or is there a way I that I'm missing can do math on the two separate results later in the roll template?