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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Exploding rollable table

I'm a player of a little known system called Metascape, which uses an interesting die mechanic that I'd like to explore setting up in Roll20.

It works like this: The player rolls either a d6, a d8 or a d10, and they simultaneously roll a special sixteen-sided Doubling Dice. The Doubling Dice has faces marked 1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 8, 8, 16, c, t. We'll assume for the moment that the c and the t are counted as 1s. They have specific in-game effects, but mathematically they're counted as 1s. If my question below can be answered, maybe I'll get into the nuances of what they're all about.

I can set the doubling dice up easily as a rollable table, and have it multiply the result of the regular die using the command /roll 1d6 * 1t[double]. The problem is this: The Doubling Dice explodes on a 16. In other words, you roll it again and continue multiplying the regular dice for as long as you roll 16s. Yes, this means you get some really huge numbers. Your result could be 3 * 16 * 16 * 4 (= 3,072), for example.

Is there a way to make the rollable table explode?
October 21 (9 years ago)
The Aaron
Roll20 Production Team
API Scripter
There is not.

The closest you can get is expanding the table to a depth where you feel comfortable that success just happens, so maybe you pick 16^4 as your deepest roll, so you'd have 1 entry in your table for 65536 with a weight of 1, and then fill out all the rolls below that, with the total weight adding up to 65536.  I'd suggest naming your rows things like:
  • 1 [c]
  • 1 [t]
  • 1 [1]
  • 2 [2]
  • 4 [4]
  • 8 [8]
  • 16 [16xc]
  • 16 [16xt]
  • 16 [16x1]
  • 32 [16x2]
  • etc

This would all be much easier with an API script (a Pro level perk), and could encompass your special mechanics for c and t.
Yes, I'd figured that scripting would be the only way. I do plan to get Plus level when I can, but Pro might be out of my range. Can't program worth a damn anyway.
October 21 (9 years ago)
The Aaron
Pro
API Scripter
Usually you can find someone in the API forum who is willing to throw these things together for you on a whim.  =D
October 22 (9 years ago)
Hi Andrew G. - since our community has answered your question, I will go ahead and close this thread. Please visit the API forum if you have more questions!