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 .
×

Nested Repeating Sections?

1429926350

Edited 1429926644
I'm a new user, and I've been writing a pen and paper game on and off for the last 24 years. I'm finally at a point where I want to test some of my ideas with a group and roll20 seems to be a great place to do it due to its adaptability and documentation. I'm in need of a custom character sheet, so I've been working through examples and the wiki. I'm finding that the tools to do this are fairly powerful and easy to grasp. The issue I'm running into is regarding the use of repeating sections. They work great for listing out skills and attached fields (like magnitude, bonus, costs, etc), but the structure of my game has some skills that govern other skills. Allocating a point into the skill yields bonus points to add into the skills under it, which are variable in number. I figured I might be able to add a repeating section to the repeating section that I have for skills (example below, can be pasted into a blank custom sheet). If I'm implementing this incorrectly or if someone has an alternate idea to implement this, I'm open to suggestions. Thanks in advance! Expected usage is as such: Skill >>subskill >>subskill [Add Button] for subskill Skill [Add Button] for subskill Skill >>subskill [Add Button] for subskill Skill >>subskill >>subskill >>subskill [Add Button] for subskill [Add Button[ for Skill Code: <table> <tr> <td width=220>Skill Name</td> <td width=50>CP</td> <td width=50>Base</td> <td width=50>Bonus</td> <td width=50>Total</td> </tr> </table> <fieldset> <p> <input type="text" name="attr_skillname" style="width:200px"> <input type="number" name="attr_skill_cp" style="width:50px"> <input type="number" name="attr_skill_base" style="width:50px"> <input type="number" name="attr_skill_bonus" style="width:50px"> <input type="number" name="attr_skill_total" style="width:50px"> </p> <fieldset> <p> >> <input type="text" name="attr_subskillname" style="width:180px"> <input type="number" name="attr_subskill_cp" style="width:50px"> <input type="number" name="attr_subskill_base" style="width:50px"> <input type="number" name="attr_subskill_bonus" style="width:50px"> <input type="number" name="attr_subskill_total" style="width:50px"> </p> </fieldset> </fieldset>
1429932228
Finderski
Pro
Sheet Author
Compendium Curator
Sorry, can't have nested repeating sections. I tried it and not dice...
depending on how many skills and subskills are in your system it might be better to just hard code them... even if each player is only going to use a small selection of the skills...
Thanks for the responses! I guess I'll just use the low tech way. I'll have a <textarea> and arrange it as an ascii monospaced table. Adding rows will be just as easy as hitting Enter. It worked in the MUD days! Any idea if there's a character limit on saving textarea data as a character sheet variable?
1429980846
Finderski
Pro
Sheet Author
Compendium Curator
Solice said: Any idea if there's a character limit on saving textarea data as a character sheet variable? Sorry...I don't know.
1429995442
Lithl
Pro
Sheet Author
API Scripter
Solice said: Any idea if there's a character limit on saving textarea data as a character sheet variable? Depends on how it's being stored on the backend. VARCHAR(MAX), for example, should be able to store 2 gigabytes of data, way more than you'd actually need.