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

Selecting multiple radio buttons with a button

So...I am working on a project that invovles a character shifting into other forms that change their form in predictable ways, adjusting multiple stats. I figured if I can make a couple groups of radio buttons for each stat, with each column of radio buttons match a particular form. Later- and this is where I am asking for the magic- a button would be down at the bottom of each column. Clicking that button would select all the radio buttons in that column. For example, if I had the forms of "Cute & Fast & Fluffy", "Ugly & Quick & Scaly" and "Horrific & Slow & Fuzzy", the radio buttons could go like this: <input type="radio" name="attr_looks" value="Cute"> <input type="radio" name="attr_looks" value="Ugly"> <input type="radio" name="attr_looks" value="Horrific"> <input type="radio" name="attr_speed" value="Fast"> <input type="radio" name="attr_speed" value="Quick"> <input type="radio" name="attr_speed" value="Slow"> <input type="radio" name="attr_cuddle_value" value="Fluffy"> <input type="radio" name="attr_cuddle_value" value="Scaly"> <input type="radio" name="attr_cuddle_value" value="Fuzzy"> ...and then I have a button to select all the first of each group (cute, fast and fluffy), another button to select the second of each group, and so on. Is there any way to do this without slipping into the dreaded API scripts?
1427633007
Lithl
Pro
Sheet Author
API Scripter
John W. said: Is there any way to do this without slipping into the dreaded API scripts? No
1427633257

Edited 1427633287
Coal Powered Puppet
Pro
Sheet Author
Brian said: John W. said: Is there any way to do this without slipping into the dreaded API scripts? No Curse you, Limitations-of-html-&-css! Edit: Ah, well. Thanks for the quick intel.
1427683172
Finderski
Plus
Sheet Author
Compendium Curator
I'm thinking you could do it using CSS to hide/unhide a section of Stats, though. For example, you could set up stats tabbing to reveal a different set of stats. Or, perhaps a set of checkboxes all with the same name so it functions like a radio button. Then if the value=1 hide stat groups 2,3 and unhide stat group 1. Does that make sense?
But the hidden stats would still be used for calculations, which is the important part. I wish there was a way to add to the name of a attribute- change @{fuzzy_strength} into @{scaly_strength}, but that doesn't seem possible, either. I have settled on having four or five different radio buttons, each applying a relevant change. Its not as simple as a single button click, but its easier than doing the math in your head.