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

Automatically Critical Macro?

June 26 (4 years ago)

Evening all, I've been playing around with the macros the last few evening to try and make my game as simple as possible for my new players. I'm new myself so its a steep learning curve currently. I was wondering if there is a way to make an attack roll automatically roll additional dice on a critical hit? Such as an IF type function? We don't use the character sheets so I've just added a few key attributes to the characters abilities page, we're playing DnD 5e.

Example of my current attack roll macro

/em @{selected|character_name} Fires his Longbow!

/Roll d20 @{selected|DEX} @{selected|PROFF} 

/Roll d6 @{selected|DEX} Damage!


Cheers for any help you can offer!

June 26 (4 years ago)
GiGs
Pro
Sheet Author
API Scripter

There's no way to include IF functionality in macros, unfortunately.


Dan,

This sparked my curiosity, and I looked around a bit, but didn't find a ready-to-go solution.

I found this thread which seems pretty close, and a trick someone came up with using custom attributes on the character sheet which actually seems to accomplish what you want (but is more complicated).

Wish there was more.

Good luck!


M

June 27 (4 years ago)

Edited June 27 (4 years ago)
Oosh
Sheet Author
API Scripter

Without API use, and without using the character sheet, you're a bit limited. You can always roll crit damage, and decide not to use it:

/em @{selected|character_name} Fires his Longbow!
&{template:default}{{name=@{selected|character_name} attack}}{{Attack roll=[[ 1d20 + @{selected|DEX}[DEX] + @{selected|PROFF}[PB] ]] }} [[ [[?{How many damage dice?|1|2|3|4}d6[CRIT]]] + [[?{How many damage dice?}d6[BASE] + @{selected|DEX}[DEX]]] ]] {{
Damage=$[[2]] base damage
$[[1]] crit damage
$[[3]] total}}

Assuming that DEX and PROFF are the names of your custom Attributes (you'd want {dexterity_mod} and {pb} if you're using the default sheet Attributes).