Difference between revisions of "Using Custom Character Sheets"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m (Legacy Sheet mention) |
||
Line 28: | Line 28: | ||
[[File:Game Settings Menu Options.jpg|350px|thumbnail|right]] | [[File:Game Settings Menu Options.jpg|350px|thumbnail|right]] | ||
To edit a custom character sheet for an existing game: | To edit a custom character sheet for an existing game: | ||
− | |||
− | |||
− | |||
− | The editor (shown above) has four tabs: '''HTML Layout''', '''CSS Styling''', '''[[Character Sheet Translation|Translation]]''', and '''Preview'''. You copy your html and css code to their respective pages, and if the sheet have translation files, you copy the content of the appropriate language version. If a translation file | + | '''1.''' Go to a Campaign's/Game's [[Game_Management#Game_Details_Page|Details Page]]. |
− | + | ||
− | + | '''2.''' Click the [[Game Management#Settings|Settings]]-button, and select [[Game_Settings_Page|Games Settings]]. | |
− | + | ||
− | + | '''3.''' On the Game settings page, you select '''"Custom"''' from the [[Game_Settings_Page#Character_Sheet_Template|Character Sheet Template]] menu. | |
− | + | ||
− | + | ||
− | + | '''4.''' If you want to use char sheet code that made prior March 2021, check the box for [[Legacy Sanitization]]. If you leave it unchecked, you can use code compatible with the [[Character Sheet Enhancement]] Update. | |
− | + | [[File:Legacy-Sanitization-checkbox.png|thumbnail|550px|center| Check the box if you want to use (older) [[LCS|legacy code]]. ]] | |
− | + | ||
− | + | The editor (shown above) has four tabs: '''HTML Layout''', '''CSS Styling''', '''[[Character Sheet Translation|Translation]]''', and '''Preview'''. You copy your html and css code to their respective pages, and if the sheet have translation files, you copy the content of the appropriate language version. If a translation file isn't provided and the sheet used them, it will show red text and the name of the language tag for each section. | |
− | + | ||
<br> | <br> | ||
==== Preview Panel ==== | ==== Preview Panel ==== | ||
Line 54: | Line 50: | ||
The Preview panel applies all the same security precautions and filtering as the main Roll20 application. Be sure to right-click and Inspect Element if you are seeing strange behavior (e.g. your styles aren't being applied correctly) -- it may be that there is a security filter that is changing the name of a class or something similar. | The Preview panel applies all the same security precautions and filtering as the main Roll20 application. Be sure to right-click and Inspect Element if you are seeing strange behavior (e.g. your styles aren't being applied correctly) -- it may be that there is a security filter that is changing the name of a class or something similar. | ||
− | If you make any changes in the character sheet editor while in the game, you must save your changes and refresh the active Roll20 game. In addition, if the character sheet contains <code><rolltemplate></code>, the code for it will be seen unprocessed in the preview window. It's recommended that roll templates are placed at the end of the sheet's code so they don't obscure the sheet's visuals when using the preview panel. | + | If you make any changes in the character sheet editor while in the game, you must save your changes and refresh the active Roll20 game. In addition, if the character sheet contains <code><rolltemplate></code>, the code for it will be seen unprocessed in the preview window. It's recommended that [[Building_Character_Sheets/Roll_Templates|roll templates]] are placed at the end of the sheet's code so they don't obscure the sheet's visuals when using the preview panel. |
===Editing Sheet Code=== | ===Editing Sheet Code=== |
Revision as of 09:29, 22 April 2021
Character Sheet Development
Getting Started
- Using Custom Sheets
- Building Sheets
(Main Page) - Glossary
- Code Restrictions
- Best Practice
- Common Mistakes
- Tutorials
- Examples, Templates
- Pattern Libraries
- HTML & storing data
- CSS & Styling
General
- Updates & Changelog
- Known Bugs
- Character Sheet Enhancement(CSE)
- Custom Roll Parsing
- Legacy Sheet(LCS)
- Beacon SDK
Reference
- Buttons
- Repeating Sections
- Sheetworkers
- Roll Templates
- sheet.json
- Translation
- Auto-Calc
- Advanced
- All SheetDev Pages
Tools & Tips
Other
This is about a Roll20 feature exclusive to Pro-subscribers (and often to players in a Game created by a Pro-subscriber). If you'd like to use this feature, consider upgrading your account. |
Main Page: Building Character Sheets
Contents |
Using Custom Character Sheets
There are two methods of using Custom Character Sheets, The "The Sheet Editor", and the "Sheet Sandbox".
The former is accessed and used in campaign where the character sheet option have been set to "Custom" in the Game Settings page, and the latter is a tool used for character sheet development, where you upload your code as files. Either one can only be accessed by the Creator of the game.
Find Code
The sourcecode to all community-created Roll20 sheets can be found on Github. The code for each sheet are organized in folders, and each sheet consists of a .html
-file, a .css
-file, and possibly a translation.json
file located in the root folder for the sheet. There are also other files there, but those are optional files used for sheet development, and not needed when using custom sheets in a game.
To get the code:
- download the files and copy the code from the files when you paste them to the correct sections in the Sheet Editor,
- or navigate to the individual file's page on github, and press on the "show raw" button, and press
ctrl+A
to select all the code,ctrl+C
to copy, and then select the Sheet Editor andctrl+V
to paste the code.
The latest code for Official Roll20 sheets (those with a by Roll20) in their name in the "character sheet template"-dropdown aren't unfortunately public, but for some of them, an older version can be found on in the github repository(March 2020), such as:
- D&D 5E by Roll20 - Template:Github
- PF2E Template:Github
- Pathfinder by Roll20 - Template:Github
- Starfinder by Roll20 Template:Github
Newer Official sheets, such as Burn Bryte, don't have any public code available for the sheet, but does have for the much older Template:Github.
The Sheet Editor
Main Article: Sheet Editor
To edit a custom character sheet for an existing game:
1. Go to a Campaign's/Game's Details Page.
2. Click the Settings-button, and select Games Settings.
3. On the Game settings page, you select "Custom" from the Character Sheet Template menu.
4. If you want to use char sheet code that made prior March 2021, check the box for Legacy Sanitization. If you leave it unchecked, you can use code compatible with the Character Sheet Enhancement Update.
The editor (shown above) has four tabs: HTML Layout, CSS Styling, Translation, and Preview. You copy your html and css code to their respective pages, and if the sheet have translation files, you copy the content of the appropriate language version. If a translation file isn't provided and the sheet used them, it will show red text and the name of the language tag for each section.
Preview Panel
Warning: The preview panel does not have all the behavior of an actual roll20 instance. Sheet worker scripts and other JavaScript based features (including repeating sections) will not work correctly in the Preview. |
The preview panel updates in real-time whenever you change the HTML
, CSS
or "Translation" of your sheet, to show you an approximation of what sheet would look like in-game. It's useful for quickly checking superficial change while you're editing, but to be sure of the actual end-result, you need to enter the game and open the sheet itself.
The Preview panel applies all the same security precautions and filtering as the main Roll20 application. Be sure to right-click and Inspect Element if you are seeing strange behavior (e.g. your styles aren't being applied correctly) -- it may be that there is a security filter that is changing the name of a class or something similar.
If you make any changes in the character sheet editor while in the game, you must save your changes and refresh the active Roll20 game. In addition, if the character sheet contains <rolltemplate>
, the code for it will be seen unprocessed in the preview window. It's recommended that roll templates are placed at the end of the sheet's code so they don't obscure the sheet's visuals when using the preview panel.
Editing Sheet Code
Building Character Sheets is the central page detailing how the Roll20 Character sheet code works, what components it consists of, examples and so forth. The page links to every relevant page.
The Community Wiki articles on Building Character Sheets is specifically more comprehensive than the version available on the Help Center. Andreas J. (talk) 19:54, 10 March 2021 (UTC)
When testing sheet code, it's smart to use the Sheet Sandbox, instead of the normal Sheet Editor, as it's designed for streamlining testing and is overall quicker to use. Sheet Sandbox test games doesn't allow inviting other people
See Also
- Character Sheets - general info
- Game Management
- Building Character Sheets - coding
- Pro-subscription