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

[Script] Random Dungeon Generator. Bunch of errors. Clueless.

So. It's been years since I touched JavaScript. I have no idea what needs to be done to fix what I have happening. The !setup command worked and created the proper macros. However, upon execution of the CreateMapLayer macro, the API throws this chunk back at me: ReferenceError: geomorphicTilesTableItems is not defined ReferenceError: geomorphicTilesTableItems is not defined at buildTileArray (apiscript.js:590:12) at geomorph (apiscript.js:525:35) at processMessage (apiscript.js:468:31) at apiscript.js:462:61 at eval (eval at (/home/node/d20-api-server/api.js:146:1), :65:16) at Object.publish (eval at (/home/node/d20-api-server/api.js:146:1), :70:8) at /home/node/d20-api-server/api.js:1510:12 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) How in the hell does this get fixed?
Try restarting the API sandbox 
1513961270
The Aaron
Pro
API Scripter
Which script are you using?  If it’s the one I’m thinking if, you have to create a specifically named Rollable Table with images in it. If that’s the one, verify that you spelled the name correctly. 
Ah that was my bad. I didn't name the table properly. Thank you! 
1513977067
The Aaron
Pro
API Scripter
Cheers!  glad you got it working.