
Dipping a toe into sheet-workers with a new Mouse Guard sheet. Trying to do a condition list with a kind of mixed behavior of checkboxes and radio. A character can have any arrangement of bad conditions. What I'd like to do is that by checking any bad condition, the sheetworker unchecks the "Healthy" box. And accordingly, if the player checks the "Healthy" box, it unchecks every other condition. However... I can't even get the event listener to output to the console! T_T <script type="text/worker"> //Condition logic on("change:healthy", function(eventInfo) { console.log("Healthy clicked"); if (eventInfo.newValue=="on") { setAttrs(attr_hungry, 0); setAttrs(attr_angry, 0); setAttrs(attr_tired, 0); setAttrs(attr_injured, 0); setAttrs(attr_sick, 0); } } </script> At first I was thinking I'd use the button listener, but looking at the documentation, it seems to want me to name the buttons to "act_<name>", which I imagine doesn't get me an attribute? Anyway, I figured changing the attribute would go backwards and express itself in the charactersheet, which it does if I go to the attributes tab in the character sheet. Anyway, the console.log doesn't trigger, so trying to figure out how I've already botched a basic bit of script. This is the bit of html for the checkboxes as well in case the problem lies there. <div class="popout"> <h1>Conditions</h1> <div class="flexrow"><h2>Healthy</h2><input type="checkbox" class="checkcondition" name="attr_healthy"/><span></span></div> <div class="flexrow"><h2>Hungry/Thirsty</h2><input type="checkbox" class="checkcondition" name="attr_hungry"/><span></span></div> <div class="flexrow"><h2>Angry (Ob 2 Will)</h2><input type="checkbox" class="checkcondition" name="attr_angry"/><span></span></div> <div class="flexrow"><h2>Tired (Ob 3 Health)</h2><input type="checkbox" class="checkcondition" name="attr_tired"/><span></span></div> <div class="flexrow"><h2>Injured (Ob 4 Health)</h2><input type="checkbox" class="checkcondition" name="attr_injured"/><span></span></div> <div class="flexrow"><h2>Sick (Ob 4 Will)</h2><input type="checkbox" class="checkcondition" name="attr_sick"/><span></span></div> </div>