
I'm trying to make a Conjure Animals macro for 5e, and I've got as far as asking for number of hits and attack bonus, rolling against the tokens AC, checking successes and rolling that many sets of dice for damage.
The issue lies in that most creatures deal 'X'd'Y'+'Z' damage on hit. 'X' and 'Y' are easy enough, its already set up to roll [[success*{dice}]]d{size}, but I need a way to roll [[success*dice]]d{size} + [[Success*{Flat}]]
I can't just copy the success part of the code to both sides, as it will roll independently both times, I need Success to be the same on both sides.
I think I need a way to store variables, to set success to var x, so I can then /r [[x*{Dice}]]d[[x*{Flat}]], however if I ought to be doing it another way I'd love to hear that either.
Thanks in advance.