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

Syntax for a Query macro that rolls multiple template atkdmg cards

1723338555

Edited 1723338606
I have a feature that allows multiple targets to be selected for an attack, but each additional target is an additional attack roll. For consistency I'd prefer using the template atkdmg, but the macro doesn't seem to recognize multiple atkdmg card calls. I have this: ``` ?{Number of Targets?|     1,&{template:atkdmg} (etc etc for 1 target) |     2,&{template:atkdmg} (etc etc) &{template:atkdmg} (etc etc) } ``` I have tried all manner of formatting, such as removing spaces and using exterior nested brackets. I think it should be possible without API to output more than one atkdmg card. Thank you!
Solved, for anyone else curious: You just have to make sure the following cards are placed on a new line in the text field: ``` ?{Number of Targets?|     1,&{template:atkdmg} (etc etc for 1 target) |     2,&{template:atkdmg} (etc etc) &{template:atkdmg} (etc etc) } ``` This worked for me.