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

[Script] Glossary: in-context 5.5e rules definitions, drawn from your game's chat

1796059769

Edited 1796061444
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Glossary Glossary is a Mod script for D&amp;D 2024 (5.5e) games. It watches chat for rules terms such as Prone, Grappled, Difficult Terrain, Opportunity Attack or Topple , and keeps a short list of the ones that just came up. Anyone at the table can open that list and get the definition whispered to them, without leaving the game or digging through the Compendium. It isn't in the One Click library yet. I'd like some people to try it in real games first. I'm also concerned about including a large chunk of the SRD in the repo. [ Code ] How players use it Type !gloss , or create a Glossary macro to deliver the command from the macro bar. You get a whispered list of the latest terms that appeared in messages you could see, newest first. Hover a term for its first sentence, or click it for the full definition. References to other entries inside a definition are links too, so you can follow Prone → Opportunity Attack → Reaction without typing anything. There's also an A–Z list of every term, and a Find button that searches by name. What it watches Everything in chat: players, other scripts, and character sheet roll templates, including spell and attack cards. It only reads visible text, so button addresses and roll formulas don't count. By default a term has to start with a capital letter, the way the 2024 rules write them. That keeps "prone to anger" from showing up. This is a configurable setting. Whispers stay private. A term from a whisper only appears in the menus of the people who could see that whisper, and the GM sees everything. Sage Advice Where a ruling in the Sage Advice Compendium clarifies a rule, the definition card ends with a short Sage Advice note that links to that ruling on D&amp;D Beyond. Roll20 will ask before opening the outside site. I'll likely update this part as time goes on and new clarifications are posted The Glossary handout On first run the script creates a GM-only handout called "Glossary". It holds the Rules Glossary from the System Reference Document 5.2.1, plus the weapon properties and weapon masteries. Each term is a Heading 3 followed by a short on/off line, so you can: switch a term off if it shows up too often add other forms to detect (grapple, grappling) rewrite a definition add your own homebrew entries The script picks up edits on its own. If it finds something it can't read, it tells the GM what and where. Because every term has its own heading, you can drag one onto the map as a pin. For example, put the Breaking Objects rules next to the heavy door the party is about to batter down. For the GM The gear in the menu's title bar opens a configuration menu with: the recent hits, each with a button to turn that term off, in case you never need to see it a list of the terms you've changed, with buttons to switch them back or reset them whether players can use the script at all, and whether they can share definitions to chat how long the lists are a button to rebuild the handout from the default text The ? opens the help handout. If Condefinition is installed, the menu also gets a Conditions button that runs its report on the selected tokens. This script deliberately uses much of the Condefinition styling. Installing Open your game's Mod (API) Scripts page and click New Script. Paste in the script from [link] , name it Glossary.js, and save. The handouts are created on the first run. There are no dependencies-- Condefinition script is is optional. What I'd like to hear Terms that show up when they shouldn't, or don't show up when they should, especially from 2024 sheet attack and spell cards. Anything that looks wrong in a narrow chat panel. Anything confusing in the menus or the help handout. This work includes material from the System Reference Document 5.2.1 ("SRD 5.2.1") by Wizards of the Coast LLC, available at <a href="https://www.dndbeyond.com/srd" rel="nofollow">https://www.dndbeyond.com/srd</a> . The SRD 5.2.1 is licensed under the Creative Commons Attribution 4.0 International License, available at <a href="https://creativecommons.org/licenses/by/4.0/legalcode" rel="nofollow">https://creativecommons.org/licenses/by/4.0/legalcode</a> . A version of this script also appears on my Patreon page.
1796061396
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
reserved
Keith, I will definitely try this out as I find the compendium search a slow process. Not playing until next Monday but prepping during the week so will feed back anything that stands out.
Keith, On first use this is working really well. I've set up a macro bar and when clicking the glossary appears in chat instantly. I then clicked on incapacitated and the information for this appeared in the chat instantly. As a comparison I did a compendium search for incapacitated and the time taken to type into the search bar, get to the rules definition page and scroll down to find incapacitated took 28 seconds. On this basis the script is already a winner for me.
1796241512
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This makes me happy. :)
Hi Keith. I'm using Condefinition API with your glossary API and not sure I'm getting the correct result. I applied a "paralyzed" condition to a token using Condefinition and then typed !gloss and then clicked the "Conditions" report button and it only shows the token name. Using 2024 beacon sheets for the token. The picture below shows the result.
1796427756
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hmm. I'll do some checking on that. All that button does is send the report function from condefinition: !condef-report it really doesn't have any interaction other than knowing the command name. My suspicion is that the report function is not properly reading the config data, and therefore it's a bug with Condefinition. If you were to uninstall Glossary, Condef would still be bolluxing up that report. If you'd like to DM me a GM join link, I can take a look at this tomorrow and see what's going on.