I am working on a D5e gunslinger mod that can calculate misfires. I want to roll d20 + wisdom mod + pb and evaluate the d20 and determine if it fails against a misfire number and if it is a critical hit [1d20cs20],then display the result total and formula [[1d20 + wis mod + pb]] of rolls in another sendChat with updated description. I am using the D5e roll20 character sheet. What I am trying to figure out is the current script isn't displaying the critical success (the green or red highlight) without being calculated inline after it has been rolled. Here is what I have so far, I can get the roll result or the critical success, but not both to display in chat. let r1 = '1d20cs>20' ; let misfire = 2 ; sendChat ( msg .who, "&{template:atk} {{mod=" + mod + "}} {{rname=" + rnamet + "}} {{rnamec=" + rnamec + "}} {{r1=[[" + r1 + "]]}} {{" + rolltype + "=1}} {{r2=[[" + r2 + "]]}} {{range=" + range + "}} {{desc=" + desc + "}} ammo=" + ammot + "{{charname=" + charname + "}}" , function ( ops ){ var rollresult1 = ops [ 0 ] . content .inlinerolls [ 0 ] ; var rollresult2 = ops [ 0 ] . content .inlinerolls [ 1 ] ; if ( rollresult <= misfire ) { if ( atk1d20 <= misfire ) { desc += 'Attack1: "' + atk1total + ' !!!MISFIRED!!! \n ' ;}} sendChat ( msg .who, "&{template:atk} {{mod=" + "1" + "}} {{rname=" + rnamet + "}} {{rnamec=" + rnamec + "}} {{r1=[[" + rollresult1 + wismod + pb + "]]}} {{" + rolltype + "=1}} {{r2=[[" + rollresult2 + "]]}} {{range=" + range + "}} {{desc=" + desc + "}} ammo=" + ammot + "{{charname=" + charname + "}}" ) ; } ) ;