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] Referring to attributes (or skills) in repeating sections

1447590458
Scaby79
Sheet Author
API Scripter
In my custom character sheet I have the need to refer to attributes of items and skills in repeating sections from outside the repeating section. With the new  Dev Update 11/10 I wonder if there is a better way to solve my problem as the workaround I used so far. Here's what I try to do: First of all, my custom character sheet is a modified version of the  Pathfinder-Neceros-Sheet for the german roleplay game ABOREA. As this roleplay game is very "young" in comparison with other roleplay games and therefor still growing, I wanted the sheet to be very flexible especially when it comes to weapons and weapon skills, so both (weapons and weapon skills) are handled in repeating sections. It looks like this: therefor the text for the placeholders is hard coded in the html: <select style="width:100%" name="attr_weaponskill"> <option value="0"selected>wählen</option></option> <option value="@{raufen}">Raufen</option></option> <option value="-2">ungelernt</option> <option value="0">ungelernt, Krieger</option> <option value="0">ungelernt, Waffe d. Gottes</option> <option value="@{repeating_fightingskills_0_skill}">1. Waffenkunst</option> <option value="@{repeating_fightingskills_1_skill}">2. Waffenkunst</option> <option value="@{repeating_fightingskills_2_skill}">3. Waffenkunst</option> <option value="@{repeating_fightingskills_3_skill}">4. Waffenkunst</option> <option value="@{repeating_fightingskills_4_skill}">5. Waffenkunst</option> <option value="@{repeating_fightingskills_5_skill}">6. Waffenkunst</option> <option value="@{repeating_fightingskills_6_skill}">7. Waffenkunst</option> <option value="@{repeating_fightingskills_7_skill}">8. Waffenkunst</option> <option value="@{repeating_fightingskills_8_skill}">9. Waffenkunst</option> <option value="@{repeating_fightingskills_9_skill}">10. Waffenkunst</option> </select> with the new update presumable there have to be added some $-characters and it will still work after the update but as I pointed out in the beginning of this post I wonder if there is a better way to refer to attributes in existing repeating sections. Even if i grab the unique ID of the repeating skill or attribute by sheet workers I'm afraid there still will be the problem of presenting the according skill name to the player in the dropdown menu. Is there any chance to show the content of an attribute as option in the dropdown menu like 3. Waffenkunst <option value="@{repeating_fightingskills_1_skill}">@{repeating_fightingskills_1_skillname}</option> ??? Sadly in the way I tried it (the line above) it can't be done. I'm looking forward to your ideas. :)
1447598100
Lithl
Pro
Sheet Author
API Scripter
A recent post by Riley in the Pro forums said there should soon be something on dev to do something like @{repeating_fightingskills_$1_skillname}