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

Need help with adding critical range to custom macros

Im running pathfinder and have a magus that has crazy bonus damage and stats, to the point where i just gave up using the regular macro half a year ago. is there a way to add crit range, crit hit and crit damage to the macro? 
here is my current macro:
&{template:default} {{name=Elemental Punch}} {{attack=[[1d20+@{bab}+?{ACmod|0}+5+@{STR-mod}]]}} {{damage=[[6d6+?{DMGmod|0}+2+5+(@{STR-mod}*(1.5))]]}} {{Elemental and holy=[[ [[ [[ ?{[Holy?]|No, 0|Yes, 2d6} ]] ]]  [Holy] + [[ [[ ?{[Cold?]|No, 0|Yes, 1d6} ]]  ]] [Cold] + [[ [[ ?{[Acid?]|No, 0|Yes, 1d6} ]]  ]]  [Acid] + [[ [[ ?{[Fire?]|No, 0|Yes, 1d6} ]]  ]] [Fire] + [[ [[ ?{[Shock?]|No, 0|Yes, 1d6} ]]  ]] [Shock] + [[ [[ ?{[Bleed?]|No, 0|Yes, 1d6} ]] ]]  [Bleed] + [[ [[ ?{[Negative?]|No, 0|Yes, 1d6} ]] ]] [Negative]  ]]}} }  {{Properties= Unarmed, Bleed, Holy, Cold, Acid  Bludgeoning, Fire, Shocking}}

December 16 (6 years ago)
vÍnce
Pro
Sheet Author

The default template cannot hide/show info based on the crit threat. so you'll need to roll crit confirm and crit damage along with the rest of the macro

example;

&{template:default} {{name=Elemental Punch}} {{attack=[[1d20+@{selected|bab}+?{ACmod|0}+5+@{selected|STR-mod}]] }} {{Crit_Threat=[[ ?{Crit Threat?|20} ]] **Confirm** [[1d20+@{selected|bab}+?{ACmod|0}+5+@{selected|STR-mod}]] }} {{damage=[[6d6+?{DMGmod|0}+2+5+(@{selected|STR-mod}*(1.5))]]}} {{Crit_Damage=[[6d6+?{DMGmod|0}+2+5+(@{selected|STR-mod}*(1.5))]]}} {{Elemental and holy=[[ [[ [[ ?{[Holy?]|No, 0|Yes, 2d6} ]] ]]  [Holy] + [[ [[?{[Cold?]|No, 0|Yes, 1d6} ]] ]] [Cold] + [[ [[?{[Acid?]|No, 0|Yes, 1d6} ]] ]]  [Acid] + [[ [[?{[Fire?]|No, 0|Yes, 1d6} ]] ]] [Fire] + [[ [[?{[Shock?]|No, 0|Yes, 1d6} ]] ]] [Shock] + [[ [[?{[Bleed?]|No, 0|Yes, 1d6} ]] ]]  [Bleed] + [[ [[?{[Negative?]|No, 0|Yes, 1d6} ]] ]] [Negative]  ]]}}  {{Properties= Unarmed, Bleed, Holy, Cold, Acid  Bludgeoning, Fire, Shocking}}

 

December 16 (6 years ago)

Edited December 17 (6 years ago)
Kraynic
Pro
Sheet Author

If you add an attribute for critical threat range, you can edit that number as needed if your critical changes.  You could even create more than one attribute if you have a different critical threat range for certain attacks that are still common for you to use.  Just as an example, you could have "melee_crit" that you call in your example above.  Your attack line would be modified to look like this:

{{attack=[[1d20cs>@{melee_crit}+@{bab}+?{ACmod|0}+5+@{STR-mod}]]}}

Whatever number you had in the "melee_crit" attribute would be pulled in for the crit threshold in the macro.  Then it would outline your attack roll in green if it was a crit.  Then you could just reroll the macro to confirm (or if you don't need to answer all the questions in your main macro, you could make a simpler one for crit confirm).

Some of how you handle this will depend on your DM.  I've had one that is fine with a fancy macro from a character sheet that fills chat, but hates seeing a custom made one that takes up more than a few lines.  You could mix what I have shown with what Vince did.  I am kind of surprised you don't need to have your various types of damage on different lines so you know what is what if you run into resistances.

December 16 (6 years ago)

Edited December 16 (6 years ago)
vÍnce
Pro
Sheet Author

Also, if you use the PF community sheet you can include all of your extra damages on the attack (each on it's own line within the extra damage text field) and then the crit info will only be seen when it's confirmed. No need for a separate macro.