I'm not sure if this is the right forum to be posting this in but the API in my game keeps crashing when I try to run a macro with ChatSetAttr in it. What's particularly odd is I haven't changed the macro since it was last working so I have no idea why it's started crashing. The error message it puts out on crashing is: Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your scripts and click the "Save Script" button and we'll attempt to start running them again. More info...
For reference, the error message generated was: TypeError: Cannot read property 'current' of undefined
TypeError: Cannot read property 'current' of undefined
at Object.entries.reduce (apiscript.js:837:65)
at Array.reduce (native)
at setCharAttributes (apiscript.js:833:52)
at dWork (apiscript.js:763:6)
at delayedGetAndSetAttributes (apiscript.js:773:4)
at handleInput (apiscript.js:1292:7)
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 I think the only other API the game is running is the OGL companion script but I'm pretty sure that's not used in the macro. Thanks for any help anyone can provide.