
So I have a drop down box that asks if you are using a shield with the current weapon, this is under a repeating section repeating_weapon <input type="hidden" name="attr_shield_dr_inuse" value="0" /> <div class="sheet-col-1-16" title="Choose if this weapon uses a shield"> <select name="attr_shield_def_switch"> <option value="0">N</option> <option value="@{shield_defense_bonus}">Y</option> </select> </div> This variable is outside the repeating section <div class="sheet-col-1-8"><input type="number" name="attr_shield_dr" value="0"/></div> However I want to change shield_dr_inuse as well. I was just trying to do a simple script worker just to make sure it could read shield_def_switch and change the values, and I couldn't get this to work. on("change:repeating_weapon:shield_def_switch", function() { getAttrs(["repeating_weapon_shield_def_switch"], function(values) { const sds = int(values.repeating_shield_def_switch"); console.log(sds); if (sds == 0 ) dr_value= "-99"; else dr_value="1"; setAttrs({ repeating_weapon_shield_dr_inuse: dr_value }); }); }); I know it's probably something simple that I am making a mistake on here.