
Trying to output experience totals for a character sheet by grabbing the initial score but its failing to work for me. on("change:repeating_ability:Ability_Score", function() { getAttrs([repeating_ability_Score], function(values) { var n = values.repeating_ability_Score; setAttrs({ repeating_ability_AbilityTotal_exp: ((n*(n+1)/2)*5), repeating_ability_AbilityAdvancement_exp: ((n+1)*5); }); }); });
And in case it matters, the relevant line in the repeating fieldset <input type="number" class="sheet-number_2" name="attr_Ability_exp" value="0"/> / <input type="number" class="sheet-number_2" name="attr_AbilityAdvancement_exp" value="0"/> / <input type="number" class="sheet-number_2" name="attr_AbilityTotal_exp" value="0"/>