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] Crit macro

1471116537

Edited 1471116592
Hey all, I got a small question. I've been searching for a 'crit' macro for a little now, but can't find the answer i'm looking for. I'm using the Pathfinder 3.5 template, and whenever i use the attack roll build into the template, and a crit is rolled, the 'crit confirmed' and 'crit damage' roll decollapses from the roll, showing the values. When  I try to make my own macro, I can't manage to do this in the same macro. Images to show what i'm on about ;  (these are two seperated rolls, the top one crits, the second one is a roll without a crit) I want to make a macro that equally decollapses information when DC20>setvalue in my macro
1471121588
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Use &{template:pf_attack} as the template. It will only expand attack rolls though. Take a look at the template examples in the settings page on the pf sheet.
1471130077

Edited 1471130658
chris b.
Pro
Sheet Author
API Scripter
Edit - sorry misunderstood. You can find macros or sheet code at github, which you can get to via the wiki, look for character sheets . From there you can see  macros per individual sheet or .i think on "building sheets" is the link to github.. thr pathfinder sheet is under pathfinder_neceros sorry not at my computer or I'd just post it.
After a ton of searching the last 2 hours , I found myself it's something build into the PF template itself. it's an option 'crit_confirm' and 'crit_damage'. Now I just need to figure how to toggle it... :/
1471132031
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Toggling it is easy, whenever the corresponding attack is a critical max roll by default or whatever is specified via the cs tag after the dice. The base attack macro is: @{PC-whisper} &{template:pf_attack} @{toggle_attack_accessible} @{toggle_rounded_flag} {{color=@{rolltemplate_color}}} {{header_image=@{header_image-pf_attack-melee} @{header_image-pf_attack-ranged} @{header_image-pf_attack-cmb}}} {{name=pf_attack}} {{name_link=<a href="http://www.url.com" rel="nofollow">www.url.com</a>}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle=subtitle}} {{attack=[[ 1d20cs&gt;10 ]]}} {{damage=[[ 1d6 ]]}} {{crit_confirm=[[ 1d20 ]]}} {{crit_damage=[[ 1d6 ]]}} {{precision_dmg1= [[ 0 ]]}} {{precision_dmg1_type=Precision Dmg local}} {{precision_dmg2=[[ 0 ]]}} {{precision_dmg2_type=Precision Dmg global}} {{critical_dmg1=[[ 0 ]]}} {{critical_dmg1_type=Added Crit Dmg local}} {{critical_dmg2=[[ 0 ]]}} {{critical_dmg2_type=Added Crit Dmg global}} {{type=B}} {{melee_notes=melee notes}} {{ranged_notes=ranged notes}} {{CMB_notes=cmb notes}} {{attack_notes=attack notes}} {{weapon_notes=weapon_notes}} {{=just some text}} {{description=descriptive text will span both columns and wrap as needed.}} {{foo=foo}} {{attack2= [[ 1d20cs&gt;10 ]]}} {{damage2=[[ 1d6 ]]}} {{crit_confirm2=[[ 1d20cs&gt;10 ]]}} {{crit_damage2=[[ 1d6 ]]}} {{precision_dmg21= [[ 0 ]]}} {{precision_dmg1_type=Precision Dmg local}} {{precision_dmg22=[[ 0 ]]}} {{precision_dmg2_type=Precision Dmg global}} {{critical_dmg21=[[ 0 ]]}} {{critical_dmg1_type=Added Crit Dmg local}} {{critical_dmg22=[[ 0 ]]}} {{critical_dmg2_type=Added Crit Dmg global}} I've bolded the important bits for what you want. Anytime the attack roll is a critical, it spawns the corresponding crit_confirm and crit_damage fields.
Perfect! I managed to get it to work. Thanks a ton ! :D