I considered putting this into the Character Sheet section, but I thought I'd get the best advice in a dedicated JS-centric subforum. I'm trying to grab the text of an attribute on my character sheet for use in a Sheet Worker Script, but as it turns out when I log it to the console, it always turns up as "undefined". Is there something I'm doing wrong here? <script type="text/worker"> //This is an autofill script for convenience' sake //Class bases/growths; use consts since they don't need to be mutable @runtime on("change:Class", function(eventInfo) { //tons of stat lists, probably not important? let classIndex = 0; let currentclass = eventInfo.newvalue; if (unPr_classList.indexOf(currentclass) != -1) { classIndex = unPr_classList.indexOf(currentclass); getAttrs(["HP_sf", "HP_gf"], function(values) { setAttrs({ HP_sf: unPr_HP_b[classIndex] }); }); } console.log("Stats set for " + currentclass) }); </script>