Hello everyone I've got a bit of trouble on my hands when attempting to use a macro i made for the resolution of a lot of rolls at once in 5e. This is for a mass combat system i'm using and it involves rolling attacks for everyone in a unit and totaling the damage. It's more elegant than it first sounds but my problem is that the macro i use is &{template:default} {{name=Mass combat}} {{Attack damage = [[[[{?{Number of attacks}d20+?{Attack Modifier}}>?{Target AC}]]d[[?{Dice Size}]]]]}}
In pseudo code that'd be roll a number of attacks from the unit in d20's, apply attack modifiers and count the attacks that roll above the enemies AC. That number is then used to roll a number of dice of a specified size (i.e d8's). The problem being that the end output of the macro doesn't include the damage modifier in the result and so i have to count that up and add it separately. Any idea's on how to add that?