Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Next
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
Twitch
YouTube
Facebook (EN Publishing)
Facebook (EN World)
Twitter
Instagram
TikTok
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
The
VOIDRUNNER'S CODEX
is coming! Explore new worlds, fight oppressive empires, fend off fearsome aliens, and wield deadly psionics with this comprehensive boxed set expansion for 5E and A5E!
Community
General Tabletop Discussion
*Dungeons & Dragons
MPMB's D&D 5e Character Tools
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="morepurplemorebetter" data-source="post: 7329364" data-attributes="member: 6788192"><p>Reading this, and finding the error, would be much easier if you post it somewhere that uses JavaScript syntax highlighting, like Gist.GitHub.com. That way, you would see that the " on line 59 are causing the issue. You removed the backslashes in front of the quotation marks that indicate feet.</p><p></p><p>You have:</p><p>[code]height : " range from 5 to over 6 feet tall (4'9" + 2d8")",[/code]</p><p></p><p>While it should be:</p><p>[code]height : " range from 5 to over 6 feet tall (4'9\" + 2d8\")",[/code]</p><p></p><p>Because the quotation marks signal the end of a string and when there is a backslash in front of it, they are 'escaped' as it is called, they no longer signal the end of a string.</p><p></p><p>Also, you don't have a closing curly bracket } for the "faerie fire" feature.</p><p></p><p>For making your code more readable and condensed, I suggest removing all the comments (everthing after //) and removing empty lines.</p><p></p><p>Also, you set 'prepared' to true while also setting 'atwill' to true. You can't have both, as 'prepared' adds a checkbox in the first column, while 'atwill' adds the 'At Will' text in the first column. They are mutually exclusive.</p><p></p><p>You don't need a sortname if it is the same as the name.</p><p></p><p>Your regExpSearch can be simplified to just: [code]/moonfolk/i,[/code] as this will match if that one word is in the string. You only need the complex syntax if you want to match more than one word, in any order. One word can't have an order, so you can just do it like this <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>You are using languageProfs wrong. It is a one-dimensional array, not an array with arrays in it. If the language is fixed, just write the name of the language as a string. If the language is a choice, you write a number of how many choices can be used. So you should make it: [code]languageProfs : ["Moonspeak", "Common"], [/code]</p><p></p><p>I fixed your code and put it in <a href="https://gist.github.com/morepurplemorebetter/88c09e0686d0f1702f186503315e26b3" target="_blank">a GitHub Gist here</a>.</p></blockquote><p></p>
[QUOTE="morepurplemorebetter, post: 7329364, member: 6788192"] Reading this, and finding the error, would be much easier if you post it somewhere that uses JavaScript syntax highlighting, like Gist.GitHub.com. That way, you would see that the " on line 59 are causing the issue. You removed the backslashes in front of the quotation marks that indicate feet. You have: [code]height : " range from 5 to over 6 feet tall (4'9" + 2d8")",[/code] While it should be: [code]height : " range from 5 to over 6 feet tall (4'9\" + 2d8\")",[/code] Because the quotation marks signal the end of a string and when there is a backslash in front of it, they are 'escaped' as it is called, they no longer signal the end of a string. Also, you don't have a closing curly bracket } for the "faerie fire" feature. For making your code more readable and condensed, I suggest removing all the comments (everthing after //) and removing empty lines. Also, you set 'prepared' to true while also setting 'atwill' to true. You can't have both, as 'prepared' adds a checkbox in the first column, while 'atwill' adds the 'At Will' text in the first column. They are mutually exclusive. You don't need a sortname if it is the same as the name. Your regExpSearch can be simplified to just: [code]/moonfolk/i,[/code] as this will match if that one word is in the string. You only need the complex syntax if you want to match more than one word, in any order. One word can't have an order, so you can just do it like this :) You are using languageProfs wrong. It is a one-dimensional array, not an array with arrays in it. If the language is fixed, just write the name of the language as a string. If the language is a choice, you write a number of how many choices can be used. So you should make it: [code]languageProfs : ["Moonspeak", "Common"], [/code] I fixed your code and put it in [URL="https://gist.github.com/morepurplemorebetter/88c09e0686d0f1702f186503315e26b3"]a GitHub Gist here[/URL]. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Dungeons & Dragons
MPMB's D&D 5e Character Tools
Top