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

Click this, disable/enable all of those

I am currently working on a Cthulhutech character sheet.  Some of the characters can transform into bigger, nastier forms, and I am building a tab for that.  Want I want to do is have a single button to apply all the attribute changes (five maximum).  Working just with html and css. Normally, I figure this would be impossible, but using GV's configuration menu trick, you can make various inputs appear and disappear.  And you can tie more than one item (more than one hidden checkbox) to a single visible switch.  Is there a way to do this and have several inputs be switch from one to the other?
1438269617
Finderski
Plus
Sheet Author
Compendium Curator
Just to be clear, you want checkboxes to be checked or unchecked based on the state of a different input box, correct?  Not just hiding/unhiding things?  Unhiding/hiding multiple things with a single input is easy...changing the state may altogether undoable with just html/css. But I don't know...I think you may be treading into the Brian-realm. :)
Yep, I finally figured out yer hide-this tactic.  I think.  So now I am trying to figure out (which may not be possible) how to do shape-shifting; turning off a set of inputs and replace them with a different set.  I can do it with a series of radio buttons; so now I want to try it with just one (visible) radio button/checkbox/digital abacus/thingy.  
1438274662
Kryx
Pro
Sheet Author
API Scripter
I have the same show-hide stuff in my Shaped sheet. Changing values is not possible unless the values are numeric. In some cases I use a toggle of 1 or 0 and multiple the values by that toggle.
So if I am getting this right... Strength, Agility and Toughness (for example) all receive bonuses based on if the person is in tager form or not.  Those stats are calculated by value="@{Strength} + (@{tager_form_Strength_bonus} * @{form switch})".  And the form switch is a radio button with a value of "0" (when set to human form) and to "1") when in tager form. Does that sounds right?
1438313346
Finderski
Plus
Sheet Author
Compendium Curator
Coal Powered Puppet said: So if I am getting this right... Strength, Agility and Toughness (for example) all receive bonuses based on if the person is in tager form or not.  Those stats are calculated by value="@{Strength} + (@{tager_form_Strength_bonus} * @{form switch})".  And the form switch is a radio button with a value of "0" (when set to human form) and to "1") when in tager form. Does that sounds right? Sorry, I was envisioning you wanting something different. 😀  If you just want to add some sort of bonus to multiple ability rolls if a toggle is switched or not, then what Mark is talking is correct.  I think your example gets you there, but here's an example from my sheet: [[{1d@{Unskilled}![Unskilled], 1d@{wilddie}![Wild Die]}kh1 -2[Unskilled Penalty] + {0,@{JackOfAllTrades}}kh1 [Jack of All Trades Modifier] + @{ttmod}[Trait Test Modifier] +(@{UnskilledEncumbrance}*@{encumbrance})[Encumbrance Penalty] - @{woundsMod}[Wounds] - @{fatigue}[Fatigue]]] The bold bit is the relevant piece.  Essentially, I have checkbox called attr_JackOfAllTrades with a value=2. Then if that field is checked it will add 2 to the roll, if it's not checked, it adds 0 to the roll.  So you could do the same sort of thing and apply that field check to the different rolls. I hope this helps.