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

Multiple enemies using same attack macro

Hi everyone!

I'm pretty new in creating macros, and although I've been able to create some useful macros for my party, there's one for a player's special attack that I'm unable to create.

So, I would like a help to do a macro that the player rolls only one d20 for attack, but he compares this result against multiple targets, without reducing the first value, like a whirlwind attack, but with only one attack roll.

Thanks in advance!

Ruggi,

So you want to only have a single attack, but select multiple targets?

Here's a link for doing targets.

This is a super simple macro that allows you to select your token, and it will present a dialog to select two different targets (tokens) that you click on, and just outputs to the chat window.

@{selected|token_name} raises her hand, pointing at @{target|Target 1|token_name} and @{target|Target 2|token_name} and makes a corkscrew turning gesture.

I hope that gets you started in the right direction.


M

June 30 (5 years ago)

Edited June 30 (5 years ago)
Oosh
Sheet Author
API Scripter

Wouldn't the player just trigger a normal weapon attack, and the DM tells them which monsters are hit?

You'd need a Pro subscription and API access to compare a single die result to multiple Attributes. If you try to do [[1d20>{ac1}]]>{ac2} that second ac is getting compared to a 1 or a 0, not to the original roll.

You could hack something together with the global field to reuse a roll, but that would be limited to 2 enemies.

You can do this:

&{template:default}{{name=Whirlwind attack}}{{
Attack Roll=[[1d20]] vs AC@{target|t1|npc_ac}
$[[0]] vs AC@{target|t2|npc_ac}
$[[0]] vs AC@{target|t3|npc_ac}}}


But you can't use the $[[0]] in an actual operation, only show the result again. You have to hard-code the number of target calls.


Thanks guys. It's just for one ability, and not used often, so I might do it manually if he does this action (and use the multi-action maco for damage dice only).