
Hi all, I'm trying to write code to interact with the built-in condition action buttons in the Pathfinder Second Edition by Roll20 sheet, though I think the problem I'm running into is about action buttons in general. I can successfully use sendChat() in a script to call roll buttons using ability syntax "%{name|Button}" (e.g. %{Test 1|STR} for a strength roll). The same ability syntax works to call action buttons (in this case " %{Test 1|Wounded} ") when typing to the chat manually or calling a macro with it inside -- but when I try to use sendChat() in a script to call an action button, it fails to find the ability, with the following error message logged to the console: "ERROR: Unable to find ability Wounded for character Test 1" "Error at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:172:1), <anonymous>:519:11) at String.replace (<anonymous>) at d20.textchat.doChatInput (eval at <anonymous> (/home/node/d20-api-server/api.js:172:1), <anonymous>:369:29) at sendChat (/home/node/d20-api-server/api.js:1920:16) at apiscript.js:17:9 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)" {"content":"Test 1|Wounded","playerid":"API","type":"general","who":"Testing"} Is it just not possible to call action buttons by name from the API the same way you can roll buttons, or am I missing something? Appreciate any insight! Here's the details for the Wounded button, if relevant: <button class="condition_button" data-i18n="Wounded" name="act_Wounded" type="action">Wounded</button> TIA!