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 .
×
Why do rogues wear leather armor? Because it’s made of hide. 🥷

Tim's NPC Stat Block Mod v5 (ScriptCards) D&D 5E 2014

1775192019

Edited 1777767370
Hi All, Version 5 of this ScriptCards Mod is here! With this Mod you'll never have to juggle NPC open character sheets again. Just select the NPC token and all their abilities are easily accessible. For other ScriptCards Mods check out my profile. *** Quick Copy and Paste Link *** Features LIst Displays an NPC's Stat Block in chat. Mimics the D&D 2014 Monster Manual NPC stat blocks as closely as possible while still maintaining functionality. Includes all NPC information that would be available in the Monster Manual stat block and has buttons available for all its actions, ability rolls, saving throws, skill checks and spells. If you don't want to click on the description button, to prevent it from showing in chat, you can simply hover over the Name or Description of the Trait, Action or Spell and it will display in a tooltip. What's New? All buttons now look like buttons. Major sections of the D&D 2014 stat block that were overlooked are now part of this Mod. Initiative is now the first button in the skill buttons grid, leaving this out of previous versions was a major oversight on my part. If the NPC has spells available to them, a Spells button will be available at the bottom of the stat block that when clicked will list all spells. Another major oversight. Spells have tooltips associated with them, just like the Traits and Actions, you can use these Tooltips to read the full descriptions without clicking anything and revealing NPC abilities to the chat. Behind the scenes the code has been thoroughly refactored. Conducted a thorough optimization pass to streamline variable handling and reduce overhead. Implemented a new method for cleaning Trait, Action and Spell descriptions, ensuring tooltips render correctly even with complex Markdown and HTML line breaks. For a first hand look at the differences,  here  is the link to the previous version. How to Install Ensure that ScriptCards is installed in your game. Create a new character called ScriptCards_TemplateMule (exactly as written, case sensitive and with the underscore) Copy and Paste the code here , or from the Easy Copy and Paste link above in a new Macro. Call it whatever you like, example NPC-Stat-Block, and paste the code into it. This Mod is designed to be placed in the Game's Macro section, not on individual character sheets. Run the Mod for the first time, making sure an NPC token is selected. The Mod will write the statblockv4 theme to the template mule. All subsequent runs of the mod will now just give you NPC stat blocks
1777766958

Edited 1777767291
Changelog v5.0.1 Added NPC Token Validation The mod now checks that exactly one NPC token is selected before running. If no token is selected, multiple tokens are selected, or the selected token is not an NPC, the mod will now give a clear message instead of trying to build a stat block from the wrong character. Improved Text Cleanup Trait, action, spell, legendary action, and mythic action descriptions now run through better cleanup before being displayed in the stat block or tooltips. This should help prevent certain special characters or sheet formatting from breaking the chat output. Fixed Spell Tooltip Text Spell descriptions and At Higher Levels text are now cleaned before being added to spell tooltips. Spell components also display more cleanly, including spells that only have Somatic or Material components. Fixed Skill Name Formatting Skills with multi-word names, such as Animal Handling and Sleight of Hand, now display correctly in the Skills line instead of showing the raw sheet attribute format. Fixed Proficiency Bonus Display The Proficiency Bonus line will no longer appear when the NPC does not have a usable proficiency bonus value. I had to remove the previous version code from the first post. It won't let me put the new code inside the code block, so use the  *** Quick Copy and Paste Link ***  link here and at the top of the first post to get the latest version.