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

A macro that includes critical rolls?

Has anyone developed a Macro that can target a token for its AC, and based upon that knowledge would know when a critical hit occurs (+10) and then would apply the damage multiplier on a singe damage dice roll? For that matter, could the attacking weapon also be considered (say it had an extra damage die if a critt was achieved). Thanks in advance
1575250306
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Although you can define the crit range in a macro, this really only affects the formatting of the roll. For the macro to do something with that information, it needs to be part of a roll template (sheet based) or an API script (Pro subscription). Macros in and of themselves do not have any logic branching capability. No "If this condition then do that action" ability.
1575277629
Ziechael
Forum Champion
Sheet Author
API Scripter
What system/sheet are you using? A lot of the more 'modern' sheets contain ways of handling crits beyond the normal 'highlight if it is a candidate for a crit' die display option.
The first edition Stars Without Number had hit detection, the AD&D2E sheet has crit/fumble handling. These things need to be coded into the sheet, I have spent years, it seems, trying to make "if...then" work on roll 20.
1575292165
Ziechael
Forum Champion
Sheet Author
API Scripter
Simple if>then can be worked with some shoe horning but requires use of the dice success/failure syntax and rollable tables. It can get unwieldy and not worth the effort very quickly however which is why it is commonly used. Not to mention the limiting effect it has on display since results can't be reused without API assistance :/
 We are using Pathfinder 2.0 sheets, and during play a character objected to the second roll for critt (obviously the first roll was higher :) ). and suggested we do the math for the first roll. I thought perhaps someone had set up a macro that did the calc, and thus didn't need to have the two rolls for damage. Sounds like this may be very difficult. Thanks everyone.