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

Prompt x rolls?

1624476201

Edited 1624476846
Can I prompt x amount of *separate* rolls (input x (not drop down menu)) and then the macro rolls x separate 1d10 rolls? Example: prompt "how many dice do you roll? (input 2) then macro outputs 2 separate 1d10 rolls, like... [[1d10]] | [[1d10]] Thanks in advance!
There's no way to do that with a macro.  It's possible with an API script (a Pro Subscriber feature).
Okay thanks.  you saved me a lot of time searching. :)
1624488019
timmaugh
Pro
API Scripter
You can do this up to a finite amount... basically whatever you're willing to code into your query. Here is an example that offers die types of d4, d6, d8, d10, d12, d20, and d100, and lets you make individual rolls up to a count of 10: &{template:default} {{name=Individual Rolls}}{{Sides=d?{Sides|4|6|8|10|12|20|100}}} {{Your Rolls=?{How many?|1,[[1d?{Sides}]]|2,[[1d?{Sides}]][[1d?{Sides}]]|3,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]|4,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]|5,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]|6,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]|7,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]|8,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]|9,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]|10,[[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]][[1d?{Sides}]]}}} You can expand that as you like.