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 .
×
Create a free account

Degrees of Success for d20 rolls

Hello!  First time posting here :) In short, as the title says, I'm trying to find a way to use the API to output the degree of success against the rolled value on a d20.  The system I'm using has the following success table:  1 = Critical Failure 2-5 = Failure 6-7 = Partial Success 8-14 = Success 15-19 = Impressive Success 20 = Critical success Parital Success and Impressive Success have extra effects, as do the Criticals on either end.  Over the past few days I've looked around a few forums and reddit posts and found a solution using macros and rollable tables from around 5 years ago (I'm not sure if linking to other forums is ok so for now I'll omit the link). The one who posted that solution mentioned that using the API would be easier than the effective but space inefficient way that they proposed. The solution was to use this macro:  &{template:default} {{[[ 1t[[[1d20]]RollResult] ]]}} [[?{modifier|0}]] {{Base Roll $[[0]]}} {{Total Roll $[[0]]+$[[2]] }} Then have the result roll one of 20 tables named "X"RollResult which contained a single item being the degree of success appropriate to the value rolled. I did want d20+modifer = Total Roll, but the $[[X]] method doesn't see those inputs as values and thus couldn't be used for arithmatic. As of this point in the campaign, a Failure and Partial Success can be improved up to a Success if your modifier (Currently can be a max of +8, or -8 for a character who is rolling with a natural 1 being a crit success) would change the total to be between 8-14. Later in the campaign rolls will be able to become Impressive Successes too. If that functionallity along with the descriptions of what happens with the extra effects as mentioned earlier could be added that'd be great. However, this part is optional, I have no experience with the API so if it introduces a lot of complexity I'm happy to forgo it.  The main thing I'm aiming for is just the base roll of the d20, the total value of the roll with modifiers shown and the degree of success as that'd help streamline the most core aspects. Thanks for reading! Frey
1760264011

Edited 1760264204
Andrew R.
Pro
Sheet Author
You need to have a Pro subscription to use Mods (the API)  You can install ScriptCards and do all of that easily, or you can install MetaScriptToolbox to make the Roll20 macros have conditionals, etc.,  I use ScriptCards mostly, for 13th Age monster abilities.
Thanks for the reply, I'll look into it!