Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
May your rolls be merry + bright! 🎄
Create a free account

Referencing variables in repeating values

I noticed there is a "repeating" function that allows users to add stuff to their character sheets. Is there any way I can reference values within those repeating functions? Like if I had <b>Bacons</b> <fieldset> <div style="width: 200px;"><input type="number" name="attr_crispyBacons"><br>Crispy Bacons</div> <div style="width: 200px;"><input type="number" name="attr_squishyBacons"><br>Squishy Bacons</div> <div style="width: 200px;"><input type="number" name="attr_rawBacons"><br>Raw Bacons</div> <hr> </fieldset> Could I then reference all of the crispy bacons in all of the user-created sheet additions and more importantly can I reference them individually somehow?
In the repeating section of the wiki, it says you would have to do the following: <b>Bacons</b> <fieldset class="repeating_pork"> <div style="width: 200px;"><input type="number" name="attr_crispyBacons"/><br>Crispy Bacons</div> <div style="width: 200px;"><input type="number" name="attr_squishyBacons"/><br>Squishy Bacons</div> <div style="width: 200px;"><input type="number" name="attr_rawBacons"/><br>Raw Bacons</div> <hr> </fieldset> And a field that referenced & totaled all of the bacon from the first repeating field would use this: <input type="number" name="attr_all_the_bacon" value="@{repeating_pork_0_crispyBacons} + @{repeating_pork_0_squishyBacons} + @{repeating_pork_0_rawBacons}" disabled='true'/>