rasfenx.blogg.se

Roll20 custom compendium
Roll20 custom compendium









roll20 custom compendium

This can be used as a more convenient way to access rules and descriptions, for example, for a spell, the compendium button can be used to easily view the full description for that spell. The compendium button can be used to open a compendium entry directly from a character sheet, in the same way as if you clicked on an entry in the in-app compendium.

roll20 custom compendium

So you can also create hidden inputs to accept data from the Compendium and then process that data further using Sheet Workers if you want more control over how the data is presented. Note that the process of changing these values will trigger local Sheet Worker and remote API events exactly as if the user themselves had entered the data by hand.

  • You can use accept="data" of you want to receive all attributes from a compendium page in a json format.
  • You can use accept="Content" if you wish to receive the plaintext content from the entry (the content located above the "Attributes" header).
  • For select tags, the option that matches the Compendium value in either the value attribute OR the text inside the option tag will be selected.
  • For input and input tags, the box will be checked/radio selected if the value from the compendium exactly matches the value attribute from the tag.
  • For input and textarea tags, the value from the Compendium will be directly inserted.
  • Consult each individual Compendium for a listing of what Attributes are available.
  • The in accept="" must match the name of an Attribute from the bottom section of the Compendium entry.
  • Here's a simple example which would be compatible with the Fireball entry from the 5th Edition SRD Compendium. Then, add the accept="Attribute Name" attribute to one or more input, select, textarea tags. For Repeating Sections, place this inside of the fieldset tag. To do so, you must add the class compendium-drop-target to the div tag surrounding the section you want to fill in. This allows players to drag-and-drop an entry from the compendium directly into your sheet, and Roll20 will fill in the values you specify. In addition to basic compatibility, you have the option of telling Roll20 how information from the Compendium can be included on your sheet directly. If you are using a Custom sheet, there is a Setting on the Game Settings page that will allow you to manually select a Compendium to use for your game.Įnabling Drag-and-Drop Functionality for Your Sheet For an example, see the D&D 5E by Roll20 sheet.json file on Github. To designate compatibility with a Compendium, just include the Compendium's short name in the "compendium" field of your sheet.json file.
  • 1.1 Enabling Drag-and-Drop Functionality for Your Sheet.
  • 1 Designating Compatibility for Your Sheet.
  • roll20 custom compendium

    By designating that your sheet is compatible with a i Compendium, players will have direct access to that Compendium in the right sidebar during gameplay. The Roll20 Compendium feature is a repository of information such as rules, spells, items, and monsters for select open-license gaming systems.











    Roll20 custom compendium