So, I'm looking at using sendChat to parse some rolls. Is it possible to use the values returned from sendChat's callback function within the same function? ie. testFunction = function(){
var rollresult;
sendChat('', '/r 2d4+2',function(ops){
rollresult=JSON.parse(ops[0].content).total;
};
log(rollresult);
}