The current script I have is doing perfect for what it's coded for...which is increasing the stat bonus based on the amount in each block. I've been reading that you should try to keep it to just 1 script so here's me trying. <script type="text/worker"> const int = score => parseInt(score, 10) || 0; const stats = ["strength", "dexterity", "constitution", "intelligence", "wisdom", "charisma", "defense"]; stats.forEach(stat => { on("change:${stat} sheet:opened", () => { getAttrs([stat], values => { const stat_base = int(values[stat]); console.log(stat_base); let stat_bonus = 1; if (stat_base >= 275) stat_bonus = "25"; else if (stat_base >= 255) stat_bonus = "24"; else if (stat_base >= 235) stat_bonus = "23"; else if (stat_base >= 215) stat_bonus = "22"; else if (stat_base >= 195) stat_bonus = "21"; else if (stat_base >= 175) stat_bonus = "20"; else if (stat_base >= 160) stat_bonus = "19"; else if (stat_base >= 145) stat_bonus = "18"; else if (stat_base >= 130) stat_bonus = "17"; else if (stat_base >= 115) stat_bonus = "16"; else if (stat_base >= 100) stat_bonus = "15"; else if (stat_base >= 90) stat_bonus = "14"; else if (stat_base >= 80) stat_bonus = "13"; else if (stat_base >= 70) stat_bonus = "12"; else if (stat_base >= 60) stat_bonus = "11"; else if (stat_base >= 50) stat_bonus = "10"; else if (stat_base >= 45) stat_bonus = "9"; else if (stat_base >= 40) stat_bonus = "8"; else if (stat_base >= 35) stat_bonus = "7"; else if (stat_base >= 30) stat_bonus = "6"; else if (stat_base >= 25) stat_bonus = "5"; else if (stat_base >= 20) stat_bonus = "4"; else if (stat_base >= 15) stat_bonus = "3"; else if (stat_base >= 10) stat_bonus = "2"; else if (stat_base >= 5) stat_bonus = "1"; else if (stat_base >= 0) stat_bonus = "1"; else stat_bonus = "1"; setAttrs({ [`${stat}_bonus`]: stat_bonus }); }); }); }); </script> What I'm trying to add to this script is having abilities like stealth, investigation and arcane knowledge modifiers increase when points are put into the base stats that these abilities pull off of. On top of that, I have a weight system I saw and currently trying to use but the number value won't increase and change the corresponding. What I have for that is this: <fieldset class="repeating_inventory"> <input type="hidden" class="equippedflag" name="attr_equipped"> <div class="item"> <input class="count" type="text" name="attr_itemcount" value="1" style="width: 70px;"> <input class="name" type="text" name="attr_itemname" style="width: 200px;"> <input class="weight" type="text" name="attr_itemweight" style="width: 50px;"> <div class="subitem"> <div class="row"> <input class="equipped" type="checkbox" name="attr_equipped" value="1" checked="checked"> <span class="equippedlabel">EQUIPPED</span> <input class="equipped" type="checkbox" name="attr_useasresource" value="1"> <span class="equippedlabel">USE AS A RESOURCE</span> <input class="equipped" type="checkbox" name="attr_hasattack" value="1"> <span class="equippedlabel">HAS AN ATTACK</span> <span class="label">MODS:</span> <input class="subfield" type="text" name="attr_itemmodifiers"> </div> </div> <input type="hidden" name="attr_itemattackid"> <input type="hidden" name="attr_itemresourceid"> </div> </fieldset> <div class="weighttotal"> <span class="label">TOTAL WEIGHT</span> <input type="text" name="attr_weighttotal" value="@{itemweight}"> <input type="hidden" class="encumberance" name="attr_encumberance"> </div> <div class="sheet-container"> <input type="hidden" name="attr_overweight" value="" class="sheet-hidden sheet-overweight"> <div class="sheet-overweight"></div> </div> I tried putting the value for attr_overweight as @ {weighttotal} since the weighttotal is trying to pull off itemweight. Itemweight is for each individual piece to come up with the weighttotal. Is there something I'm missing or coding wrong?