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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Critical checks and damage rolls

Building a generic attack template and trying to get it to check for a critical roll, roll additional damage when it finds one and only display said damage when it rolls.  I've been going through some of the template examples and such but I'm just not getting it.  I feel like I should be using the  {{#rollWasCrit() <rollname>}} helper function in some fashion but I don't get how to use it. The Macro I have written so far is below. &{template:default} {{name=??}} {{Attack Roll= [[1d20+@{ATKMelee}+{(floor(@{STR}/2)-5)}+?{ATK Modifier|0}]]}} | {{Damage Roll= [[1d?+{(floor(@{STR}/2)-5)}+?{DAM Modifier|0}]]}} 
1564275154
vÍnce
Pro
Sheet Author
You are correct in regards to using a roll template to show/hide crit rolls.  The default template is a generic template that doesn't include those types of helpers since they can only be included within the code of a specific character sheet.  You can either use a sheet that already includes the crit helpers within their roll template(s) or make a custom sheet.  
Ah, thanks Vince!