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

Easy Experience working then not

1474048289

Edited 1474048773
TypeError: Cannot read property 'get' of undefined TypeError: Cannot read property 'get' of undefined at _.chain.filterObjs.reduce.map._.chain.filterObjs.reduce.map.levelUP (apiscript.js:10864:31) at apiscript.js:10813:21 at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9) at _.chain.filterObjs.reduce.map._.chain.filterObjs.reduce.map.applyXP (apiscript.js:10801:15) at _.chain.filterObjs.reduce.map._.chain.filterObjs.reduce.map.HandleInput (apiscript.js:11030:29) at eval (eval at (/home/node/d20-api-server/api.js:105:34), :65:16) at Object.publish (eval at (/home/node/d20-api-server/api.js:105:34), :70:8) at /home/node/d20-api-server/api.js:1200: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) I'm getting this error after the script working for months I am unsure what happened. I can't remember how to post code since i haven't had to in months. It only happens when I try and use !xp session command.
Never mind now it's working again....
1474049427
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hi Jake, This typically happens when it is a new character and no value has been entered into the sheet's experience field yet. This means that the attribute may exist, but doesn't have a value to add anything to. Getting some proper error handling code and making my scripts generally more robust is on the docket for my next round of coding. Scott