
As per the title. Is there a way from within an API to execute another API?
Meaning from the table top, I run !command, then this API script runs !sub-command.
Meaning from the table top, I run !command, then this API script runs !sub-command.
on("chat:message", function (msg) { if(msg.type != "api") return; var msgTxt = msg.content; if(msgTxt.indexOf("!command") !== -1) { var cWho = findObjs({_type: 'character',name: msg.who}); var GM = false; MakeMacros(cWho, GM); }; });
MakeMacros(character.id, GM)
//Variables var AddAttribute = AddAttribute || {}; var AddAbility = AddAbility || {}; //Main on("chat:message", function (msg) { .....