I want to create or simulate an in-line roll that rolls 1d8, and on a roll of 8 additionally rolls 1d4. This is similar to an Exploding Die roll, with the exception that the exploded die is of a different size than the exploding die.
Currently, I have simulated this with a rollable table that has 4 values for every number 1-7, as well as 1 value for each of 9, 10, 11, and 12. While this is sufficient for my current needs, if I need to generalize this behavior in the future, I do not want to have to create a rollable table for every combination of dice (i.e. d12+d10, d12+d8, d12+d6...)
I am the game owner of the game where this is relevant and have access to scripts if they are absolutely necessary, but I would like to stick with solutions using dice roll syntax if such solutions exist, regardless of complexity.