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

[Help] What am I missing?

1416709035
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
var rollabletable = findObjs({ _type: "rollabletable", name: tableName}); if (rollabletable.length == 0) { createObj("rollabletable", {name: tableName}); rollabletable = findObjs({ _type: "rollabletable", name: tableName}); } var rollabletableID = rollabletable[0].get("_id"); If that is followed by: log(rollabletableID) return I get the ID as expect... If I try to do anything else with the ID... TypeError: Cannot call method 'get' of undefined at evalmachine. :426:45 at Function._.each._.forEach (/home/symbly/www/d20-api-server/sandcastle/node_modules/underscore/underscore.js:81:22) at checkOrGetTableData (evalmachine. :424:7) at setupDungeonGenerator (evalmachine. :384:34) at Sandbox. (evalmachine. :312:40) at eval ( What the heck am I missing here?
1416711194
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Downstream error. Found it...