Hello all, I have up to now not developped anything regarding rolltemplate, chat menus, or macros, so I am still a bit struggling understanding the syntax... My ultimate goal is to transfer from API to the sheetworker a feature that on change of the rank of a certain ability sends a chat proposing to the player to record the expense of LP (Earthdawn equivalent of XP) For now, I am tinkering with the example given on the Wiki where there is an actual roll, triggered by an action button, and trying simply to add a "Reroll" button <a href="https://wiki.roll20.net/Button#Roll_Parsing" rel="nofollow">https://wiki.roll20.net/Button#Roll_Parsing</a> <button type="action" name="act_test">Click me</button>
<rolltemplate class="sheet-rolltemplate-test">
<div class="sheet-template-container">
<h1>{{name}}</h1>
<div class="sheet-results">
<h4>Result = {{roll1}}</h4>
<h4>Custom Result = {{computed::roll1}}</h4>
<h4>Reroll [Click Here](~test)</h4> <!-- This is the Section I added hoping to trigger back act_test-->
</div>
</div>
</rolltemplate>
<script type="text/worker">
on('clicked:test', (info) => {
startRoll("&{template:test} {{name=Test}} {{roll1=[[1d20]]}} ", (results) => {
const total = results.results.roll1.result
const computed = total % 4;
finishRoll(
results.rollId,
{
roll1: computed,
}
);
});
});
</script> But I keep getting the following. What do I have wrong with the button syntax ?