I'm working with an RPG system that doesn't have a pre-built roll20 character sheet. As such, I've been using character journals in order to create macros for the characters in my group. With this system, critical successes act as a straight +5 to a roll in most circumstances (or more in certain situations). So my question is mainly if the macro system can handle this by itself (I did read the useful macro page , but I don't think it can handle what I'm looking for), or if I need to write a custom API script to do this for me. At the moment, if I had to write it in code, it'd look something like the following: function calculate(dieRoll, bonuses, critLevel){ var total = dieRoll + bonuses; if(dieRoll >= critLevel)){ total = total + 5; } return total; }