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

Rolling XdX dice, X number of times.

I'm doing a naval themed campaign and have cannons and ship weapons that do 2d6, 3d8, 2d10, 4d10, 5d10, and 7d10 damage. I already have a macro for mass attacks but for the life of me cant find macros for rolling XdX, X number of times for mass damage. Is it possible? Even better would be choosing between them then choosing the number of times rolled.
1608115397

Edited 1608115499
Oosh
Sheet Author
API Scripter
You can do this with plain old macros, rather than API (unless you want to get fancy, or have some complicated math). At its simplest: /r (?{Number of weapons hit?|1}*?{Number of damage dice?|1})?{Damage die type?|d4|d6|d8|d10|d12|d20} or you can use a template, and reuse the Query values to make a prettier & more informative output: &{template:default} {{name=Mass Damage Roll}} {{?{Number of weapons hit?|1} weapons hit for ?{Number of damage dice?|1}?{Damage die type?|d4|d6|d8|d10|d12|d20} damage each=[[[[?{Number of weapons hit?}*?{Number of damage dice?}]]?{Damage die type?}]] total damage.}} Is that the kind of thing you're after, or something more complicated? Queries use the first value after the | as the default input... if most weapons use a d6, for example, just switch the d6 to the front of the list in the ?{Damage die type} Query and it'll show up by default, meaning you can just hit enter to skip through the input.
That's perfect, thank you!