Hello! I've been using the Extended Expressions script found here: <a href="https://wiki.roll20.net/Script:Extended_Expressio" rel="nofollow">https://wiki.roll20.net/Script:Extended_Expressio</a>... (I don't believe the author visits roll20 anymore -- I've contacted them about a prior issue I had with it before) Mainly, I've been using it for a custom game system I've been running. The primary issue I have (which I have been using the script for) is with the script's ability to store variables. It seems that the script will successfully calculate success rolls (such as 10d20s>10) and give a result when using it's own in-line conversion, but if you save any of the results from a success check, the script will break. !extend `10d20s>10`
The above gives a result. However, storing this in a variable will cause the script to crash if it is pulled in a later expression. !extend `(10d20s>10)[success]` `${success}` Simply pulling the variable causes a crash. The error I get is this: 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: ReferenceError: astToInline is not defined
ReferenceError: astToInline is not defined
at Object.ExExp.sendCommand (apiscript.js:1014:29)
at Object.ExExp.handleExExpMessage [as callback] (apiscript.js:1123:8)
at Object.Shell.handleApiMessage (apiscript.js:318:28)
at Shell.handleChatMessage (apiscript.js:324:8)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:105:34), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:105:34), <anonymous>: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)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) It's worth noting that the expression still works if you don't use it as a variable, and can be used for arithmetic and other functions for the most part, but the moment the data is stored in a variable and pulled to display, it crashes. Any fixes or tips to work around this would be appreciated! I really would like this to work for my custom game.