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

Pathfinder 2e Sheet - Critical Damage chat button in ability macro.

I could use a bit of help. I'm trying to set up a custom ability in my PF2 character sheet, that allows me to use the Blasting Beam deviant feat as an automatic attack. Seeing as it's neither a strike nor a spell it falls into this wierd niche that requires a custom ability so you don't need to manaually roll the attack and damage. However, in part due to my inexperience with macro editing and in part due to the lack of documentation on the PF2 sheet templates, I cannot figure out how to implement a critical hit button. Here's my code: @{Azzy|whispertype} &{template:rolls} {{limit_height=@{Azzy|roll_limit_height}}} {{notes_show=@{Azzy|roll_show_notes}}} {{info01_name=^{action_type}}}{{info01=1-action}}{{info02_name=^{traits}}}{{info02=Rare, Attack, Deviant, Evocation, Magical}} {{info03_name=^{range}}}{{info03=30 feet}} {{info04_name=^{energetic meltdown}}}{{info04=[[1d20]] flat check}} {{notes=A directed beam of heat or an arc of lightning is one of the simplest ways to project energy. You fire a blast or beam from one hand. Make an attack roll against a creature within 30 feet. If you succeed, the beam deals 1d6 damage for every 2 levels you have to the target, or double damage on a critical success. }} {{roll01_name=^{attack}}} {{roll01= [[1d20cs20cf1 + (@{Azzy|spell_attack})[@{Azzy|text_modifier}] + ()[@{Azzy|text_bonus}]]]}} {{roll01_type=attack}} {{roll01_info=}} {{roll01_critical=1}} {{roll02_name=^{damage}}} {{roll02= [[[[floor(@{level}/2)]]d6 + (0)[MISC]]] }} {{roll02_type=damage}} {{roll02_info=electricity}} And here's what that looks like: How can I add the chat button to roll critical damage? Any help would be greatly appreciated.
1686089287

Edited 1686089725
Gauss
Forum Champion
I don't think you can natively. But you could put in a second damage box for Critical hits specifically, then mentally add them together.  Could you elaborate on how this ability works? Might be able to come up with a more streamlined option. Note: I recognize you posted this in the Mods (API Scripts) forum, but this seems to be more of a macro question than an API question. 
Ah, whoops, thank you I'll make a post in macros as well. As for the ability, here it is on archive of nethys: <a href="https://2e.aonprd.com/Feats.aspx?ID=3780" rel="nofollow">https://2e.aonprd.com/Feats.aspx?ID=3780</a> Real simple - attack roll using (in my case) my spell attack modifier, then damage equal to half your level d6. Double on a crit. I've included the flat roll for deviant feats to automatically check for the backlash effect.
1686193750

Edited 1686193793
Gauss
Forum Champion
If you make a regular attack, then roll that you can see how it constructs the critical damage section by clicking on the chat window and hitting the up arrow.&nbsp;&nbsp; I did that and got this (just copy/pasting the section on critical hits):&nbsp; {{roll03_name=^{critical_damage}}} {{roll03=[[[[floor(@{level}/2)]]d6 + (0)[MISC]]] }} {{roll03_type=critical-damage}} {{roll03_info=}} Tack that onto your macro and it should do what you need.&nbsp;
Ok, so this is something else I couldn’t figure out, how do you see a regular attack in plain text?
1686207657
Gauss
Forum Champion
On the character sheet click the attack.&nbsp; Next, in the chat window (where you type) click the window.&nbsp; Then hit the up arrow. Most character sheets will display either the template code for the attack or the character sheet "macro name". If it is the macro name other steps may need to be done to find the template code. However, in the case of the PF2e sheet it will display the template code.&nbsp; After that you have the fun part of comparing the templates, see what is different etc. Puzzling out what to strip out, what to add.
Figured it out: {{roll03misc=[^{roll} ^{critical_damage}](~-MTE_-SznWXJJWJwSs3A|Blasting-Beam-Crit)}} {{roll03_type=critical-damage}} {{roll03_info=electricity}} Add that and the critical damage button will appear. I then made a second macro called "Blasting-Beam-Crit" which looks like this: @{Azzy|whispertype} &amp;{template:rolls} {{limit_height=@{Azzy|roll_limit_height}}} {{header=Blasting Beams}} {{subheader=^{action}}} {{roll01_name=^{critical_damage}}} {{roll01= + [[[[floor(@{level}/2)]]d6 + (0)[MISC]]] }} {{roll01_type=critical-damage}} {{roll01_info=electricity}}