Please refer to the following post instead of this one:
Similar to a roll showing green when the die maximum is rolled, a specifier could be appended to the die roll to show when the total should be shown in green. E.g. !(1d20tr18) would color the total in green if the die rolled 18, 19 or 20.