Hello! Me again. I'm trying to make another script to assign two variables from one dropdown. :) This time, the main selected variable is inside the repeating section, but the values it's setting are outside, in the general skills section. I tried nesting the getAttr commands, but I'm getting an error that it isn't finding the value from those non-repeating variables when I send the info to the attack template. Can you look at it and see if I did it right, or if maybe my trouble is elsewhere. I think it is a problem in the script because when I try to compile it, I get: JSC_PARSE_ERROR: Parse error. Unterminated string literal at line 16 character 93 ...epeating_meleeWeapons_${id}_meleeWeaponMast`] = mast.specialWeaponMeleeMast'; ^ /*Melee Weapon Select*/ on("sheet:opened change:repeating_meleeWeapons", function() { getSectionIDs('repeating_meleeWeapons', function (idArray) { getAttrs(["heavyWeaponMeleeMast","specialWeaponMeleeMast","wrestlingMAMast","defenseTechniquesMast","offenseTechniquesMast","armedCombatMast","handToHandCombatMast"], function(mast){ getAttrs(idArray.map(id => `repeating_meleeWeapons_${id}_meleeWeaponSkill`), function (values) { console.log(values); // Logging all the approach key:value pairs console.log(idArray); // logging all row ids. Those missing from the values object above don't have an approach // attribute set, so they should default to air let setting = {}; idArray.forEach(function (id) { switch (values[`repeating_meleeWeapons_${id}_meleeWeaponSkill`]) { case '@{heavyWeaponMelee}': setting[`repeating_meleeWeapons_${id}_meleeWeaponMast`] = mast.heavyWeaponMeleeMast; break; case '@{specialWeaponMelee}': setting[`repeating_meleeWeapons_${id}_meleeWeaponMast`] = mast.specialWeaponMeleeMast'; break; case '@{wrestlingMA}': setting[`repeating_meleeWeapons_${id}_meleeWeaponMast`] = mast.wrestlingMAMast; break; case '@{defenseTechniques}': setting[`repeating_meleeWeapons_${id}_meleeWeaponMast`] = mast.defenseTechniquesMast; break; case '@{offenseTechniques}': setting[`repeating_meleeWeapons_${id}_meleeWeaponMast`] = mast.offenseTechniquesMast; break; case '@{armedCombat}': setting[`repeating_meleeWeapons_${id}_meleeWeaponMast`] = mast.armedCombatMast; break; default: setting[`repeating_renpckata_${id}_meleeWeaponMast`] = mast.handToHandCombatMast; // defaulting to handtohand in case the select was never changed } }); console.log(setting); // Logging the attributes we are about to set. setAttrs(setting); }); }); }); });