I had a few minutes to spare, see if this is any good. You can change the success number at the top, and also the text string which will trigger the script. It will only trigger when it finds the search term and finds inline rolls with a d6. And the sendChat() line at the end, you probably want to localise to your language - I'm not sure how familiar you are with Javascript, but leave the surrounding ` backticks ` and everything inside ${ variable references } alone, but you can change the rest of the template like "results" "successes" and "sixes", or add more to the output. Oh, and you probably want to shorten the rolling macro to something like &{template:default} {{name=Dådslag}} {{[[?{Antall terninger|2}d6}} on('ready', () => { const successNumber = 4; // success number, equal or greater than const searchTerm = '{{name=Dådslag' // search string to trigger script on('chat:message', (msg) => { let rxContent = new RegExp(`${searchTerm}`,'i'); if (msg.content.match(rxContent) && msg.inlinerolls && msg.inlinerolls.length) { let rollData = msg.inlinerolls; let totalSixes = 0, totalTargetNum = 0; rollData.forEach(roll => { if (roll.expression && roll.expression.match(/\d+d6/)) { roll.results.rolls.forEach(subRoll => { let sixes = 0, targetNum = 0; if (subRoll.results) subRoll.results.forEach(die => { if (die.v >= successNumber) targetNum++; if (die.v === 6) sixes++; }); totalSixes += sixes; totalTargetNum += targetNum; }); } }); sendChat(msg.who,`&{template:default}{{name=Results}}{{=Successes: ${totalTargetNum}<br>Sixes: ${totalSixes}}}`); } }); });