what if I have things in another script tab, can I send a command to call it like I would if I was typing it, like I saw you used sendChat("API" so I tried that with my message and it did not send it through, like I am currently in the !aoe script but I want to send a function to the !attack script I am trying to do it by
var attackmessage = "!attack " + targetid + " " + sourceid + "AC 1d12 @{tohit} @{damage} 12 0";
var testname = selected.get('name')
sendChat("API", attackmessage);
but in chat I just get
!attack -JAyYgq1cQj3C6llfbGk-JAzE-XiFoCzmwTXiy_c AC 1d12 tohit damage 12 0
so it is just typing it out in the chat window instead of the !attack api picking it up as it would if that command was written out in a macro, even if I copy and paste that line back into the chat window it will trigger the other api script.