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 .
×
Create a free account

Mutliple Monster Attacks with a single macro

Scenario: I have multiple orcs attacking a single hero in a 2e campatign. I have a macro for a single attack: /em The @{selected|token_name} hits an AC of [[@{THAC0}-{1d20}]] with its @{weapon_type}! Question: Is there any way I can add some sort of input: "How many monsters are attacking?" and have the macro automatically roll that number of attacks? I know that I can just click the attack macro six times (or equivalent to number of monsters present), but I am looking to make my combat as streamlined as possible. Thank you.
Not without making a huge roll query with an increasing number of full attacks in there or using a roll template/api script.
1459043804

Edited 1459043815
Like HoneyBadger mentioned, I would use a Roll Query to handle this: ?{How many monsters are attacking?| 1, [[ @{THAC0} - {1d20} ]] | 2, [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] | 3, [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] | 4, [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] | 5, [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] | 6, [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] • [[ @{THAC0} - {1d20} ]] }
I just use the following macro when I am attacking with large numbers of creatures in 5E. /w gm &{template:default} {{name=Group Attacks}}{{No. of Hits=[[?{No of attackers|1}d20>[[@{target|ac}-{selected|melee-mod}]]]]}} It asks for a target to get the AC, then compares the to hit rolls to the AC and returns the number hits that were successful.  I then have a 2nd macro that asks for the number of successful hits and rolls the total damage. Don't see why /em The @{selected|token_name} hits an AC of @{THAC0} with {{No. of Hits=[[?{No of attackers|1}d20<[[@{target|THAC0}]]]]}} with its @{weapon_type} I may have messed up some of the macro trying to put it into 2E terminology, but it works great for 5E.