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 .
×

How to compare dice against multiple success values at once?

I'm an RPG noob in a campaign using the Cypher System and things like attacks have a miss or hit value, as well as minor and major success on higher rolls. How do I type a command that will sort a given roll into fail, hit, minor success, or major success? e.g. /r 4d20>9 rolls 4, 11, 18, and 20. In the text it would say 3 successes, but I'd like it to clarify that 20's are major successes, and 17-19 are minor successes. How do I do this?
1610336351
GiGs
Pro
Sheet Author
API Scripter
It's not possible to do what you want without an API script, which requires the GM have a Pro subscription (and then to write the script). You can achieve it with a RollableTable, but they dont handle variable modifiers, so you'd need a different rollable table for each possible modifier.
1610340682

Edited 1610340724
Thank you for the response. :) Guess I'll stick to figuring minor and majors out myself.
I've got a similar macro for a Marvel Super Hero game. In that game, there are four possible results from a percentile roll. Fail (White), Success (Green), Improved Success (Yellow), and Critical Success (Red). Depending on how good your ability is, the chance of each of those results changes according to this chart:&nbsp; <a href="https://www.classicmarvelforever.com/cms/assets/files/other_stuff/updated_universal_table.jpg" rel="nofollow">https://www.classicmarvelforever.com/cms/assets/files/other_stuff/updated_universal_table.jpg</a> &amp;{template:default} {{name=AMAZING}} {{WHITE=[01-25](#" style="color:blue;border:2px solid blue;padding:3px)}} {{GREEN=[26-55](#" style="color:green;border:2px solid green;padding:3px)}} {{YELLOW=[56-90](#" style="color:orange;border:2px solid orange;padding:3px)}} {{RED=[91-00](#" style="color:red;border:2px solid red;padding:3px)}} [[[[@{selected|KarmaUsed}+1d100cs&lt;[[55-@{selected|KarmaUsed}]]cf&lt;[[25-@{selected|KarmaUsed}]]cf&gt;[[90-@{selected|KarmaUsed}]]]] - [[@{selected|KarmaUsed}]] ]] {{$[[5]] + $[[4]]=$[[3]]}} The rolls end up looking like this: You don't have to also display the various success ranges like I did, but I find it helpful.
Wow, that's nearly exactly what I was looking for! However, I'm unsure of how to detach the need for it to be for a specific character or token, as when using the Cypher System, it prefers to edit rolls rather than success boundaries. Is there a way to adapt it that way for a d20?
Of course!&nbsp; If you take out the chart stuff, here's the code: &amp;{template:default} [[[[@{selected|MyBonus} + 1d100cs&lt;[[55-@{selected|MyBonus}]]cf&lt;[[25-@{selected|MyBonus}]]cf&gt;[[90-@{selected|MyBonus}]]]] - [[@{selected|MyBonus}]] ]] {{$[[5]] + $[[4]]=$[[3]]}} If you don't have a bonus to worry about... 1d100cs&lt;55cf&lt;25cf&gt;90