The document-level code for v14.0.1-beta version of MPMB's Character Record Sheet.
Note that this repository only includes the SRD content (D&D 5e, 2014) and that these files alone are not enough to create the PDF character sheet.
Important
For D&D 5e (2014).
Code changes
Changelog
Content
- Fixed Book of Ancient Secrets Eldritch Invocation – it was not setting the casting time correctly.
- Updated with syntax changes.
Spellcasting
- Made it possible to show all cantrips and select them just like prepared spells when generating the spell sheet for a spellcasting class (by setting
spellcastingKnown.cantripsPrepare: true) and for a spellcaster only gaining spells throughspellcastingBonus(with The new common attributespellcastingPreparedCantrips). - Changed the “(R)” to the registered trademark symbol “®” for denoting ritual spells.
- Changed spell sheet first column captions to only use “Pr” instead of “Me”, so it is more consistent with the 2024 sheets (and the 2014 rules).
- Improved the selection of special checkboxes for the first column of the spell pages. The once per long/short rest graphic is now a checkbox that can be toggled, and a new double-box is available for things that are both usable once(+) times per long/short rest and always prepared. These new double boxes can be added by setting the
firstColproperty to “oncesr+markedbox” or “oncelr+markedbox”. - Made it possible to force an empty first column on the spell sheet pages by setting the
firstColorspellFirstColTitleto an empty string (""). - Improved handling of deprecated, optional
spellcastingBonusattributes. The ones that have since been replaced withfirstCol. - Updated the spell sheet glossary with a reference to the new special checkboxes.
- Added a way to test new SpellsList entries if they work with the most common use of
genericSpellDmgEdit. It takes all variations into account (e.g. metric system, add 1d8 damage, add 1d8 damage only to a single roll, etc.). Use the functiontestSpells (spellKeysArray, useClass)from the console to test it in an empty sheet. - Improved handling of
spellcastingBonusandspellcastingListwhen creating a list of spells (CreateSpellListfunction). Now spells without aclassesattribute are always skipped and settingritual: truewon’t exclude all cantrips. - Fixed issue with
allowUpCasting: falsenot being respected bygenericSpellDmgEdit.
Creatures and Companions
- Added
nameThisattribute to theCreatureListobject which is used by default to replace “[THIS]” in its descriptions. TheCurrentCompRace[prefix].nameThisnow always points to this, if present and the default is selected, or the entered creature name. - Made the
sensesattribute optional forCreatureListobjects. - Fixed Pact of the Chain familiar options not showing “(if DM approves)” correctly in the menu.
Feats
- Improved the
featsAddattribute to be identical to the 2024 version. Now you can also pass an array of options for the player to select from or set thetypeto select from (althoughtypeis unused in current 2014 add-on scripts). - Removed the Printer Friendly sheets deleting the first line break in the description of a feat. This was originally added for backwards compatibility but should be no longer needed.
Speed
- Fixed manual changes to speed not being remembered when the code changes the speed value.
Notes
- Fixed table headers not staying bold after editing a notes field.
Other Changes
- Updated syntax files.