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

Inline rolls with modifiers

1658418888

Edited 1658418966
So lets say I have monster that can have different HD amount but its other stats don't change that much. To make sense here is what I currently have: 4d10+4+((1d2-1)*(1d10+1))+((1d2-1)*(1d10+1)). To break this down: 4d10+4 is it's minimum HD (4 HD) but some of those creatures are older and tougher but not that strong to make new NPC sheet. (1d2-1)*(1d10+1) is another HD added to above mentioned formula. This particular creature is in range of 4-6 HD. So technically it could be from range of 4d10+4 to 6d10+6. I noticed I can use inline rolls and decided to use them. My current iteration is [[1d3+3]]d10+1 which doesn't work because it does not affect the +1 modifier. When I use [[1d3+3]](d10+1) the d10s are ignored and the outcome becomes (1d3+3)*1. Help would be apricated.
1658419494
David M.
Pro
API Scripter
Have you tried nesting the inline rolls? You'll lose some of the detail in the tooltip, but I think this should work: [[  [[4d10+4]] + [[1d2-1]]*[[1d10+1]] + [[1d2-1]]*[[1d10+1]] ]]
1658419576

Edited 1658419844
That will work without inline rolls. I'm just trying to make it simpler. The formula 4d10+4+((1d2-1)*(1d10+1))+((1d2-1)*(1d10+1)) works. I'm just trying to make it shorter. The logic is to roll multiple d10+1 rolls. But 6(d10+1) will roll d10+1 once and multiply it which is not the solution. [[1d3+3]d10+1 looks clean, but it doesn't work on modifier.
One way to handle a X lots of d10 + 1 is to replace it with d11r1. Effectively the +1 is wrapped up into the roll. A d11r1 has an output range of 2 to 11; the same as d10 + 1. But you can just roll as many as needed without extra shenanigans to handle the modifier. Ultimately your formula can become: [[1d3+3]]d11r1
1658420467

Edited 1658422171
Just looked into d11r1 and it seems to work. Since it drops 1s and not adds them. Thank You! On that note is there a way to ignore 1s in chat? It just hurts my eyes at this point.
1658466193

Edited 1658466290
GiGs
Pro
Sheet Author
API Scripter
RainbowEncoder said: One way to handle a X lots of d10 + 1 is to replace it with d11r1. Effectively the +1 is wrapped up into the roll. A d11r1 has an output range of 2 to 11; the same as d10 + 1. But you can just roll as many as needed without extra shenanigans to handle the modifier. Ultimately your formula can become: [[1d3+3]]d11r1 That's a technique that should go in the Useful Tricks threads. It's not as useful to people who use 3D dice, but is probably useful to everyoone else who needs to make variable number of dice rolls. Considering how often people ask for this, it's pretty generally useful (along with your other post for counting successes on a group roll).