Hello, I have already implanted the Tas script to sum up values in different repeating sections of my character sheet, and use that sum elswhere, no problem here, it works wonders. However, I'm trying to sum up the total price values of items in an inventory repeating section, and when I try the same thing as I already did with other values on my sheet, it doesn't work. This price value is in itself obtained by a non-script way, @{#}*@{$}, and I highly suspect that this is the problem. It seems to me that the TAS.repeatingSimpleSum does not understand the multiplication, and only accepts purely numerical values. If this is true, then I need a way to have the script multiply quantity by price for each row, and then add thes results together. The problem is: I know no javascript so I have no idea how to do that. Here are the three values I'm working with: <fieldset class="repeating_equip">
<div class="sheet-col">
<input type="number" style=" background: #FFF; width: 40px; height: 24px; border-radius: 2px;" name="attr_quantequip" value="0" />
</div>
<div class="sheet-col">
<input type="number" style=" background: #FFF; width: 40px; height: 24px; border-radius: 2px;" name="attr_prixequip" value="0" />
</div>
<div class="sheet-col">
<input type="number" name="attr_totprixequip" value="(@{quantequip}*@{prixequip})" disabled="true" style="background-color: transparent; border: transparent ; font-weight: bold; width: 40px;" data-formula="(@{quantequip}*@{prixequip})"/>
</div>
</fieldset>
What I tried with the scipt was : on('change:repeating_equip', function(){
TAS.repeatingSimpleSum('equip','totprixequip','total_prix');
});
</script>
<div class="total">Total prix<br><input class="sumtotalprix" type="text" name="attr_total_prix" value="0" title="total prix" /></div> Which doesn't work. I think I need to find a way to get the script to multiply, as I said, ``@{quantequip}`` by ``@{prixequip}`` for each row and then add the results with something like repeatingsimplesum, setting the value of the ```@{total_prix}`` attribute. I there a way to do that?