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 .
×
May your rolls be merry + bright! 🎄
Create a free account

TokenMod Rollable Table Issue?

Hi there! Sorry if posting this here is incorrect The use case here is I'm trying to update the current side of a token to a number I specify. The side doesn't update, though I can update the nameplate of the token in the same script. !token-mod {{ --ignore-selected --ids -MRGf3xwP93QBJt1UkaQ --set   currentside|1   name#'Clear Skies' --ignore-selected --ids -MRGf4iT0Oz2VzF_Zk8O --set   currentside|1   name#'No Wind' }} Oddly, the above script doesn't change any token sides, but it will update both tokens to "No Wind". That's fine in this case, as all I really need to fully work is: !token-mod {{ --ignore-selected --ids -MRGf3xwP93QBJt1UkaQ --set   currentside|1   name#'Clear Skies' }} This script looks exactly the same as another script I use to operate a clock handler rollable table token which I made a while ago and that script seems to operate on that other token just fine. That led me to experimenting with my new rollable table token by appending additional images to the table, which led to the below error JSON in Roll20 chat. Any thoughts here? I'm not sure what I'm doing wrong. {"msg":{"content":"!token-mod --set imgsrc|+-MRGme9qbeHl1K6ejQ4j --ids -MRGme9qbeHl1K6ejQ4j","playerid":"-MJN2WmdUl-5XdFgjEfe","type":"api","who":"GM (GM)"},"version":"0.8.63","stack":"TypeError: Cannot read property 'substring' of undefined\n at TrackedObj._validateAttrs (/home/node/d20-api-server/api.js:906:27)\n at TrackedObj.set (/home/node/d20-api-server/api.js:996:18)\n at applyModListToToken (apiscript.js:3188:15)\n at apiscript.js:3567:39\n at Function.each (/home/node/d20-api-server/node_modules/underscore/underscore.js:1310:9)\n at _. [as each] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1829:39)\n at handleInput (apiscript.js:3566:26)\n at eval (eval at (/home/node/d20-api-server/api.js:154:1), :65:16)\n at Object.publish (eval at (/home/node/d20-api-server/api.js:154:1), :70:8)\n at /home/node/d20-api-server/api.js:1662:12","API_Meta":{"TokenMod":{"offset":0,"lineCount":3606,"version":"0.8.63"},"UDLWindows":{"offset":3606,"lineCount":304,"version":"0.1.1"},"UniversalVTTImporter":{"offset":3910,"lineCount":675,"version":"0.1.6"}}}
Never mind, I think it's likely because of this caveat I just read: This only works for images in the User Image library. If your token has images that are stored in the Marketplace Library, they will not be selectable with this command. You can download those images and upload them to your User Image Library to use them with this. The odd thing I my original script works fine on Rollable Tables I bought from the marketplace, but not a rollable table I made from other tokens I bought from the marketplace.