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

False Crits in my Macro - please help

Hello, I have modified an attack button using the macro below.&nbsp; The problem is, sometimes when the proficiency roll is 4 (maxed) it gives results as though there is a critical hit (1d20 = 20).&nbsp; I have pasted one of these errored results below. It does not do it all the time though.&nbsp; &nbsp; How can that be fixed?&nbsp; &nbsp;Also it would be nice for the proficiency roll to not display a color at all.&nbsp; Its a little deflating to see that green to hit roll and it not be a true Crit.&nbsp; @{Yonkafi Opry|wtype}&amp;{template:atkdmg} {{mod=+2 against unarmored}} {{rname=Battleaxe }} {{r1=[[@{Yonkafi Opry|d20}cs&gt;20 + 1d4[PROF]]]}} @{Yonkafi Opry|rtype}cs&gt;20 + 1d4[PROF]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8]]}} {{dmg1type=One Handed&nbsp; Slashing }} {{damage=1}} {{dmg2flag=1}} {{dmg2=[[1d10]]}} {{dmg2type=Two Handed Slashing }} {{crit1=[[8+1d8[CRIT]]]}} {{crit2=[[10 + 1d10[CRIT]]]}} 0 {{desc=}}&nbsp; &nbsp;{{spelllevel=}} {{innate=}} {{globalattack=@{Yonkafi Opry|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Yonkafi Opry|global_damage_mod_type}}} ammo= @{Yonkafi Opry|charname_output} <span class="inlinerollresult showtip tipsy-n-right fullcrit" original-title=" Rolling 1d20cs>20 + 1d4[PROF] = ( 10 )+( 4 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help; color: rgb(63, 179, 21);">14 &nbsp; &nbsp; <span class="inlinerollresult showtip tipsy-n-right" original-title=" Rolling 1d20cs>20 + 1d4[PROF] = ( 12 )+( 2 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help;">14 Battleaxe&nbsp; (+2 against unarmored) Yonkafi Opry <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 1d8 = ( 6 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help;">6 &nbsp;+&nbsp;<span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 8+1d8[CRIT] = 8+( 5 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help;">13 One Handed Slashing &nbsp; &nbsp; <span class="inlinerollresult showtip tipsy-n-right" original-title=" Rolling 1d10 = ( 7 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help;">7 &nbsp;+&nbsp;<span class="inlinerollresult showtip tipsy-n-right" original-title=" Rolling 10 + 1d10[CRIT] = 10+( 4 )" style="box-sizing: content-box; font-size: 1.2em; line-height: 12px; background-color: transparent; border: 0px; padding: 0px; cursor: help;">14 Two Handed Slashing
1688066830

Edited 1688066839
Try putting the Proficiency Bonus in brackets to see if that will prevent the d4 'max roll' from triggering the crit roll. (&nbsp; 1d4[PROF]] becomes&nbsp; [[1d4]][PROF]] ) @{Yonkafi Opry|wtype}&amp;{template:atkdmg} {{mod=+2 against unarmored}} {{rname=Battleaxe }} {{r1=[[@{Yonkafi Opry|d20}cs&gt;20 + [[1d4]] [PROF]]]}} @{Yonkafi Opry|rtype}cs&gt;20 + [[1d4]] [PROF]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8]]}} {{dmg1type=One Handed&nbsp; Slashing }} {{damage=1}} {{dmg2flag=1}} {{dmg2=[[1d10]]}} {{dmg2type=Two Handed Slashing }} {{crit1=[[8+1d8[CRIT]]]}} {{crit2=[[10 + 1d10[CRIT]]]}} 0 {{desc=}}&nbsp; &nbsp;{{spelllevel=}} {{innate=}} {{globalattack=@{Yonkafi Opry|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Yonkafi Opry|global_damage_mod_type}}} ammo= @{Yonkafi Opry|charname_output}
1688067526

Edited 1688067623
Gauss
Forum Champion
This will prevent it: 1d4cs5 It sets the critical threshold to 5, if you also want to get rid of critical failure you can do 1d4cs5cf0
"This will prevent it: 1d4cs5cf0" It sure did! &nbsp; &nbsp;Thank you