
I'm making a macro to make an easy all-out attack button for the Persona tabletop RPG that's in development. An all-out attack involves every party member not afflicted with a status effect making a single melee attack against all downed targets. As long as you have two combatants, you can make an all-out attack when every enemy is downed. So this macro functions as I intend it, for two combatants: /me orders an all-out attack! Everyone rushes in to deal [[@{Melee Damage}+@{Athleticism}+@{target|Melee Damage}+?{What's their attacking stat?| Athleticism, @{target|Athleticism}| Proficiency, @{target|Proficiency}| Guts, @{target|Guts}| Knowledge, @{target|Knowledge}| Charm, @{target|Charm}}]] melee damage to everything! The problem arises when I try providing an escape for if there are only two combatants, but there might be a third or fourth. /me orders an all-out attack! Everyone rushes in to deal [[@{Melee Damage}+@{Athleticism}+@{target|Melee Damage}+?{What's their attacking stat?| Athleticism, @{target|Athleticism}| Proficiency, @{target|Proficiency}| Guts, @{target|Guts}| Knowledge, @{target|Knowledge}| Charm, @{target|Charm}}+?{Another attacker?|No, 0|Yes, +@{target|Melee Damage}+?{What's their attacking stat?| Athleticism, @{target|Athleticism}| Proficiency, @{target|Proficiency}| Guts, @{target|Guts}| Knowledge, @{target|Knowledge}| Charm, @{target|Charm}}]] melee damage to everything! This combines the dialog boxes like this: and that's definitely not intentional. The rest of the macro is supposed to be under Yes, with a separate attacking stat dialog box every time. So it's supposed to go, 1) first person rolls damage (he's assumed to be the macro executor, thus it just assumes Athleticism bc it's his best stat), plus 2) target the second person to roll their damage and ask what their stat is, plus 3) ask if there's another attacker, if not then end the macro. If so then 4) target the third person to roll their damage and ask what their stat is, plus 5) ask if there's another attacker, if not then end the macro. If so then 6) target the fourth person to roll their damage and ask what their stat is, then 7) sum everything into one number I'm not sure if that order of operations is easily understood