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

How to macro this complex roll for The One Ring v2 Alpha (TOR)?

I am capable (but not skilled) at building macros, and I am struggling with this one. A typical roll looks like this: 1d12 + 3d6 vs. a Target Number of 15 Where: The total must meet or exceed the TN for success. Rolling a 12 on the d12 gives an automatic success. If the roll is successful, each 6 rolled on the d6s adds a level of success (great success, extraordinary success) I know how to compare the roll total against the TN for overall success, but I am at a loss when it comes to counting the individual d12 and d6 successes or levels of success. Is there a way to do that? Thanks in advance for any guidance! P.S. If you know the system, then you know that a 12 on the d12 is actually a Gandalf rune. I am accounting for this with a table, but I wanted to keep the question here simple. :)
1632706957
GiGs
Pro
Sheet Author
API Scripter
You cant do this roll with a standard roll20 Macro. You need either the a custom API script (which requires a Pro subscription), or (long shot) Rainbow Encoder to work his magic.
1632739065
Oosh
Sheet Author
API Scripter
Is this for a Roll20-submitted character sheet? If this is standard rules and a common enough roll, it could be added to the character sheet via Custom Roll Parsing with reasonably minimal effort. Well... unless there's a whole host of these rolls, that might be a bit more work.
Thanks, y'all. The One Ring v2 is still in it's Alpha release stage. A few community-built character sheets are in development, but we don't have one at this point. I think, for now, we'll stick with visually measuring levels of success. Thanks again for the input!
It's not pretty but this will work (as a /roll command only) /r { {[[1d12]],0}>12, {$[[0]] + ([[?{Normal dice|3}d6cf0>6]]*6) + (?{Normal dice}-$[[1]])d5cs0,0d0}>?{Target|15} }k1>1 * (1+$[[1]]) The first part checks for a nat 12 or if sum reaches target It's then multiplied by the second part; which is 1 plus the number of nat 6's
1632778044
GiGs
Pro
Sheet Author
API Scripter
Oosh said: Is this for a Roll20-submitted character sheet? Since it wasnt the character sheet forum, I never considered that. Yes, to back up Oosh, if you are making a character sheet you can do this. RainbowEncoder said: It's not pretty but this will work (as a /roll command only) /r { {[[1d12]],0}>12, {$[[0]] + ([[?{Normal dice|3}d6cf0>6]]*6) + (?{Normal dice}-$[[1]])d5cs0,0d0}>?{Target|15} }k1>1 * (1+$[[1]]) The first part checks for a nat 12 or if sum reaches target It's then multiplied by the second part; which is 1 plus the number of nat 6's Haha, I knew there'd be a convoluted way.