
I'm calling these functions from a case/switch. (Example below) When I do so, the roll20AM scripts work perfectly. The tokenMod ones do nothing at all. Yes, I've wrapped it all in an onReady. The scripts work, unless they are sendChats for tokenMod. ________________________ function ObsDet(toggle){ if(toggle === "on"){ sendChat("SYSTEM","api","!token-mod --ids -NiUuLERR0k00TKbcBUo --set layer|objects"); sendChat("SYSTEM","api","!token-mod --api-as --ids -NiUuLERR0k00TKbcBUo --set layer|objects"); sendChat("SYSTEM","api","!roll20AM --audio,play|OBJ DETECTED"); sendChat("api","api","!roll20AM --audio,play|Beeping"); sendChat("SYSTEM","api","!token-mod --api-as --ids -NiyJkQufZE-vGhsfxOq --set layer|objects"); } if(toggle == "off"){ sendChat( "SYSTEM" "API","!token-mod --ids -NiUuLERR0k00TKbcBUo --set layer|gmlayer"); sendChat( "SYSTEM" "API","!token-mod --ids -NiyJkQufZE-vGhsfxOq --set layer|gmlayer"); } }