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

'Take the top two' of several dice with explosions

I'm trying to create a macro that will add only the top two highest dice from a pool of dice, and some of the dice explode into different dice. The problem is that the exploding dice explode into different die types. I looked into this a couple years back and I can't remember if I hit a dead end or just gave up. If anyone knows if something like this is theoretically possible please let me know!
1611102505
David M.
Pro
API Scripter
Sounds like api script territory to me.
If your initial pool of dice is always the same or an exploded die is replaced by the new die (instead of adding to the pool of dice alongside it) you may be able to get a workable solution by precalculating outcomes then using Rollable Tables to represent those outcomes.
1611150245
David M.
Pro
API Scripter
Good thought, RainbowEncoder. Jason, can you give a specific example? How many variations would be required?