
Ok, so for my system the character can roll a number of dice like 5d10 and it would show up as 5 times a single d10, but for roll templates this is a hell (at least to visually show it. I have the following code (warning very long, multiple posts) and I really wish I could do this in a foreach loop as each minor change requires a lot of places to change and is very easy to break < rolltemplate class = "sheet-rolltemplate-actionroll" > < div class= "sheet-template-container" > < div class= "sheet-template-header" > {{ name }} </ div > {{ #primary }} < div class= "sheet-template-column" style= "text-align: center;" > {{ primary }} </ div > {{ /primary }} < div class= "sheet-template-span sheet-template-wrap" > {{ #rollGreater () number 0 }} < div class= "sheet-template-inner-container" > {{ #rollTotal () reroll 0 }} < span class= "sheet-template-roll" > {{ computed :: roll1 }} < span class= "sheet-template-roll-backing" > 0 </ span ></ span > {{ /rollTotal () reroll 0 }} {{ #rollTotal () reroll 1 }}{{ #^ rollGreater () honed 0 }} < span class= "sheet-template-roll" > {{ computed :: roll1 }} < span class= "sheet-template-roll-backing" > 0 </ span ></ span > {{ / ^ rollGreater () honed 0 }}{{ /rollTotal () reroll 1 }} {{ #rollTotal () reroll 1 }} {{ #rollGreater () honed 0 }} < span class= "sheet-template-roll" > < span class= "sheet-template-roll" > {{ computed :: roll1 }} {{ #rollTotal () computed :: greater1 0 }} < span class= "sheet-template-roll-backing-crit" > 0 </ span > {{ /rollTotal () computed::greater1 0 }} {{ #rollTotal () computed :: greater1 1 }} < span class= "sheet-template-roll-backing-fail" > 0 </ span > {{ /rollTotal () computed::greater1 1 }} </ span > < span class= "sheet-template-roll" > {{ computed :: reRoll1 }} {{ #rollTotal () computed :: greater1 0 }} < span class= "sheet-template-roll-backing-fail" > 0 </ span > {{ /rollTotal () computed::greater1 0 }} {{ #rollTotal () computed :: greater1 1 }} < span class= "sheet-template-roll-backing-crit" > 0 </ span > {{ /rollTotal () computed::greater1 1 }} </ span > </ span > </ span > {{ /rollGreater () honed 0 }} {{ /rollTotal () reroll 1 }} < div class= "sheet-template-column" > < span class= "sheet-template-bonus" >< span class= "sheet-template-bonus-plus" > + </ span > {{ bonus }} </ span > < span class= "sheet-template-bonus" >< span class= "sheet-template-bonus-plus" > - </ span > {{ penalty }} </ span > </ div > < span class= "sheet-template-roll-fix" > {{ computed :: result1 }} < span class= "sheet-template-result-backing" > t </ span ></ span > </ div > {{ /rollGreater () number 0 }} {{ #rollGreater () number 1 }} < div class= "sheet-template-inner-container" > {{ #rollTotal () reroll 0 }} < span class= "sheet-template-roll" > {{ computed :: roll2 }} < span class= "sheet-template-roll-backing" > 0 </ span ></ span > {{ /rollTotal () reroll 0 }} {{ #rollTotal () reroll 1 }}{{ #^ rollGreater () honed 1 }} < span class= "sheet-template-roll" > {{ computed :: roll2 }} < span class= "sheet-template-roll-backing" > 0 </ span ></ span > {{ / ^ rollGreater () honed 1 }}{{ /rollTotal () reroll 1 }} {{ #rollTotal () reroll 1 }} {{ #rollGreater () honed 1 }} < span class= "sheet-template-roll" > < span class= "sheet-template-roll" > {{ computed :: roll2 }} {{ #rollTotal () computed :: greater2 0 }} < span class= "sheet-template-roll-backing-crit" > 0 </ span > {{ /rollTotal () computed::greater2 0 }} {{ #rollTotal () computed :: greater2 1 }} < span class= "sheet-template-roll-backing-fail" > 0 </ span > {{ /rollTotal () computed::greater2 1 }} </ span > < span class= "sheet-template-roll" > {{ computed :: reRoll2 }} {{ #rollTotal () computed :: greater2 0 }} < span class= "sheet-template-roll-backing-fail" > 0 </ span > {{ /rollTotal () computed::greater2 0 }} {{ #rollTotal () computed :: greater2 1 }} < span class= "sheet-template-roll-backing-crit" > 0 </ span > {{ /rollTotal () computed::greater2 1 }} </ span > </ span > </ span > {{ /rollGreater () honed 1 }} {{ /rollTotal () reroll 1 }} < div class= "sheet-template-column" > < span class= "sheet-template-bonus" >< span class= "sheet-template-bonus-plus" > + </ span > {{ bonus }} </ span > < span class= "sheet-template-bonus" >< span class= "sheet-template-bonus-plus" > - </ span > {{ penalty }} </ span > </ div > < span class= "sheet-template-roll-fix" > {{ computed :: result2 }} < span class= "sheet-template-result-backing" > t </ span ></ span > </ div > {{ /rollGreater () number 1 }} {{ #rollGreater () number 2 }} < div class= "sheet-template-inner-container" > {{ #rollTotal () reroll 0 }} < span class= "sheet-template-roll" > {{ computed :: roll3 }} < span class= "sheet-template-roll-backing" > 0 </ span ></ span > {{ /rollTotal () reroll 0 }} {{ #rollTotal () reroll 1 }}{{ #^ rollGreater () honed 2 }} < span class= "sheet-template-roll" > {{ computed :: roll3 }} < span class= "sheet-template-roll-backing" > 0 </ span ></ span > {{ / ^ rollGreater () honed 2 }}{{ /rollTotal () reroll 1 }} {{ #rollTotal () reroll 1 }} {{ #rollGreater () honed 2 }} < span class= "sheet-template-roll" > < span class= "sheet-template-roll" > {{ computed :: roll3 }} {{ #rollTotal () computed :: greater3 0 }} < span class= "sheet-template-roll-backing-crit" > 0 </ span > {{ /rollTotal () computed::greater2 0 }} {{ #rollTotal () computed :: greater3 1 }} < span class= "sheet-template-roll-backing-fail" > 0 </ span > {{ /rollTotal () computed::greater2 1 }} </ span > < span class= "sheet-template-roll" > {{ computed :: reRoll3 }} {{ #rollTotal () computed :: greater3 0 }} < span class= "sheet-template-roll-backing-fail" > 0 </ span > {{ /rollTotal () computed::greater2 0 }} {{ #rollTotal () computed :: greater3 1 }} < span class= "sheet-template-roll-backing-crit" > 0 </ span > {{ /rollTotal () computed::greater2 1 }} </ span > </ span > </ span > {{ /rollGreater () honed 2 }} {{ /rollTotal () reroll 1 }} < div class= "sheet-template-column" > < span class= "sheet-template-bonus" >< span class= "sheet-template-bonus-plus" > + </ span > {{ bonus }} </ span > < span class= "sheet-template-bonus" >< span class= "sheet-template-bonus-plus" > - </ span > {{ penalty }} </ span > </ div > < span class= "sheet-template-roll-fix" > {{ computed :: result3 }} < span class= "sheet-template-result-backing" > t </ span ></ span > </ div > {{ /rollGreater () number 2 }}