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 .
×
Create a free account

[Help] Are auto-calculating fields inside repeating sections accessible from a section of the sheet outside the repeating section?

October 05 (9 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator
I had some code that was working, then I made a change that I would not have thought would break it, and am trying to figure out what exactly I did wrong.

In a new Earthdawn sheet I am trying to figure out hit-points. Discipline is a repeating class with name, circle, and durability all as input fields. As a first approximation that will work for single classed characters, I had HP = to toughness times 2, plus circle of the first discipline times durability of first discipline. 

<lable><input name="attr_Damage_max" type="number" disabled
value="(@{Damage-Unconscious-Mods}+(@{Attrib-Tou-Curr}*2)+(@{repeating_discipline_0_Circle}*@{repeating_discipline_0_Durability}))"  title="@{Damage_max}: Unconscious Rating."></span>

That worked fine. Then I realized I could make Durability a calculated field. Unfortunately, the above stopped working when @{repeating_discipline_0_Durability} became disabled with a formula. At first I thought it was because it had stored a value for that variable in the journal entry I was using, so I changed the name, but that did not help. 

In reading threads here, I see where some people say it will not work, while others insist that it does. 
Can anybody give me an authoritative answer in if/how I can do this?

Thanks
October 05 (9 years ago)

Edited October 05 (9 years ago)
vÍnce
Pro
Sheet Author
You won't be able to use any auto-calculated attributes that reside within the repeating item from outside of the fieldset.  You can pull the individual repeating attributes and then do calculations.  Hope I explained that correctly... It's currently a limitation of repeating items.  Official support for repeating sections in character sheets
October 06 (9 years ago)
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator
Of course, I should have thought of that myself. Thanks!