
Argh. As per the title. I can't even see the action in the console (see comments in the code). Any idea what I am doing wrong here? Button: <button type="action" name="act_test" class="button-roll">Percep</button> Script Worker: <script type="text/worker"> on('clicked:test', (event) => { console.log("In Clicked Test"); //this does not get logged console.log(event); //this does not get logged testRoll(); //this does not fire }); const testRoll = () => { let rollExpression = '1d100!>95'; //+ @{perception} +?{Other bonus/penalty?|0} // + @{skill_bonus}[Bonus] + @{skill_mod}[Mod]'; // Wrap the two @{attributes} in a [[subroll]] if they're taking up too much space let rollBase = '&{template:test} {{name=Test}} {{roll1=[[${rollExpression}]]}} {{downroll=[[0]]}} {{roll1name=${rollExpression}}} {{roll1mod=- [[1d100!>95]]}} {{roll1final=[[0]]}}'; startRoll(rollbase, (results) => { let downRoll = results.roll1mod.result; let origRoll = results.roll1.result; let dieRoll = results.roll1.dice[0]; let rollData = {}; // Holding the computed data in an object is a bit cleaner if your rolls get more complex if (dieRoll < 6) { rollData.downroll = 1; // This tells the roll template to display the mod & final sections rollData.roll1final = origRoll - downRoll } finishRoll(results.rollId, rollData); }); } //Other scripts go here </script> Any idea on what I may have done (or not done)? I have even stripped out the other scripts, and still no love. Could it be an unclosed tag in the HTML? I am not sure how to even debug this. Do I need to remove all the HTML as well and see if just the button and the script works?