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

[PF] Need help adding Crit code to Macro

With help from Youtube, I somehow managed to cobble together this macro for use with my Monk's attacks (using Dragon Style, hence the variable Strength damage multipliers) and it works great...the only problem is I have no idea how to make it account for critical hits/damage. Can someone please help? ------------------------------------------------------------------------- /em attacks in a flurry! [[1d20+@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]] for [[1d8+@{Komodo|STR-mod}*2+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire [[1d20+@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]] for [[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire [[1d20+@{Komodo|STR-mod}+@{Komodo|bab}-5+@{Komodo|PAtt}]] for [[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire Critical hit or successful Stunning Fist = Shaken [[1d4+@{Komodo|STR-mod}]] rds. -------------------------------------------------------------------------- Note: For clarification, the PAtt/PDmg and HvyHit entries are for Power Attack and Trait modifier, and he gets an extra 1d6 fire damage due to an Amulet of Mighty Fists.
1477161149

Edited 1477161179
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
If you mean have it auto show/not-show critical damage, that's not possible with your current setup. But I'm guessing you are doing pathfinder. Are you using the pathfinder sheet? If you are you could utilize the attack template to do it.
1477162798

Edited 1477162824
I'm using the stock Pathfinder sheet that comes with Roll20. Not sure what you mean by 'attack template'? If you mean the Attack section built into that sheet, the only problem with that is that because of Dragon Style, my first unarmed attack in any given round receives 2 x Str mod to damage, and all subsequent attacks receive x 1.5 Str mod. I saw no way to work that into their macro (I'm only a beginner at this) and it forces me to break down every Flurry or full attack into two separate Attack dice rolls in separate weapon entries, one with x2 (for the first attack) and one with x1.5 (for everything after that). Of course I could do that (I did it before), it's just sort of inconvenient and unsightly. I was trying to get the whole flurry done with one roll of the dice.
1477164270

Edited 1477171797
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep,  roll templates are formatting for rolls. There is the default template and then more advanced templates are baked into many sheets (this is true for  Pathfinder ). The more advanced one's allow auto-handling of criticals. So this should do what you need (and as a bonus replicate the look of the sheet generated macros): &{template:pf_attack} {{name=Flurry of Blows}} {{attack=[[ 1d20 +@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{crit_confirm=[[ 1d20 +@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{damage=[[1d8+@{Komodo|STR-mod}*2+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{crit_damage=[[1d8+@{Komodo|STR-mod}*2+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{attack2=[[ 1d20 +@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{crit_confirm2=[[ 1d20 +@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{damage2=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{crit_damage2=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{attack3=[[ 1d20 +@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{crit_confirm3=[[ 1d20 +@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{damage3=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{crit_damage3=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} Let me know if that helps.
That. Is. AWESOME!!! Thank you so much!! Just as a side note out of curiosity, since it won't matter for several more levels when I can pick up Improved Critical, but what is modified in this macro to account for a change in the threat range (as from only on a 20 to 19-20)?
1477170884

Edited 1477170927
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Where you see the 1d20, just change that to 1d20cs&gt;X where X is the start of your crit threat range (so 19 for improved critical). The "&gt;" actually means greater than or equal to in roll20 dice syntax rather than just greater than. I've bolded the 1d20's in my post above for ease of sight. The Dice Reference Wiki has lots of great info on everything you can do with dice rolls:&nbsp;<a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a>
Thanks again!! :)