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 .
×

[CHARACTER SHEET HELP]

1496952256

Edited 1496953057
Hi all, first time post. I think everything is within guidelines but let me know if there is anything out of order I should rectify. Context I'm making myself a Riddle of Steel character sheet. My knowledge of both HTML and CSS are basically garbage but with these forums and the wiki pages, I've manage to cobble together a few functional and not-altogether-hideous pages. Currently in the project, I am working on a set of buttons at the top of the character sheet that will whisper popular rolls to the characters. For pages with a static set attributes (like core stats), this has been relatively simple. My code looks like this (guts truncated beyond what's necessary to convey the point): <button type="roll" name="attr_BOBattributes"            value="/w @{character_name} [STRENGTH](~STtest) [AGILITY](~AGtest)..."> Attributes </button> Yay! There is now a big button labelled "Attributes" at the top of my character sheets. Pretty pink buttons get whispered to the whomever controls the character. Those buttons roll the indicated tests. The Issue I have repeating sections for which I would like the handy dandy whisper button option. Each of the skills in that section has a roll button. How do I include newly created skills in this button whisper? As I see it I have two options: 1) I could scrap the repeating aspect and make a master skill list that will 70% unused by each character as well as displaying a variety of buttons they will never click. Easy, even for my skill set. Just kind of a letdown, not to mention tedious, since I will need to duplicate and tweak the entry I have some 50 times, instead of letting the players fill in their own 5-10. 2) I feel like there is a sheet worker script solution to this problem, but as I said, I've got no real skills in this department and would love--if a sheet worker script will do it--someone to explain it to me as though I am a small child.
1496952661
The Aaron
Roll20 Production Team
API Scripter
(Moved to Character Sheets & Compendium forum)
Thanks and Sorry!
Really, all you have to do is add "/w gm" in the beginning of the value.  If you want to let the sheet use to pick who they are whispering, you can use an input field (call it, say attr_whisper_who) and put "/w @{whisper_who}" in the value of the button. If you want to change the color, shape, font, or other style of the button, that is a css issue.  Some what more complicated, but fun to do.   Anything more, and I'll have to see the code to make any calls.
I am looking at this daunting task now for my custom sheet as well. Collecting repeating attacks, special abilities, spells, and equipment to make ability command buttons stumps me. Generic example sheetworker code would be wonderful. I have tried to suss things out by looking at other sheets, but it is very cryptic. Even an overview/description of the process/approach to do this would be helpful, and then I can try to break that down into javascript code piece by piece.
1497025888

Edited 1497026377
The whispering aspect I've got down. All Big Ol Buttons (BOB) are prefaced "/w @{character_name}," so it only ever goes to the player that clicked it on the sheet and I don't get spammed while they review their quick options. Example: <button name="roll_BOBattributes" type="roll" value="/w @{character_name} &{template:default} {{name=Attributes}} {{Temporal Attributes=[Strength @{ST}](~STtest) [Agility @{AG}](~AGtest) [Toughness @{TO}](~TOtest) [Endurance @{EN}](~ENtest) [Health @{HT}](~HTtest) }} {{Mental Attributes=[Willpower @{WP}](~WPtest) [Wit @{Wit}](~Wittest) [Mental Aptitude @{MA}](~MAtest) [Social @{Soc}](~Soctest) [Perception @{Per}](~Pertest)}} {{@{SA1}=@{SA1desc} **@{SA1mod}**}} {{@{SA2}=@{SA2desc} **@{SA2mod}**}} {{@{SA3}=@{SA3desc} **@{SA3mod}**}} {{@{SA4}=@{SA4desc} **@{SA4mod}**}} {{@{SA5}=@{SA5desc} **@{SA5mod}** }}"> Attributes </button> The above button shows at the top of the character sheet and, when clicked, whispers a pretty rookie-sleek display of all their Attributes with their values displayed as buttons which will make rolls using said Attributes and values. It even lists a series of potential contextual modifiers at the bottom. The basics of the button I think I have down for a static set of fields--that is, the number of potential attributes never changes. Essentially, the above is just copied and filled with available info for those pages. I guess I should clarify my question: how do I format my character sheet ability commands to include abilities that are newly generated from a repeating section. For example: <fieldset class="repeating_maneuvers"> <button type="roll" name="roll_Mantest" value="RollFormula"></button> <input type="text" name="attr_ManName"/> </fieldset> I want to create a master button command as in the previous example for these sections as well. But since none of the buttons actually exist at the time of html input, I am unsure of how to do that. Does that make more sense?