I'm sorry, about those screenshots. Now I got this: on("change:repeating_equipment remove:repeating_equipment", function(values) { repeatingSum("income","equipment",["equipmentPeso","equipmentQuantity"]); }); I made the edits you said and now I have this scriptblock: <script type="text/worker"> console.log("Loading script(s)"); /*config Roll Queries translations */ on("sheet:opened", function(eventInfo){ setAttrs({ public_roll: getTranslationByKey("public_roll"), whisper_roll: getTranslationByKey("whisper_roll"), whisper: getTranslationByKey("whisper"), fighting_label: getTranslationByKey("fighting"), income_label: getTranslationByKey("income_label"), accuracy_label: getTranslationByKey("accuracy"), communication_label: getTranslationByKey("communication"), constitution_label: getTranslationByKey("constitution"), dexterity_label: getTranslationByKey("dexterity"), perception_label: getTranslationByKey("perception"), strength_label: getTranslationByKey("strength"), willpower_label: getTranslationByKey("willpower"), intelligence_label: getTranslationByKey("intelligence"), cunning_label: getTranslationByKey("cunning"), none: getTranslationByKey("none"), plus_one_tn: getTranslationByKey("plus_one_tn"), power_cost_label: getTranslationByKey("power_cost_label"), kanna_cost_label: getTranslationByKey("kanna_cost_label"), fatigue_tn_label: getTranslationByKey("fatigue_tn_label"), ability: getTranslationByKey("ability"), ability_value: getTranslationByKey("ability_value"), focus_value: getTranslationByKey("focus_value"), additional_modifier: getTranslationByKey("additional_modifier"), additional_modifier2: getTranslationByKey("additional_modifier2"), ability_score: getTranslationByKey("ability_score"), roll_description: getTranslationByKey("roll_description"), die_roll: getTranslationByKey("die_roll"), focus: getTranslationByKey("focus"), magic_label: getTranslationByKey("magic"), magic_arcana_focus: getTranslationByKey("magic_arcana_focus"), spellcasting_ability: getTranslationByKey("spellcasting_ability"), psychic_ability: getTranslationByKey("psychic_ability"), ability_focus: getTranslationByKey("ability_focus"), arcana_focus: getTranslationByKey("arcana_focus"), psychic_focus: getTranslationByKey("psychic_focus"), fatigue_check_for: getTranslationByKey("fatigue_check_for"), each_fatiguing_spell: getTranslationByKey("each_fatiguing_spell"), fear_label: getTranslationByKey("fear_label"), armor_penalty: getTranslationByKey("armor_penalty"), initiative_adjustment: getTranslationByKey("initiative_adjustment"), initiative: getTranslationByKey("initiative"), resources: getTranslationByKey("resources"), attack_bonus_label: getTranslationByKey("attack_bonus_label"), magic_arcana_focus: getTranslationByKey("magic_arcana_focus"), spellpower_label: getTranslationByKey("spellpower_label") }); }); on("change:fear", function(event) { console.log("Fear changed"); getAttrs(["fear"], function(v) { switch(v.fear) { case "0": setAttrs({ "fear-perception": 0, "fear-intelligence": 0, "fear-initiative": 0, "fear-accuracy": 0, "fear-fighting": 0 }); // setAttrs break; case "1": setAttrs({ "fear-perception": 1, "fear-intelligence": -1, "fear-initiative": 0, "fear-accuracy": 0, "fear-fighting": 0 }); // setAttrs break; case "2": setAttrs({ "fear-perception": 1, "fear-intelligence": -1, "fear-initiative": 1, "fear-accuracy": -1, "fear-fighting": -1 }); // setAttrs break; case "3": setAttrs({ "fear-perception": 2, "fear-intelligence": -2, "fear-initiative": 1, "fear-accuracy": -1, "fear-fighting": -1 }); // setAttrs break; case "4": setAttrs({ "fear-perception": 2, "fear-intelligence": -2, "fear-initiative": 2, "fear-accuracy": -2, "fear-fighting": -2 }); // setAttrs break; case "5": setAttrs({ "fear-perception": 2, "fear-intelligence": -2, "fear-initiative": 2, "fear-accuracy": -2, "fear-fighting": -2 }); // setAttrs break; default: console.log("Error: unknown value for fear"); }; // case }); // getAttrs }); // change:fear on("clicked:autoconfigure", function(event) { console.log("Clicked!"); getAttrs(["game"], function(v) { switch(v.game) { case "dragon-age": setAttrs({ "mana-toggle": 1, "initiative-toggle": 1, "fatigue-toggle": 0, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 1, "conviction-toggle": 0, "corruption-toggle": 0, "ammo-toggle": 1, "power-list-toggle": 1, "spell-list-toggle": 1, "equipment-toggle": 1, "money-toggle": 1, "income-toggle": 0, "conditions-toggle": 0, color: "red" }); // setAttrs break; case "fantasy-age": setAttrs({ "mana-toggle": 1, "initiative-toggle": 1, "fatigue-toggle": 0, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 0, "conviction-toggle": 0, "corruption-toggle": 0, "ammo-toggle": 1, "power-list-toggle": 1, "spell-list-toggle": 1, "equipment-toggle": 1, "money-toggle": 1, "income-toggle": 0, "conditions-toggle": 0, color: "green" }); // setAttrs break; case "titansgrave": setAttrs({ "mana-toggle": 1, "initiative-toggle": 1, "fatigue-toggle": 0, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 0, "conviction-toggle": 0, "corruption-toggle": 0, "ammo-toggle": 1, "power-list-toggle": 1, "spell-list-toggle": 1, "equipment-toggle": 1, "money-toggle": 1, "income-toggle": 0, "conditions-toggle": 0, color: "teal1" }); // setAttrs break; case "blue-rose": setAttrs({ "mana-toggle": 0, "initiative-toggle": 1, "fatigue-toggle": 1, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 0, "conviction-toggle": 1, "corruption-toggle": 1, "ammo-toggle": 0, "power-list-toggle": 1, "spell-list-toggle": 1, "equipment-toggle": 1, "money-toggle": 0, "income-toggle": 0, "conditions-toggle": 0, color: "blue2" }); // setAttrs break; case "the-expanse": setAttrs({ "mana-toggle": 0, "initiative-toggle": 1, "fatigue-toggle": 0, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 0, "conviction-toggle": 0, "corruption-toggle": 0, "ammo-toggle": 1, "power-list-toggle": 1, "spell-list-toggle": 0, "equipment-toggle": 1, "money-toggle": 0, "income-toggle": 1, "conditions-toggle": 1, color: "stars" }); // setAttrs break; case "modern-age": setAttrs({ "mana-toggle": 1, "initiative-toggle": 1, "fatigue-toggle": 1, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 1, "conviction-toggle": 0, "corruption-toggle": 0, "ammo-toggle": 1, "power-list-toggle": 1, "spell-list-toggle": 1, "equipment-toggle": 1, "money-toggle": 0, "income-toggle": 1, "conditions-toggle": 0, color: "orange" }); // setAttrs break; case "world-of-lazarus": setAttrs({ "mana-toggle": 0, "initiative-toggle": 1, "fatigue-toggle": 0, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 1, "conviction-toggle": 0, "corruption-toggle": 0, "ammo-toggle": 1, "power-list-toggle": 1, "spell-list-toggle": 0, "equipment-toggle": 1, "money-toggle": 0, "income-toggle": 1, "conditions-toggle": 0, color: "lazarus" }); // setAttrs break; case "threefold": setAttrs({ "mana-toggle": 1, "initiative-toggle": 1, "fatigue-toggle": 1, "fear-toggle": 0, "horror-toggle": 0, "exp-toggle": 1, "conviction-toggle": 0, "corruption-toggle": 0, "ammo-toggle": 1, "power-list-toggle": 1, "spell-list-toggle": 1, "equipment-toggle": 1, "money-toggle": 0, "income-toggle": 1, "conditions-toggle": 0, color: "threefold" }); // setAttrs break; default: console.log("wait what happened"); }; // case }); // getAttrs }); // on clicked on("sheet:opened", function(event) { console.log("Opened!"); getAttrs(["cp", "sp", "gp"], function(v) { let cp = parseInt(v.cp,10)||0; let sp = parseInt(v.sp,10)||0; let gp = parseInt(v.gp,10)||0; if(cp != 0 || sp != 0 || gp != 0) { console.log("Hey there's legacy money in there"); setAttrs({ "legacy-money-toggle": 1}); } // if }); // getAttrs }); // sheet opened on("clicked:legacymoneyimport", function(event) { console.log("Clicked!"); getAttrs(["cp", "sp", "gp"], function(v) { console.log(`Converting ${v.cp} cp, ${v.sp} sp, ${v.gp} gp`); let setObj = {}; let cp = parseInt(v.cp,10)||0; let sp = parseInt(v.sp,10)||0; let gp = parseInt(v.gp,10)||0; let id = generateRowID(); setObj[`repeating_money_${id}_moneyname`] = "gp"; setObj[`repeating_money_${id}_moneyamount`] = gp; id = generateRowID(); setObj[`repeating_money_${id}_moneyname`] = "sp"; setObj[`repeating_money_${id}_moneyamount`] = sp; id = generateRowID(); setObj[`repeating_money_${id}_moneyname`] = "cp"; setObj[`repeating_money_${id}_moneyamount`] = cp; setObj.GP = 0; setObj.SP = 0; setObj.CP = 0; setObj["legacy-money-toggle"] = 0; setAttrs(setObj); }); // getAttrs }); // on clicked on("change:repeating_equipment remove:repeating_equipment", function(values) { repeatingSum("income","equipment",["equipmentPeso","equipmentQuantity"]); }); console.log("Script load complete"); </script> But it still doesn't work. I can't get a value from this on my Total Weigth. What am I doing wrong? Sorry if this is too basics, I'm trying to understand it.