The document-level code for version 14.2.1 of MPMB's Character Record Sheet.
Note that this repository only includes the SRD content (v5.1, D&D 5e, 2014) and that these files alone are not enough to create the PDF character sheet.
Important
For D&D 5e (2014).
Get this PDF
Download the paid/extended versions by subscribing to MPMB's Patreon or Pay What You Want on MPMB's website.
Code changes
Changelog
Syntax Changes
- Updated
desc()function to accept table-arrays just like thedescriptionFulldoes for magic items and feats. Also updated the documentation to reflect this change.
Generic Changes
- Made the sheet default to line breaks ("\n") and have
What()convert any carriage return ("\r") into a line break. This is needed because by default Acrobat only uses carriage returns, but rich text formatted fields sometimes use line breaks. - Updated text field editing functions (
AddString,RemoveString,ReplaceString) to be more inclusive in their checks, fixingtoNotesPagenot always being removed when removing a feature. - Updated spell sheet generation to allow multiple
spellcastingBonusattributes to contain the same spell, and each of them to have different first columns.
Bug Fixes
- Fixed backwards compatibility for
Array.prototype.search. - Fixed “[THIS]” in a creature’s description not being replaced with the used name of a creature (thanks Ainavargr for reporting).
- Fixed
ApplyWildshape()throwing errors (MBUG-152, thanks Remph for reporting). - Fixed tab characters being removed after editing a field manually. Adobe Acrobat erroneously does this. I've implemented a way to work around Acrobat's bug. The effect is that any 9 consecutive spaces get replaced with a tab character.
- Fixed rich text formatting accidentally inserting line breaks.
- Improved handling of the first line on the Printer Friendly sheets so that the header (text is 15% bigger) doesn't cause issues with line spacing.
- Fixed
calculateattributes of feats and magic items interfering with rich text formatting and being converted to metric units too aggressively. Now apostrophes and quotation marks are no longer considered to mean inches and feet inside these attributes. - Fixed importing from a pre-v14 colourful sheet not getting the Valuables transferred over.