Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
May your rolls be merry + bright! 🎄
Create a free account

Crit roll bonuses in macros

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; }
1566794548
GiGs
Pro
Sheet Author
API Scripter
There's no way to do this with standard macros. You can set the critical on a die with /roll 1d20cs>18, and it will show the die as green when a critical shows, so you can add it manually. If your system rolls a single die, or a fixed never changing number of dice, you could make a rollabletable with the proper distribution and add the 5 to the results that would be a crit (but if your crit range changes, you'd need a different table for each possible roll - rollabletables suck for rpg purposes).  You could do it with an API script, but you need to be a Pro subscriber to use API scripts.