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

Custom Character Sheet Question: Automatically updating 'sum' value from values inputted in repeating sections. Possible?

I am attempting to create my own character sheet from scratch for a TRPG system that I am developing. It would be nice if I could find some way to add values inputted for repeating sections as new sections are added. For instance, if a player adds a new section for a skill that has a number value of X, could I somehow send that value to a counter outside of the repeating sections that totals up all the numbers inputted for each added section? The goal would be to add up all X values to display a total of all the X values that have been added, but there is not set number of X values determined beforehand because the players have yet to add them. If this simply isn't possible that's fine, but if there is a way to do it, it is beyond my small amount of coding knowledge.
1505244410
Jakob
Sheet Author
API Scripter
Quest RPGs said: I am attempting to create my own character sheet from scratch for a TRPG system that I am developing. It would be nice if I could find some way to add values inputted for repeating sections as new sections are added. For instance, if a player adds a new section for a skill that has a number value of X, could I somehow send that value to a counter outside of the repeating sections that totals up all the numbers inputted for each added section? The goal would be to add up all X values to display a total of all the X values that have been added, but there is not set number of X values determined beforehand because the players have yet to add them. If this simply isn't possible that's fine, but if there is a way to do it, it is beyond my small amount of coding knowledge. Yes, it is possible using sheet workers. You can either set up the code yourself, or use TheAaronSheet to do it, which has methods specifically meant for the task of summing up stuff in repeating sections.