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 and Multi Hit Macro

Hello All. I am going to be starting a new game of 5E soon and one of the skills my Ranger calls for is Volley, which states I can attack X number of targets in a 10ft radius within my range, each enemy must have a seperate attack roll and damage roll. Now rather than just for example clicking my weapon slot X number of times and spamming up the chat with multiple boxes I would like to have a Macro where I could just enter in the number of enemies I wish to attack using ? query and it would automatically roll the attack and damage of my weapon seperately x number of times, i.e.: Attack 1 Attack 2 Attack 3 Damage 1 Damage 2 Damage 3 So far I have only been successful in getting the macro to sum the total of the attacks. Now I am sure there must be a Macro somewhere to do this and people haven't been spamming their weapon slot. Any assistance is greatly appreciated. Oh and for reference the game uses the SRD5 Character sheet. Many Thanks Fishy
I don't think that this is possible without using an API script. At least as far as I know, you can't do for loops in a macro.
1482435679

Edited 1482435843
You can write a  Drop-Down Roll Query to handle this, e.g. [[1d20]]/[[1d8]] • [[1d20]]/[[1d8]] ?{Attacks| 2, |   3, • [[1d20]]/[[1d8]] |   4, • [[1d20]]/[[1d8]] • [[1d20]]/[[1d8]] |   5, • [[1d20]]/[[1d8]] • [[1d20]]/[[1d8]] • [[1d20]]/[[1d8]] |   etc. }
1482437721

Edited 1482438356
So All I need to do is just Copy Paste this into the standard Roll20 5e template and we're good to go? [Edit] I can get it to work but cant seem to get it to work with the 5E Template &{template:default}
Fishyninja said: [Edit] I can get it to work but cant seem to get it to work with the 5E Template &{template:default} I'd post the macro you're having issues with
So if I copy and paste the code you put in, the macro runs fine, however I am trying to add in the roll bonuses and damage bonuses as well, which I did have working a second ago, however when I roll it will roll the 3D dice show the template but no results. If I get rid of the template line it shows the results. I am trying to get both to work. Once I have a working example again I'll post it up
So I have this macro: &{template:default} {{name=Volley}} {{Blot out the sun!}} {{[[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]] • [[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]] ?{Attacks| 2, | 3, • [[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]] | 4, • [[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]] • [[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]] | 5, • [[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]] • [[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]] • [[1d20+@{Fentoris Vrixidor|npcd_dex_mod}+@{Fentoris Vrixidor|dexterity_save_prof}]]/[[1d12+@{Fentoris Vrixidor|npcd_dex_mod}]]}} I honestly don't think I'll be attacking more than 5 people in one turn. Anyway if I include the template line: &{template:default} {{name=Volley}} {{Blot out the sun!}}....It will roll and show the template but not the results if I take the template out the results show fine....I'm missing something
Looks like you're missing a closing } at the very end
Ok I'll try that, if all else faisl the numbers work and that is the most importaant part. Oh and Many Thanks!