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

Rolling Multiple Dice with Modifiers

In an attempt to speed up combat rolls I would like to be able to roll multiple attack rolls (with their respective bonuses) in one roll. I have tried a number of combinations but they all keep adding the dice totals together not reporting them as individual results. Is there a way to do one roll command and get multiple results as a return?
March 22 (10 years ago)

Edited March 22 (10 years ago)
What game system are you using? Are you using Roll Templates or a particular Character Sheet?

I'd like to direct you to my Pathfinder Macro Example page: https://wiki.roll20.net/Macros_-_Pathfinder_Exampl...

In-Line Roll Example, using Power Attack and a two-handed weapon in Pathfinder:
/me grips his GreatSword firmly and swings powerfully! [Crit:19-20/x2]

H1:[[1d20cs19 + 5 -1[PowerAttack] + ?{Misc Bonus/Penalty?|0}[Misc. Bonus] ]] for [[2d6 + 6[STR*1.5] + 3[PowerAttack] + ?{Damage Bonus?|0}[Misc. Bonus] ]] Dmg
C1:[[1d20 + 5 -1[PowerAttack] + ?{Misc Bonus/Penalty?|0}[Misc. Bonus] ]] for addt'l [[2d6 + 6[STR*1.5] + [PowerAttack] + ?{Damage Bonus?|0}[Misc. Bonus] ]] Dmg
H2:[[1d20cs19 + 5 -1[PowerAttack] -5 + ?{Misc Bonus/Penalty?|0}[Misc. Bonus] ]] for [[2d6 + 6[STR*1.5] + 3[PowerAttack] + ?{Damage Bonus?|0}[Misc. Bonus] ]] Dmg
C2:[[1d20 + 5 -1[PowerAttack] -5 + ?{Misc Bonus/Penalty?|0}[Misc. Bonus] ]] for addt'l [[2d6 + 6[STR*1.5] + 3[PowerAttack] + ?{Damage Bonus?|0}[Misc. Bonus] ]]

Roll Template Example: (broken into multiple lines for readability; the macro would be entered as a single non-breaking line of text)
&{template:default} {{name=Melee Attack}}
{{Attack1:=[[1d20cs>17 + 5[STR] + 12[BAB] +3[WeaponBonus] + ?{AttackMod|0} ]] for [[1d8 + 5[STR] + 3[WeaponBonus] + ?{DamageMod|0} ]] Dmg}}
{{Confirm1:=[[1d20 +4[CritFocus] + 5[STR] + 12[BAB] +3[WeaponBonus] + ?{AttackMod|0} ]] for [[1d8 + 5[STR] + 3[WeaponBonus] + ?{DamageMod|0} ]] Crit Dmg}}
{{Attack2:=[[1d20cs>17 -5[BABPenalty] + 5[STR] + 12[BAB] +3[WeaponBonus] + ?{AttackMod|0} ]] for [[1d8 + 5[STR] + 3[WeaponBonus] + ?{DamageMod|0} ]] Dmg}}
{{Confirm2:=[[1d20 -5[BABPenalty] + 5[STR] + 12[BAB] +3[WeaponBonus] + ?{AttackMod|0} ]] for [[1d8 + 5[STR] + 3[WeaponBonus] + ?{DamageMod|0} ]] Crit Dmg}}
March 22 (10 years ago)
Gen Kitty
Forum Champion
Yes.

[[1d20]] [[1d20]] [[1d20] will return 3 d20 results, separated by spaces. Each [[ ]] is its own dice equation.

Another example:

/me unleashes both swords in a blazing attack!
Target 1: @{target|Foe 1|token_name}
*** AC [[1d20+5]] for [[1d6+3]] damage
Target 2: @{target|Foe 2|token_name}
*** AC [[1d20+3]] for [[1d6+3]] damage

Hope this helps!
What we're both saying in its simplest form:

[[ attack roll 1 ]] for [[ damage roll 1 ]]
[[ attack roll 2 ]] for [[ damage roll 2 ]]
[[ attack roll 3 ]] for [[ damage roll 3 ]]
etc.
The game is a 5e D&D game. Your information is helpful. Thank you.
In case you want to get fancy with it, and want to do it while using the 5e Template appearance you can use the following:
(Broken up for readability. This would be entered on a single line of text)
(This is an "Ability" on my character journal and I have "DEX" and "PROF" defined as attributes on my character journal)
(If you keep the property names intact, "attack, damage, spellattack, etc you can just replace the content within [[ ]] )
&{template:5eDefault} {{weapon=1}} {{title=Standard Attack}}
{{subheader=@{Selected|Token_Name}}} {{subheaderright=QuarterStaff (Two Attacks)}}
{{attack=[[ 1d20 + @{DEX}[Dex] + @{Prof}[Prof] ]]}} {{attackadv=[[ 1d20 + @{DEX}[Dex] + @{Prof}[Prof] ]]}}
{{damage=[[ 1d8 + @{DEX}[Dex] ]]}} {{critdamage=[[1d8]] Addt'l Dmg}}}
{{spellshowattack=1}}{{spellattack=[[ 1d20 + @{DEX}[Dex] + @{Prof}[Prof] ]]}}
{{spellshowattackadv=1}}{{spellattackadv=[[ 1d20 + @{DEX}[Dex] + @{Prof}[Prof] ]]}}
{{spellshowdamage=1}}{{spelldamage=[[1d8 + @{DEX}[Dex] ]]}}{{spellcancrit=1}}
{{spellcritdamage=[[1d8]] Addt'l Dmg}}


March 23 (10 years ago)
Actoba
Pro
Sheet Author
I'd advise against using the spell attack and normal attack fields for this if you are using the 5e sheet. i added support for a multiattack option (ip to 5 attacks currently) to the template that will go live with the next sheet refresh. Example usage here - https://app.roll20.net/forum/post/1744887/#post-1744887