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

Roll multiple selected|repeating_npcaction_$0_npc_action in one macro?

Hi all, I've never truly understood the macros I've been using, but thanks to many of you I've managed to build a fairly usable system to help run a smooth game. I appreciate all of your help-past, present, and future. I use a template for most of my npcs that centers around the following: [@{repeating_npcaction_$0_name}](~selected|repeating_npcaction_$0_npc_action)[@{repeating_npcaction_$1_name}](~selected|repeating_npcaction_$1_npc_action) and etc. for however many attack actions are on a given sheet. It's quick, easy, and seemlessly translates to all of my npcs. It recently occurred to me that it would greatly enhance my game if I could tweak this to roll multiple npcactions at once. For example, if I have three goblins shooting shortbows, it would be awesome if I could click the appropriate action (shortbow) and it would prompt "how many" (3) and then roll 3 of npcaction_$0_npc_actions. I've been playing around and haven't been able to make anything work. Something like this? [@{repeating_npcaction_$0_name}] ?(how many?) (~selected|repeating_npcaction_$0_npc_action)     -or- [@{repeating_npcaction_$0_name}](~selected| ?(how many?)( repeating_npcaction_$0_npc_action ) ) I know my attempts show my ignorance, and that there is certainly an order of operations issue that I'm not grasping. Any thoughts or guidance is appreciated. This isn't a make or break issue, but it would certainly speed up combat encounters with multiple mooks. Thanks in advance!
1586315811
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Macros unfortunately don't allow looping. There is a quick way to repeat any action, however. If you click in the chat text input area and press the up arrow key, it will give you the text of the last command, in this case the attack. So you could run your attack, click in the field and press up-return as many times as you wish to repeat the last attack. Or you could just click the button 3 times. :)