
Okay, I am (apparently) following the wiki guidelines for setting up my own roll template and the rollGreater() helper function drives me nuts. So here's how it currently looks: If the damage value is above a certain value (0 to be excat) I want it to show the extra damage. Otherwise I don't want to show it. Here's my code: {{#armyattack}} <div class="sheet-row"> <div class="sheet-col-7-13 sheet-padl sheet-RollTemp-rollname">Overcoming DV</div> <div class="sheet-col-6-13 sheet-padr sheet-RollTemp-rollresult">{{armyattack}}</div> </div> {{#armydamage}} <div class="sheet-row"> <div class="sheet-col-7-13 sheet-padl sheet-padr sheet-RollTemp-rollname">Extra Damage </div> <div class="sheet-col-6-13 sheet-padr sheet-RollTemp-rollresult">{{armydamage}}</div> </div> {{/armydamage}} {{#rollGreater() armydamage 0}} {{#armydamage}} <div class="sheet-row"> <div class="sheet-col-7-13 sheet-padl sheet-padr sheet-RollTemp-rollname">Extra Damage </div> <div class="sheet-col-6-13 sheet-padr sheet-RollTemp-rollresult">{{armydamage}}</div> </div> {{/armydamage}} {{/#rollGreater() armydamage 0}} {{/armyattack}} I've added the first occurrence of the extra damage to prove I am not mental and it actually can show the values. However, the second I add the rollGreater part and reload, my chat log goes crazy and the button will not work any longer. And this the button code: <button type='roll' style="font-family: 'Gloria Hallelujah', cursive; font-weight: bold; font-size: 16px;" name="Attack_@{ArmyName}" value="&{template:odnd} {{combat=1}} {{title=@{ArmyName}}} {{armyDamageTresh=0}} {{armyattack=[[ 1d20 + @{armyTotalACR}[Bonus] ]] }} {{armydamage=[[@{armyTacticsTotalDamage}+@{armyResourcesTotalDamage}+@{armyPowersTotalDamage}+@{armyConditionsTotalDamage}+@{armyBoonsTotalDamage}]]}}"></button> Any ideas?