I was actually able to dig some more and find a solution actually made by you here , thanks! function returns the original message with all the inline roll results, for my specific use cause i only ever use one such inline so i strip everything else off the message. sendChat("Riley", " [[roll 1d20+4]]", function(ops) {
var rollresult = getRollResult(ops[0]);
}); function getRollResult(msg) {
log("Obtaining roll result...")
if(_.has(msg,'inlinerolls')){
msg.content = _.chain(msg.inlinerolls)
.reduce(function(m,v,k){
m['$[['+k+']]']=v.results.total || 0;
return m;
},{})
.reduce(function(m,v,k){
return m.replace(k,v);
},msg.content)
.value();
//removes all non-numerical characters and returns result
return msg.content.replace(/\D/g,'');
}
}