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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Repeat Roll Command

December 28 (11 years ago)
The idea here is to have a command that repeats what follows it, given a specified number of repititions. I'm not sure what the syntax should look like, but it would be something like this, in order to make the roll x times:

/repeat(x) 1d20 + 3

I have variable repititions in mind specifically, so

/repeat(@{char|level}) [[1d20 + 3]]

would repeat the roll a number of times equal to char's level, displaying the results in an appropriate number of results fields(?) in the chat pane (versus in a single result field, per a (charlevel)d20 + 3 roll).

If there's already a way to do this, I humbly apologize. All my searching and experimenting has resulted in nothing.
December 28 (11 years ago)
Lithl
Pro
Sheet Author
API Scripter

This is currently doable with the API, available in any campaign created by a Mentor-level subscriber. For example, my Roll Repeater script.

Syntax: !rr text

Any inline rolls in text which are immediately followed by {number} will be repeated number times.

(My script doesn't currently work with rollable tables, however.)
December 30 (11 years ago)
Right on. I doubt I can convince any of my DMs to subscribe, but it's worth a shot.

Thanks for the reply!
December 31 (11 years ago)
Gauss
Forum Champion
Michael, you could also gift your DM a membership. https://app.roll20.net/gift