
So I've been working on a custom sheet for my game using the Panic at the Dojo system (as a side tangent, it's inspired by Ranma 1/2). However, I've run into an issue: being able to put a variable number of dice on the sheet and have it work correctly.
To expand on this, Panic at the Dojo has you select Forms and Styles. The thing is, each Form has different dice, and some have more (but usually smaller) dice than others. For example, the Power Form has two d10s and a d4, while the Shadow Form has six d4's. And then there's the Zen Form which gives you a fixed array of 7 5 3 1. Each dice result can be used to power an action (which is granted by Forms and Styles, and there're also basic actions everyone has). For example, with a result spread of 9 4 1, I could put the 9 into the Damage basic action to inflict a strong hit of 5 damage which pushes the target 3 spaces, the 4 into the Suppression action granted by the Control Form to move 1 space and gain a token which can be spent to negate an opponent's action, and the 1 into the Beacon action granted by the Shining Style to pull an ally up to 3 spaces and heal yourself and the ally by 1. The higher the dice, the more powerful a result you can get on an action.
Now, part of the problem? Each character has 3 Forms, thus three different sets of dice (and 3 Styles, but that doesn't present any problem). I tried copying something from the basic Savage World sheet linked as an example on the Roll20 wiki entry on building character sheets, but that didn't work very well. So, here's what I want: something that'll let players add as many dice to each different Form as necessary and set them to the right dice sizes (or fixed results for the Zen Form). And then I'd like to create a button which lets them click it to roll all of that Form's dice at once.
Here's the character sheet HTML
And here's the character sheet CSS
The issue with that sheet code is that adding a dice in one column also adds a dice in every other column and deleting a dice deletes a dice from every column. So I'm clearly taking the wrong approach, but I don't know how to do it.