
Basically, I'm trying to figure out how to get a macro to do the following: I want it to roll a variable amount of hits with a variable modifier, then compare those to a variable AC. Then it pumps out the number of attacks that hit, and uses that number to determine how many die rolls are made and how many times the modifier is multiplied. So, for example, if 3 attacks hit, and the damage an attack did was 1d10+3, it would roll 3d10+9. So far, the closest thing I managed to make is a two-step macro that I need to manually input: [[{?{Number of rolls|1}d20+?{Mod|0}}>?{DC|10}]] [[{[[?{Number of hits|1}*2]]d6+?{Number of hits}*?{Mod|0}}]] (works specifically for 2d6 + modifier attacks) Is there a way to do something, like... [[{?{Number of rolls|1}d20+?{Mod|0}}>?{DC|10}]] = $NumberOfTimesHit [[{[[$NumberOfTimesHit*2]]d6+$NumberOfTimesHit*?{Mod|0}}]] (works specifically for 2d6 + modifier attacks) If there's a way to set a variable, that'd fix my entire problem, but I don't know if there's a way to do it. Thanks! EDIT: I got it to work, but only for attacks with damage rolls that don't have a modifier. So, it would work perfectly for this: [[ [[{?{Number of attacks|1}d20+?{Mod|0}}>?{AC|10}]]d12 ]] (for damage rolls that are just 1d12) But I want it to work for the following: 1 hit: 1d12+3 2 hits: 2d12+6 etc.