TFTL has a reroll mechanic which I am trying to emulate/adapt to my custom sheet. The roll-template is triggered by a button which has these values passed: {{reroll0=[@{translation_luck}](~@{character_id}|reroll[[@{body}+?{Bonus Dice|0}-@{upset}-@{scared}-@{exhausted}-@{injured}-@{broken}-0]])}} The @{translation_luck) refers to a hidden <input> which sits at the top of the document: <input data-i18n-value="Reroll" name="attr_translation_luck" type="hidden" value="Reroll32"/> Which is further preceded by a bunch of <button> tags. <button class="hidden" name="roll_reroll0" type="roll" value="&amp;{template:tftl} {{name=Reroll}} {{character_name=@{character_name}}} {{reroll_dice=0}} {{roll=[[0d6&gt;6]]}}"></button> Finally, in the rolltemplate itself: <div class="sheet-tftl-buttons">{{#reroll1}}{{#rollTotal() roll 0}} {{reroll0}} {{/rollTotal() roll 0}}{{#rollTotal() roll 1}} {{reroll1}} {{/rollTotal() roll 1}}{{#rollTotal() roll 2}} {{reroll2}} {{/rollTotal() roll 2}}{{#rollTotal() roll 3}} {{reroll3}} {{/rollTotal() roll 3}}{{#rollTotal() roll 4}} {{reroll4}} {{/rollTotal() roll 4}}{{#rollTotal() roll 5}} {{reroll5}} {{/rollTotal() roll 5}}{{#rollTotal() roll 6}}
etc...
So the final result looks like this: Looking back the primary roll button: {{reroll0=[@{translation_luck}](~@{character_id}|reroll[[@{body}+?{Bonus Dice|0}-@{upset}-@{scared}-@{exhausted}-@{injured}-@{broken}-0]])}} I have trouble understanding some of the complicated syntax here. What does [@{translation_luck}](~@{character_id} mean? Is the "|" used here an "or" operator?