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

Why Can't I !Spawn in ZeroFrame's !{{ /**/ }} ?

I'm just trying to spawn an enemy, that's it. I keep getting this error: Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again. More info... If this script was installed from the Mod Library, you might find help in the Community API Forum. For reference, the error message generated was: TypeError: Cannot read properties of undefined (reading 'who') TypeError: Cannot read properties of undefined (reading 'who') at handleInput (apiscript.js:6368:43) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1762: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) at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489) at Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:461 Code in question: !{{ !Spawn --name| Enemy --bar1|[[@{selected|bar1}]]/10 --bar2|@(selected.tracker) --bar3|[[@{selected|bar3}]]/11 }} I should note that Enemy 's name as it appears on the sheet isn't the same as it appears on the nameplate under the token.
1698756102
timmaugh
Forum Champion
API Scripter
Hmm... your command works in my game. What other scripts do you have installed, and how are you trying to call this particular command line (entering in chat directly, in an ability or macro directly, or in an ability or macro that is called from another script)? Do you have the 1-click version of ZeroFrame? Based on the error you're getting, we can probably get around it by installing SelectManager and configuring it to give back the "who" of a message object (we'll configure it to give back the playerid, too, since that tends to be more of a necessary backfill for other scripts): !smconfig +who +playerid Install SelectManager (you can get it by installing the MetaScriptToolbox), run that command, then give your batched Spawn command another try. If you're still having an issue, post back. I can jump in your game and see what's going on.