sendChat("Riley", "/roll 1d20+4", function(ops) {
// ops will be an ARRAY of command results.
var rollresult = ops[0];
//Now do something with rollresult, just like you would during a chat:message event...
});
Is there not some easy syntax that will allow the array of results to be automatically printed to the chat window, just as it would have been if the overload callback function had not been specified? They could not have left something like that out... I just want it to dump the results, as normal, to the chat window at the end of my callback. Or, to put it another way: instead of a callback to intercept the results INSTEAD OF the chat window, can't we intercept results AND log to the chat window?