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

Exploding dice macro, I need help

So there's a weapon in griffons saddle bag that has a neat mechanic that I need some help making a macro for. The weapon does 2d6 damage, and whenever those dice have the same value (1,1 to 6,6) they explode and u get to roll another 1d6, the thing is if that 1d6 also matched the first to u get to roll again. Chaining the results. I'm not good with macros and I can't seem to find anything that's been done like this. If peiple have suggestions I would be really greatful
Rolling 2d6 and if they match rolling 1d6 that explodes on the initial value is mechanically the same as rolling 1d6 and then always rolling 1d6 that explodes on that value. However the later is easier to implement. That being said it still requires an advanced technique of roll duplication so I'm not surprised you couldn't find anything like it. This macro should work for you &{template:default} {{Damage= [[ $[[13]][first d6] + 1d6!$[[7]] ]] $[[$[[0]]]] [[[ [[1d6]] [[ [[ [[ [[ [[ [[0]] ]] ]] ]] ]] ]] [[6]][[5]][[4]][[3]][[2]][[1]][[6]][[5]][[4]][[3]][[2]][[1]] ]]] }} {{Damage=$[[14]]}}
1664053365

Edited 1664053421
GiGs
Pro
Sheet Author
API Scripter
You cant do that without a Pro subscription (more technically, the game's creator must have an ongoing pro subscription). That kind of macro is beyond roll20's standard dice mechanics. The best you can do is manually viewing the roll in chat, and having a d6 macro for rolling the extra dice manually. Rainbow - bear in mind that the original 2d6 roll is likely needed too - it's not just being rolled for the matches.
The 2d6 is included. The macro I provided is essentially an automatic version of [[1d6![[1d6]] ]] plus $[[0]] When the d6's are different;  it's just the 2d6. When they match; you keep rolling until they stop matching.
1664058036
GiGs
Pro
Sheet Author
API Scripter
I didn't look closely enough. Wow that's a lot of online rolls, and reusing rolls nested inside each other. Does that work?
Reusing rolls in this manner does require a bunch of setup but with potent possibilities. Most of the rolls are the result of duplicating a single d6. I describe those advanced techniques earlier in the year.
1664058812
GiGs
Pro
Sheet Author
API Scripter
Thanks, I'll check that out. It seems like it would sometimes be very handy.