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

Is there a way to calculate cumulative dice rolls?

I'd like to preface this by saying that I may not be explaining it very well, so I'll lay it all out for you. In one of my campaigns (D&D 5e), the players weren't happy with how little fall damage things took. A fall from 200ft could easily be shrugged off. Because of this, we started using the old method of what I've always called "Cumulative Falling Damage". In that for each 10ft you fall, you take an additional x+1 die of damage. So for example, falling 30ft you would roll 6d6 damage (1d6 for the first 10ft, 2d6 for the second 10ft, 3d6 for the third 10ft). A fall of 90ft would be 45d6 (1d6+2d6+3d6+4d6+5d6+6d6+7d6+8d6+9d6) . We're much happier with this method of damage, but as you can imagine it's a pain in the behind to type out every time. Is there an easy way for me to make a macro to calculate this? Something like a query that asks how many feet you fall (or how many 'sets' of dice perhaps, to make it easier), and then rolls the sequence giving the sum as an answer?
The formula for the sum from 1 to n is n*(n+1)/2. Taking into account that you're doing it by 10 instead of by 1, it looks something like: /r ((?{fall distance in feet}*(?{fall distance in feet}+10))/200)d6
That's it! I knew I was missing something. Thanks, manveti.