Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf 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 Nest
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, OSR, & D&D Variants
*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!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
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, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
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="grungydan" data-source="post: 6900010" data-attributes="member: 6786107"><p>So this thing is awesome! One thing I'm running into with a new character I'm making is that the sheet doesn't include the DMG Firearms by default. </p><p></p><p></p><p>I looked at the FAQ for adding content/scripts, grabbed the Weapons homebrew file, and went to town trying to add them myself. Unfortunately, I'm good at interpreting and using existing javascript but I don't "know" JS, so when I run into problems it's easy for me to get stumped, and stumped I am. </p><p></p><p></p><p>I initially tried to add all of the firearms in one script: </p><p></p><p><a href="https://www.dropbox.com/s/cenodcokub2t16g/Add%20Fireams.js?dl=0" target="_blank">https://www.dropbox.com/s/cenodcokub2t16g/Add Fireams.js?dl=0</a></p><p></p><p></p><p>That throws "TypeError: WeaponsList.DropDownList is undefined"</p><p></p><p></p><p>So I tried just to add the Laser Pistol by itself, just replacing "leattack" in the weapons homebrew script, and it throws the same error. </p><p></p><p></p><p><a href="https://www.dropbox.com/s/oy3m5kwsrmk01j8/AddLaserPistol.js?dl=0" target="_blank">https://www.dropbox.com/s/oy3m5kwsrmk01j8/AddLaserPistol.js?dl=0</a></p><p></p><p>Can anyone that actually understands JS please help me out here? Or if I'm reinventing the wheel, could someone toss me a link to a script that adds the firearms? I didn't see anything that adds them in the fan scripts section of the dropbox. </p><p></p><p>THANKS!</p><p></p><p>ETA: Woah! Oddly enough, even after throwing the error, if I manually type one of the firearms I added via script to the sheet, it populates correctly! Woot! However, the dropdown still isn't being updated to include the added weapons.</p><p></p><p>ETAETA: Okay, so even though it lets me enter the newly added weapons manually, the script from my first link there seems to "kill" the drop down functionality. Hmmm?</p></blockquote><p></p>
[QUOTE="grungydan, post: 6900010, member: 6786107"] So this thing is awesome! One thing I'm running into with a new character I'm making is that the sheet doesn't include the DMG Firearms by default. I looked at the FAQ for adding content/scripts, grabbed the Weapons homebrew file, and went to town trying to add them myself. Unfortunately, I'm good at interpreting and using existing javascript but I don't "know" JS, so when I run into problems it's easy for me to get stumped, and stumped I am. I initially tried to add all of the firearms in one script: [URL]https://www.dropbox.com/s/cenodcokub2t16g/Add%20Fireams.js?dl=0[/URL] That throws "TypeError: WeaponsList.DropDownList is undefined" So I tried just to add the Laser Pistol by itself, just replacing "leattack" in the weapons homebrew script, and it throws the same error. [URL]https://www.dropbox.com/s/oy3m5kwsrmk01j8/AddLaserPistol.js?dl=0[/URL] Can anyone that actually understands JS please help me out here? Or if I'm reinventing the wheel, could someone toss me a link to a script that adds the firearms? I didn't see anything that adds them in the fan scripts section of the dropbox. THANKS! ETA: Woah! Oddly enough, even after throwing the error, if I manually type one of the firearms I added via script to the sheet, it populates correctly! Woot! However, the dropdown still isn't being updated to include the added weapons. ETAETA: Okay, so even though it lets me enter the newly added weapons manually, the script from my first link there seems to "kill" the drop down functionality. Hmmm? [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Dungeons & Dragons
MPMB's D&D 5e Character Tools
Top