Zepth said: You could do it with a modifiable formula in a sheet couldnt you? It would just mean each time you add a new repeating field you would have to update the formula to include the new weight attribute Modifying the formula would necessitate refreshing the sheet, and the formula would apply to everyone. The simplest way to handle sets of fields that need
to be added together is just to add a number of rows in a table. Sure
it makes the sheet longer, but then you can do math and API stuff on it
without any consequence or complication. Or, alternatively, you could
create an API-based roller that takes the following: A Numeric field representing how many items are in your repeatable table. A Total Field. A Roll Button (Possibly labeled "Calculate". Then
what you would do is use String functions to get the Weight Fields in
the repeating section, add them together and then update the Total
numeric field. So, for example, if the Repeating Weight field is
attr_ArmorWeight and the Repeating section is called repeating_armor,
and you had four items in the list, you'd enter 4 in the "# of Items"
field and then hit the Calculate button. The script would then page
through repeating_armor_0_ArmorWeight, repeating_armor_1_ArmorWeight,
repeating_armor_2_ArmorWeight, repeating_armor_3_ArmorWeight and total
the values. Lastly it'd put the result into the Total field, which the players would have needed to enter a dummy number into first for the API to know the attribute exists. It's not clean, and there's no guarantee that this would
work consistently, but this is the closest to an AutoCalc field for
Repeating Tables that I can think of.