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

How to make multiple attack rolls within a nested macro

1496871288

Edited 1496871341
Okay so this is the syntax I'm using for my single target macros. Power Name;&/#44; [[1d20+bonus+bonus+?{bonA&/#124;0&/#125;]] vs whatever its vs [[damage]] damage then whatever effects But I have attacks that target multiple enemies. And I play D&D 4e so I need to make multiple attack rolls but a single damage roll. And the player that did all my macros for me is gone. So how can I fix this to ask me how many attack rolls I want to make while making only one damage roll?
I added forward slashes to break up the hypertext because even qith the code block it was still playing out
1496876509
Silvyre
Forum Champion
Maybe using a Grouped Roll would work for you: Number of attacks that hit: [[ {?{Attacks|1}d20 + ?{Mods|0}}>@{target|AC} ]]
I might not be using it right, but it seems to just roll like 3d20 and add the 3d20 together .
1496948650
Silvyre
Forum Champion
Could you post what you're using?
I just copy pasted that and tried it out. Then I tried just deleting the targeting part and putting it in a character sheet escaping the bits that needed escaping and deleting the targeting part. Not sure what to post.
Here is how my macros currently look like. I have the attack and damage rolls separated into two macros. I would like to merge them into one. Its especially important if I ever figure out how to use the Power Cards. Freezing Cloud;&`#44; Area Burst 2 within 10(creatures) [[2d8+4+?{bonD&`#124;0&`#125;]] cold damage and half damage on a miss. Effect: The burst creates a zone that lasts until the end of your next turn or until you dismiss it as a minor action. Any creature that enters the zone or starts its turn there takes 5 cold damage (a creature can take this damage only once per turn). Sustain Minor: The zone persists until the end of your next turn. [[1d20+4+2+?{bonA&`#124;0&`#125;]] vs fortitude
1496949818
Silvyre
Forum Champion
Devlin M. said: I just copy pasted that and tried it out. Then I tried just deleting the targeting part and putting it in a character sheet escaping the bits that needed escaping and deleting the targeting part. A Grouped Roll in the form [[ {Rolls + Mods}>TargetNumber ]] won't work without the target number, so that's probably why the rolls were added together.
Can't I just make it target my sheet? I cant use selection targetting on my phone.
1496950183
Silvyre
Forum Champion
A Grouped Roll might not be so useful after all if you're not able to use targeted Attribute calls (to get the AC of an enemy Token). Maybe it would be best to just nest the damage roll beside multiple attack rolls, i.e. [[Attack1]] [[Attack2]] [[Attack3]] [[Damage]]
Well if thats my only option, I guess Ill just stick with using seperate macros. Its cleaner that way. Thanks anyway. :)
1496951271
Silvyre
Forum Champion
Well, you could replace that with a Query, e.g.: [[Attack1]] ?{Attacks|1, |2, [[Attack2]]|3, [[Attack2]] [[Attack3]]} [[Damage]]
The template apparently has built in logic for multi attacks. Unfortunately it makes no sense. This is what it says. Multi Attack Toggles if the following property names contain a numerical toggle they will display additional attacks based on the numeric value that they receive. {multiattacktoggle}, {augmenttoggle}, {augment1multitoggle}, {augment2multitoggle}, {augment4multitoggle}, and {augment6multitoggle} . Here are the Toggle Values that the Template was built for. Multiattacktoggle [[ ?{Number of Attacks 2 to 20|2} ]] Supports up to 20 attacks. Here is what I put in. &`#38;&`#123;template:dnd4epower&`#125; &`#123;&`#123;atwill=1&`#125;&`#125; &`#123;&`#123;name=Burning Hands&`#125;} &`#123;&`#123;target= Close Blast 5(creatures) &`#125;&`#125; &`#123;&`#123;attack= [[1d20+4+?&`#123;bonA&`#124;0&`#125;]] vs reflex&`#125;&`#125;  &`#123;&`#123;multiattacktoggle= [[ ?&`#123Number of Attacks 2 to 20&`#124;2&`#125; ]]&`#125;&`#125; &`#123;&`#123;hiteffect=[[2d6+4+?&`#123;bonD&`#124;0}]] fire damage.&`#125;}&`#125;} &`#123;&`#123;miss=Half damage.&`#125;&`#125;
1496967265

Edited 1496967306
Silvyre
Forum Champion
Ah, I see a nice example of a multiattack macro in the sheet's Wiki page : Cleric Power: Moment of Glory (Attack Roll has been Simplified - Up to 9 Attacks) uses this template macro: &{template:dnd4epower} [...] {{ attack =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack2 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack3 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack4 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack5 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack6 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack7 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack8 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ multiattack9 =[[ 1d20 + [[@{wisdom-mod} ]] [wisdom mod] ]] vs **Will** }} {{ damage =No Damage. }} {{critical=No Damage. }} [...] {{ multiattacktoggle =[[ ?{Number of Attacks|1|2|3|4|5|6|7|8|9} ]] }}