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

chaos bolt macro

I am wondering if anyone knows of a way to code a macro for a chaos bolt. Is there a way to code 1d8 and link it to different damage types for each result then roll 2d8+1d6 separately and have it read the damage type of the first d8?
I'm not sure how one could automate that spell, given that the caster is allowed to choose which of the two d8s to use to select the damage type.  It might be possible using a Rollable Table, but I'm not sure how (or if it's even possible) to extract the underlying numeric value of the roll to then feed that into a damage total.  I've just tried a few simple and unsuccessful experiments along those lines, and the apparent numeric value for the table roll remains zero: rolling 1t[Test-table] (a 1) = 0 rolling 1t[Test-table]+0 (a 1)+0 = 0 rolling 1t[Test-table]+0 (c 3)+0 = 0 rolling 1t[Test-table]+0 (b 2)+0 = 0 rolling 1t[Test-table] [0]+0 (c 3)+0 = 0
I appreciate you attempting as well. I tried a few variations and was also unsuccessful. I was hoping to not have to pull the table up each time I rolled but that may be the easiest option.