So I am still plugging away at my Castles and Crusades custom character sheet. I am trying to auto populate the monk's unarmed combat damage die based on class and level. This is what I have and it doesn't work. <script type="text/worker"> on("change:level change:monkdmg sheet:opened", function() { getAttrs(["Level","MonkDmg"], function(values) { let level = parseInt(values.Level)||0; let modifier; // the scale if (level === 1) modifier ? "1d4" : if (level === 2) modifier ? "1d6" : if (level === 3) modifier ? "1d6" : if (level === 4) modifier ? "1d8" : if (level === 5) modifier ? "1d8" : if (level === 6) modifier ? "1d8" : if (level === 7) modifier ? "1d10" : if (level === 8) modifier ? "1d10" : if (level === 9) modifier ? "1d10" : if (level === 10) modifier ? "1d10" : if (level === 11) modifier ? "1d10" : if (level === 12) modifier ? "1d10" : if (level === 13) modifier ? "1d10" : if (level === 14) modifier ? "1d10" : if (level === 15) modifier ? "1d10" : if (level === 16) modifier ? "1d10" : if (level === 17) modifier ? "1d10" : if (level === 18) modifier ? "1d10" : if (level === 19) modifier ? "1d10" : if (level === 20) modifier ? "1d10" : setAttrs({MonkDmg : modifier}); }); }); </script>