
Hello all, I'm trying to work out the correct way to make a change to a roll result based on a checkbox. Specifically, if the checkbox is checked, I need to add another roll macro. Macro call is: &{template:magus} {{name=@{character_name}}} {{trait_name=@{trait1desc}}} {{result=[[{{@{dicepool}}>@{difficulty} + {@{trait1dice}}>@{difficulty}}]]}} and the template itself is: <rolltemplate class="sheet-rolltemplate-magus"> <table> <tr><th>{{name}}</th></tr> <tr><td>{{trait_name}} </td></tr> <tr> <td class="result">{{result}} Successes</td> </tr> </table> </rolltemplate> e.g. : If the box is unchecked, the macro should be: {{result=[[{{@{dicepool}}>@{difficulty} + {@{trait1dice}}>@{difficulty}}]]}} If the box is checked, the macro should be: {{result=[[{{@{dicepool}}>@{difficulty} + {@{trait1dice}}>@{difficulty} + {@{magicitem1dice}}>@{difficulty}}]]}} I'm open to alternative ways of doing this - I thought I could instead use the checkbox to control whether a section is shown or not, and always roll and display the extra dice separately, but I couldn't figure out the property logic. Any help is much appreciated!