I have an attr in as a value in an <input> that I want to use to select a value from an array within a <script> then export the result from the array back to a value in the character sheet. but I have no clue how to do that, any help would be appreciated. <input type="text" name="attr_exp_weapon9_tot" value="(@{exp_weapon9_1} + @{exp_weapon9_2} + @{exp_weapon9_3} + @{exp_weapon9_4} + @{exp_weapon9_5})" disabled="true" style="width: 45px;" /> <script type="text/worker"> const WeaponArray1 = [4,4,5,6,6,7,8,8,9,10,10,11,12,12,13,14,14,15,16,16,18,20,20,20,20,20,20,20]; let ToHit1 = WeaponArray1[weapon9_tot]; </script> <input type="text" value="(@{ToHit1})">