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

Multi-attack & Multi-damage Macro /w advantage option?

I'm looking for a pair of macros that enables me to mass roll multiple bouts of attack and damage from multiple NPCs, but from what little I've been able to find, none take into account more than one damage dice per creature, which doesn't seem right. This is the one I'm currently using. How do I improve these? Attack /emas The ?{What enemy?|enemies} attack @{target|token_name} (AC @{target|ac}) a total of ?{How many attacks} times, with [[?{How many attacks}d20>[[@{target|ac}-?{modifier}]] ]] resulting in a successful hit! Damage /emas As a result of the successful hits, you receive a total of [[(?{Number of hits}D?{Damage Dice})+([[?{Number of hits}*?{Damage Mod}]])]] HP's of damage!
1574447886
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You might be able to adapt the Group Check script?
I could, but the problem with that is I'm not sure how. There's also an issue with the Damage Applier not working when I click it. <a href="https://gyazo.com/a5a4e597f1ff4b75efede366dafc1ef7" rel="nofollow">https://gyazo.com/a5a4e597f1ff4b75efede366dafc1ef7</a>
1574452258
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yeah, Apply damage works the other way around...&nbsp; I'll see if I can figure out something this evening.
Any luck with that macro? I've been attempting to find out why the damage applier isn't working, but I'm still stumped.
1574545335
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
For the Damage application, do you have the Apply Damage script installed besides just Group Check?
1574545378
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Apply Damage works to apply damage to all tokens that failed a check. It does not cause them to roll damage for an attack, btw.
Ah, okay, turns out I was attempting to use it as a macro instead of a script. Hurr. One question when using GroupCheck. How would I go about changing the bars for health? Currently I'm using Bar3 for health. It's outputting damage to Bar1.
1574547074
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This command will roll the attack roll for the first attack on all selected NPC sheets. !group-check --custom Action 1, \[d20 + \at{repeating_npcaction_$0_attack_tohit}\] Change the $0 to $1 and so on to get each next attack. The problem is that sheets and statblocks are not uniform. On some statblocks, the first action is "multiattack", which has no modifiers. I'm not sure if this script has any value for what you are trying to do, unless you want to spend considerable time modifying character sheets. I think your best bet would be to either hit the up arrow in chat to repeat the last command for each attacker, or to build a custom macro for each creature. For this latter case, I suggest using the token actions script , which creates token action buttons automatically. That at least allows you to hit a single button X number of times.