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

Multiattack Critical Roll Template

1451646418

Edited 1451646739
Encountering a curious error(?) where I am trying to have the critical damage and subsequent information display in a multiattack template if either the first or second attack is a successful crit, but the critical script only activates if the first attack roll is a crit. This script is for a D&D 4E Avenger, involving the Oath of Enmity class feature, where I make two attack rolls and use either result. Would love for the interface to automatically pick up the crit on the multiattack, but it only does on the first. For reference, here's the roll template I'm using: &{template:dnd4epower} {{atwill=1 }} {{name=Basic Melee Attack }} {{level=Level 1 }} {{type=At-Will }} {{keywords=Weapon }} {{action=Standard }} {{range=Melee Weapon }} {{target=One Creature }} {{attack=[[1d20cs>19+35 [wisdom] ]] vs. **AC** }} {{multiattacktoggle=[[?{Number of Attacks|2}]]}} {{multiattack2=[[1d20cs>19+35 [wisdom] ]] vs. **AC** }} {{damage=[[2d12r<1+20 [wisdom] ]] damage.}} {{critical=[[0d0+24+20+7d10+4d12 [wisdom] ]] damage. He gains a +4 bonus to attack rolls and damage rolls until the end of his next turn, and the target takes a -2 penalty to attack rolls and defenses for the rest of the encounter (save ends)}} Not sure if there's an API script out there that I need, or a working of the roll template I can use, but anyone that knows of a solution would be greatly appreciated.
wiki.roll20.net/DnD4e_Character_Sheet said: Critical Rolls the first attack roll will report a critical. This is true for the main attack, secondary attack, tertiary attack, and augments 1, 2, 4, and 6 first attacks. The Multiattack rolls do not report a critical roll. You'll probably want to swap out the multiattack stuff for  {{secondaryattack=}} , {{secondarydamage=}} and {{secondarycritical=}}
1451703899

Edited 1451706088
That makes good sense. I liked using the multiattack better because I can define when I actually need two attack rolls, since it doesn't trigger in ALL situations. I suppose I can simply disregard the secondary roll when it doesn't apply. Thank you! To avoid filling the chatlog, I simply omitted {{secondarydamage=}}.
Ah, in that case, you could opt to nest the secondary fields within an advanced Roll Template . ?{Secondary attack?|No, |Yes, {{secondaryattack=[[ 1d20cs>19+35 [wisdom] ]] vs. **AC**}} {{secondarycritical=[[0d0+24+20+7d10+4d12 [wisdom] ]] damage. He gains a +4 bonus to attack rolls and damage rolls until the end of his next turn, and the target takes a -2 penalty to attack rolls and defenses for the rest of the encounter (save ends)}} } Since the above contains HTML entities, you'll want to save it as an Ability macro instead of a macro on the My Settings tab of the Sidebar.