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

Hey! Question about exploding dice.

Anyone by chance figured out a way to *stop* exploding dice? I'm playing an investigator w/ the sleuth archetype in the pathfinder gaming system. They gain an ability at 1st level "Daring (Ex): At 1st level, a sleuth can spend 1 luck point when he makes an Acrobatics, Climb, Escape Artist,Fly, Ride, or Swim check to roll d6 and add the result to the check. He can choose to add this die after he rolls. If the d6 roll is a natural 6, he rolls another d6 and adds it to the check. He can continue to do this as long as he rolls natural 6s, up to a number of times equal to his Intelligence modifier (minimum 1)."

So essentially, what' i'd like to do is set up a macro of something along the lines of [[1d6!]] at a bare minimum, w/ a stop trigger of @{INT-mod} thrown in for good measure. I have yet to find anywhere on the forums to allow this. Is this doable w/ the coding that's in system for roll20 as of now?

I don't think what you're wanting is possible without API. You know the formula for the exploding dice. You could use the /roll 1d6! command, and it would show you the actual dice, then you could simply disregard any over the requisite number. Probably not the answer you were looking for, and maybe someone will come in with macro wizardry and give you what you want. Good luck!
March 06 (10 years ago)

Edited March 06 (10 years ago)
You could factor out the exploding die to something like "{1d6!, 1d1*6*@{Int}}kl1", which will yield the lower of the exploding die result and 6*Int (i.e. the result of Int dice all coming up 6).

P.S. If your dice are exploding, you're rolling too hard.
interesting, i'll have to try that out. thanks!
Sorry to piggy back off of this, but I have a question about some dice macros. I know about the D#! for exploding dice, the /r xD#dl1 for roll x number of die and drop lowest, but I can't figure out (if it is possible) how to do something where when you roll a die that make 1s (or 2s) read as the minimum number wanted. Example I want to roll 4D8, but I want all 1s (or 2s) to be treated as 2s (or 3s), if possible.
March 09 (10 years ago)
Lithl
Pro
Sheet Author
API Scripter

Night Shade said:

Sorry to piggy back off of this, but I have a question about some dice macros. I know about the D#! for exploding dice, the /r xD#dl1 for roll x number of die and drop lowest, but I can't figure out (if it is possible) how to do something where when you roll a die that make 1s (or 2s) read as the minimum number wanted. Example I want to roll 4D8, but I want all 1s (or 2s) to be treated as 2s (or 3s), if possible.

You have a few options:

  1. Create a rollable table with appropriate weights. For example, for a d8 where 1s become 2s, have a table item for 2 with weight 2, table items for 3-8 with weight 1 each, and no table item for 1. This works regardless of subscription level, but requires a new table for each kind of die/value modification combo.
  2. Use dice grouping and the keep-high modifier for each die rolled. For example, /roll {1d8, 0d0+2}kh1 would produce 2 if you rolled 1 or 2 on the d8, and the appropriate value when you roll 3-8. This works regardless of subscription level and doesn't require the GM to create new tables for new combination of dice size and modifiers, but it gets clunky when you need to roll multiple dice (2d8 would be /roll {1d8, 0d0+2}kh1 + {1d8, 0d0+2}kh1 and so on).
  3. Reduce the size of the dice and add a static modifier. For example, /roll 4d7+4. This has the advantage of being quick and easy, however the probability distribution isn't quite the same. This produces equal distribution in the 2-8 range, rather than 2 having twice the probability of 3-8. On a d8, that's a matter of 14% and bigger dice have a smaller difference, so if that's not an issue, it's an option.
  4. Create or ask someone to create an API script for you. This will achieve exactly what you want with as much simplicity, complexity, and flexibility as you desire, however it does require that the campaign owner have a Mentor subscription.
March 09 (10 years ago)
Pat S.
Forum Champion
Sheet Author
Just wanted to make sure Night Shade is aware that the API is a mentor level feature also. The #2 option is your best bet at your current subscription level Night Shade.

Now back to Lil John's question, I believe on the dev server (mentors level feature) they are working on getting exploding dice to explode once but the rest of your macro would need to API (mentor level) more than likely as you are requesting a trigger event. That is an if then type of statement that the dice roller can not handle but the API can.
Thanks Brian :-) Thatis geat and I think I may just go with option #2. I plan on using them as a house rule feature for healing dice so my group (consisiting of 1 cleric) can get a small benefit in that the damaged healed is a bit better then base-line (just a straight roll).

Roger that Pat, I have seen some talk about the API and what they can do, but I am not a mentor level subscriber. I have always been a supporter since I joined and really love this way of playing. The transmorgophier may get me to go over to the dark side (hehehe just kidding). Kidding aside, I really like that feature as a means to set up my games/modules and then port what I need into newer ones as I need them (kind of hard when I have 8 different games set up and have to try and re-create whatthe group knows when I take them from one game to another).
Hmm. Thanks for all the information people. I've learned a lot more about coding in the past couple of days than I ever intended to. The original code that manveti gave me...well I can't say that it works exactly as intended, but i can say that it doesn't not work? The character that I need it for would in theory have a max roll of 30 (exploding 6 sided dice to a maximum currently of 5). I rolled the macro for about 5 minutes yo see if I could get either a 30 or a 31+ but the closest I could get was a 29.