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 .
×
Create a free account

Can not get Monster Import D&D 3.5 API script to work

Hi I have a problem with this script called&nbsp; "[Script] Monsters - Automatically import SRD/Monster Manual entries, generate ability macros, and more!" Link:&nbsp; <a href="https://app.roll20.net/forum/post/1761348/script-m" rel="nofollow">https://app.roll20.net/forum/post/1761348/script-m</a>... I love the idea behind Monster Import API script, but I do not get it to work. Did send a message to the developer some weeks ago, but I did not get a reply. I hope some of you can help me out. I copy paste the code, use monster.txt for correct formatting, but when I try !monster import the API script crashes and generates a long error code. I have done that in one adventure, and created another blank one just to check, but the result is the same. Just to check, I do the following: Step 1: Copy paste code in API script and call it monster.js Step 2: Create a handout called: "Monster Import" Step 3: Copy paste a monster (I use monster from your monster.txt file) into GM notes ( I have also tried just description field, and tried to have info in both) Step 4:Use commande !monster import Last line in chat window is: Processing 1 lines of text... Then nothing happens, !monster commands do not work. When I go into API script it says that script was disabled because of error, and this is the error: /home/symbly/www/d20-api-server/node_modules/firebase/lib/firebase-node.js:1 orts, require, module, __filename, __dirname) { function g(a){throw a;}var j=v ^ TypeError: Object has no method 'capitalizeFirstLetter' at evalmachine.:84:48 at eval ( I would really appreciate if somebody can help me get this to work. It will save me a lot of time when creating monsters :)
1453983326
The Aaron
Pro
API Scripter
You need to install his common.js file as well: &nbsp; <a href="https://github.com/defamai/Roll20/blob/master/comm" rel="nofollow">https://github.com/defamai/Roll20/blob/master/comm</a>... It just goes in as another script in the API. There may be other dependencies, but as you get errors in the API you can either paste them here and I'll try to find the scripts or you can look through his repo for them. =D
Thank you that (and copy pasting into notepad to remove formatting) helped. Now it works, okish :) The HP for monsters is not correct, but I will look into the script and see if I can learn it and see what I can do. Will ask more questions if I can not get it to work :)
1454258155
The Aaron
Pro
API Scripter
Great! &nbsp;Happy Rolling!