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

{HELP} Custom character sheet with whisper toggle

Hey all, I've been working on a character sheet for a home brew Elder Scrolls system I've been working on. I don't know much about working with HTML or CSS but I've been slowly ripping apart and rebuilding other sheets to learn some basics so that I can create my own that works for my purposes. Currently I have a usable sheet but there's one feature I'd love to include to make things easier for my players. I'd like to include a whisper toggle for all the rolls on the sheet (like the 5th Edition OGL by Roll20 has) but I can't figure out how the toggle works or how to add it or something similar to my sheet. Any ideas or advice would be greatly appreciated cause I've been stuck in a rut and can't find any info. Thank you in advance for any assistance.
1532246818
GiGs
Pro
Sheet Author
API Scripter
There are two methods I can think of that might be in use, and a third very simple approach you could try: The harder version for you is probably to look at the CSS Wizardry wiki page, and look for how to switch elements. So you'd have two sets of buttons, one with the whisper, one without, and a toggle would switch one is displayed to the player. The other would be hidden. Second would be to have the button value be constructed in a way to include "/w GM " at the start when a toggle is set. This works best when you're using a roll template.  A final brute force approach would simply to have two buttons next to each skill or ability - one for public rolls, one for whispered rolls, and you dont need to do anything fancy to achieve it.
Thank you for the reply, I meant that I don't know how to even enable a whisper roll from the character sheet. For example - <span class="sheet-table-row-name"><button class="sheet-text-button" title="STR-Check" type="roll" name="roll_STR-Check" value="&{template:default} {{name=@{character_name}'s Strength check}} {{check=[[@{STR} - 1d100]]}}">STR</button></span> this is my STR check roll, how would I edit this to turn it into a gmroll? I feel like I've missed something super basic and obvious.
Oh for the love of god, I'm a moron. Thank you for your help I figured it out
1532249268
GiGs
Pro
Sheet Author
API Scripter
hehe, no problem.