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

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

1775192019

Edited 1783620367
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. Includes roll mode controls directly on the card, allowing NPC rolls to be made with Disadvantage, Normal, or Advantage. Includes a Whisper to GM toggle, allowing the stat block, sheet rolls and spell outputs to be whispered to the GM when desired. Includes an Auto Roll Damage button, when toggled on will roll damage as well as attack roll. Includes a Full/Combat mod button. In Full mode all of the NPC information is displayed. In Combat mode the NPC information is streamlined to only include combat related information. 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. Initiative now works with the card's roll mode controls and sends the result to the turn order when using Disadvantage, Normal or Advantage. 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. Skill checks, saving throws and attack rolls can now use the card's built-in Disadvantage, Normal and Advantage roll modes instead of relying only on the character sheet's roll mode. Classic mode is still available for users who prefer the standard Roll20 sheet button behavior. A Whisper to GM toggle has been added to the title bar, allowing the stat block and NPC sheet outputs to be whispered when needed. 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. 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.
1777766958

Edited 1782851319
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.
Changelog v5.1.0 Major Text Sanitization Refactor The CleanText logic has been heavily reworked and the script now sanitizes text more consistently before sending it to chat output or tooltips. This fixes the long-standing issue where certain sheet formatting, line breaks, HTML tags, quotes, commas, and special characters could break ScriptCards parsing or produce messy stat block text. Improved Description Cleanup Trait, action, spell, legendary action, and mythic action descriptions now pass through the improved cleanup process before being displayed. This should make monster descriptions much more reliable, especially for NPCs with complicated action text or copied/imported compendium formatting. Improved Stat Block Styling The NPC name and section headings have been reworked to display more consistently across Windows and Linux. The NPC name is now built directly into the stat block output instead of relying on the ScriptCards title card, which gives the script better control over the final appearance. Cleaned Up Stat Block Layout The internal CSS and table structure have been cleaned up and consolidated. This should make the stat block easier to maintain while preserving the same visual style and without requiring users to delete or recreate their existing template. Fixed PC Token Warning If a player character token is selected by mistake, the warning message now correctly includes the selected token’s name again. Fixed Initiative Skill Handling Initiative is now handled separately from NPC skills so the script no longer tries to look for a nonexistent npc_initiative_base attribute. This should prevent console errors when building the skill button section. Improved Action Display Weapon attack actions no longer display their generated attack text in italics, bringing them back in line with the rest of the stat block text. Improved Spell Component Handling Spell material components now use safer ScriptCards syntax internally. This should help prevent malformed output or parser issues when displaying spell component information. General Code Cleanup Several sections of the script were cleaned up and simplified, including repeated output blocks, stat block info rows, action handling, spell handling, and tooltip construction. These changes are mostly behind-the-scenes but should make the script easier to maintain going forward. This update won't appear to be a big change outwardly, but the bones of the script have been restructured to be more reliable. There were still some action/trait description out there that would randomly break the stat block styling and actually make it unusable, this should now account for all of those cases being fixed. As before, use the *** Quick Copy and Paste Link *** link in the first post to grab the updated version.
1782850740

Edited 1782851284
Changelog v5.2.0 Added a selected-token check to catch tokens that are not linked to a character sheet. Added roll mode buttons to the title bar: D for Disadvantage, N for Normal, A for Advantage and C for Classic sheet rolling. Added custom NPC roll handling for attack rolls, saving throws, skill checks and initiative when using Disadvantage, Normal or Advantage mode. Added turn order support for initiative when using Disadvantage, Normal or Advantage mode. Added a Whisper to GM toggle to the title bar. Added support for whispering the stat block and supported NPC sheet outputs to the GM when Whisper to GM is enabled. Added an archived NPC Stat Block Settings handout to store NPC Stat Block settings data. Do not manually edit this handout. Added persistent NPC Stat Block settings so roll mode and whisper preferences are remembered between uses. Improved spell button display so spell casting and spell description buttons are formatted more cleanly in the spell list. Performed general code cleanup and optimization to support the new title bar controls and custom roll handling.
Changelog v5.3.0 Rebuilt the stat block output as a self-contained custom ScriptCards card instead of using the old statblock template system. Removed the ScriptCards_TemplateMule requirement. NPC Stat Block no longer needs a template mule, statblockv4 template, overridetemplate setting or sc-reloadtemplates. Removed the Classic roll button from the title bar. Changed the D, N and A title bar buttons to use the NPC sheet’s classic roll style instead of the previous custom roll display. Reworked roll construction so supported stat block buttons now build Roll20 sheet-style NPC rolls instead of custom ScriptCards roll cards. Added syncing for wtype and dtype so the NPC sheet roll output follows the stat block’s Whisper to GM and DMG settings. Added the DMG title bar toggle to switch between automatic damage rolling and the sheet’s normal damage prompt behavior. Improved the stat block title area with compact right-side controls and better long-name wrapping. Improved action and trait row spacing for a tighter stat block display. Improved initiative handling so initiative rolls continue to support turn order while using the new sheet-style output. Updated the README for the rewritten no-template-mule version. Performed major code cleanup and layout refactoring to support the new self-contained stat block output and sheet-style roll handling. Apologies for the quick update after an already major update. I realized I could completely mimic the NPC sheet rolling instead of doing what I was doing. If you updated to 5.2.0, replace with this one, forget 5.2.0 ever existed.
Changelog v5.3.1 Fixed a formatting issue with the console buttons being too tall, which was breaking my long NPC formatting that wraps long NPC names under the buttons. Again, sorry for the torrent of updates, but I use Linux full time and forget to check formatting in Windows sometimes.
Changelog v5.4.0 v5.4.0 Redesigned the NPC name/title display. The NPC name now sits on its own line without the control buttons sharing the same space. Long NPC names automatically step down through smaller font sizes before wrapping. This gives short names a larger Monster Manual-style title while still keeping longer names readable and inside the card. Moved the card control buttons to the footer. Whisper, DMG, Disadvantage, Normal, and Advantage controls are now grouped at the bottom of the card. This keeps the title area clean and gives the NPC name room to display properly. Redesigned the action display. Traits, Actions, Bonus Actions, Reactions, Legendary Actions, and Mythic Actions now use a cleaner compact action list instead of the old long text-heavy layout. Action text is no longer packed into mouseover tooltips. Buttons now open or roll the relevant sheet output directly, so action details can be viewed normally in chat, including whispered output when whisper mode is enabled. Added Combat and Full card modes. Full mode shows the complete NPC stat block. Combat mode focuses the main card on combat-useful information while moving the full skill list into a separate Skills button. The selected mode is stored in the NPC Stat Block Settings handout. Added a footer button to switch between Combat and Full mode directly from the card. Added a separate Skills subcard for Combat mode, including Initiative and all NPC skill buttons. Improved card generation speed, especially in Combat mode. Updated the settings handout format to include card mode while preserving existing whisper, advantage, and damage settings. Updated the README with current installation, usage, mode, and troubleshooting information.