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

How do I do multiples of the same roll with a flat?

I've been trying to crack this for weeks now, since the system I use makes a lot of the same rolls with the same flat added to each dice, but from as much as I found roll20 doesn't support that, making me have to re-do each roll separately. To give you a simple explanation, if I write this: /roll 2d1+3 The output will be: 1+1+3=5 The output I need is: (1+3)+(1+3)=8 Sadly no way of using the /roll command that I tried so far had any way of incorporating that. The mechanics require for me to see both the (X+Y)+(A+B) and their total sum.
1468929999
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You could do something like: /roll ?{Num dice|0}d1 + [[?{Num dice}*3]]
Scott C. said: You could do something like: /roll ?{Num dice|0}d1 + [[?{Num dice}*3]] If you could also explain how this command works that would be neat. Though I'm not sure if a command this long wouldn't actually be unhelpful.
1468934694

Edited 1468934822
Boom F. said: Scott C. said: You could do something like: /roll ?{Num dice|0}d1 + [[?{Num dice}*3]] If you could also explain how this command works that would be neat. Though I'm not sure if a command this long wouldn't actually be unhelpful. Basically if you type that (or make a macro). It will ask you the number of dice. if you enter 2 the result will be  2d1+ (2*3), and 3 will be 3d1 + (3*3). But then again you could also type /roll 2d1 + 2*3
1468934905
Ziechael
Forum Champion
Sheet Author
API Scripter
If you could supply a little more information regarding the specific mechanics of the system, and the system name as well, we may be able to make some much more useful suggestions for you :) Roll20 is system agnostic so there are few things that can't be supported by the dice engine and some fancy maths.
1468941816
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Josh said: Boom F. said: Scott C. said: You could do something like: /roll ?{Num dice|0}d1 + [[?{Num dice}*3]] If you could also explain how this command works that would be neat. Though I'm not sure if a command this long wouldn't actually be unhelpful. Basically if you type that (or make a macro). It will ask you the number of dice. if you enter 2 the result will be  2d1+ (2*3), and 3 will be 3d1 + (3*3). But then again you could also type /roll 2d1 + 2*3 Yep, I was just throwing out a generic macro that you could modify for whatever your specific use case is. As Ziechael said though, there may be a better way that someone knows of if we know what you're trying to do.
Boom F. said: If you could also explain how this command works that would be neat. Check out: Roll Queries Inline Dice Rolls