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

How to get a macro to know to roll crit damage if attack type is selected from a roll query?

Hello everyone.  I have an attack macro all set up the way I want it to function with only one part missing - the macro doesn't know to roll crit damage when the attack roll is a critical hit.  I think I understand the basics of how to designate an attack roll as a crit (by using the cs>20 coding, for example), but how do I get the rest of the macro to know to link the damage roll with that potential critical hit so that it knows when to roll the damage twice?  Any thoughts or suggestions?  All assistance is appreciated.  Thanks, in advance. The current attack macro that I'm using is (using the Carbon 2185 character sheet, by the way): &{template:default} {{name=@{attack_name_1}}} {{Attack Roll= [[ @{attack_bonus_1} + ?{Roll Type|Standard,1d20 ]] Standard|Advantage,2d20kh1 ]] Advantage|Disadvantage,2d20kl1 ]] Disadvantage} }} {{damage=@{attack_type_1} [[@{attack_damage_1}+@{attack_dmod_1}]]}}
1591977736
The Aaron
Roll20 Production Team
API Scripter
This requires a custom Roll Template, or an API Script.  The best you can do without that is roll the damage twice and do the addition manually if it was a crit.
1591978045
Oosh
Sheet Author
API Scripter
Short answer is that you can't. The green box around the die roll just operates on the die roll and does not affect the rest of the macro. Some sheets do have built-in functionality where the roll template can link to different macros depending on the roll - 5E will do this for crit rolls using the main roll templates, but I have no idea about Carbon 2185. If it's not built into the sheet your only hope is the API. The other options would be: - automatically roll crit damage on the next line of the template and manually add it when required - put a link at the end of your macro which rolls the crit damage if you need it
Ugh, well... Thanks for the response at least.  I was afraid that was going to be the answer I'd get.  Oh, well.