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

Success as the variable on roll

Hello! I was wondering if there was a way to make a single macro that part in relies on the earlier part of the macro to finish itself. Yah. Might be nasty. So in greater detail it would roll a number of times to create a certain amount of "Success"s in which the next part deals out said number of "Success"s to roll the next part a number of times amounted to the number of "Success"s. So say: /r 3d100<81    where then there is 2 "Success"s and so the next part is the damage of /r 12+2d10 but it needs to be rolled the amount of times the previous rolled "Success" so in this examples case 2, so two rolls of said damage equation. Is this even possible? Did I explain it correctly? Would I need to delve into the API? Or would it be easier to just do it by hand each part at a time? Thanks for any help you give, and have a great day!
1375947681

Edited 1375947772
Gauss
Forum Champion
Hmmm, while you can do some of what you are saying via inline rolls+regular rolls what you really are asking for is a repeat roller.  Conceptual example: /roll 6x(1d20+5) and then it rolls 1d20+5 six times.  At this time we do not have such an option.  How it would apply to your example:  Conceptual example using your example as the basis: /roll [[3d100<81]]x(1d20+5) However, the API may currently be able to do that, I would ask the API guys for help.  - Gauss
Wouldn't /roll [[3d100<81]]d20+5 work?
1375955708

Edited 1375955772
Just tested it and it does work. Only issue is that it does not add the modifier for each success.
1375958950
Gauss
Forum Champion
HoneyBadger, I believe that Schorcht would like the entire roll ((1d20+5) in our example) rolled a number of times equal to the number of successes. Using the current system I cannot think of any way (outside of the API) that this can be done. - Gauss