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 .
×

If statements for combat (Pathfinder specific)?

So, I've got characters that have multiple different weapons (natural attacks, specifically, with one mixing in Monk unarmed strikes), and I've got macros set up for them, so I can one-button-go it. But I want to know if there's any way to use an if-statement, or a comparison, to tell my macro "critical threat rolled, roll confirmation" so I can save some space... you know, since natural attacks have a threat range of 20.    
1535230470
GiGs
Pro
Sheet Author
API Scripter
No, there's no way to use if statements with standard macros. Pro users have a couple of ways to do it, via API scripting. As a free user, the best you can do is print out a button with your attack to roll the critical and/or damage.
Yeah, that's basically what I've got going right now, but it mildly annoys my GM to have to figure out if it's a critical or not before he says if the damage kills the mob. But it annoys the bleeding heck out of ME to have to hit multiple buttons to do one attack sequence, and you can't change your die roll in the regular box.
Soooo, can you make your attack roll be 1d20cs20 for the natural rolls and 1d20cs>18 or what ever the threat range is for your weapons, and just have the DM be able to see that the die roll has come up green?
What I mean, Arandor, is if you look at how the actual attack blocks work on the Pathfinder sheets, the actual attack stat block only rolls critical confirmation/damage if you roll within the indicated threat range. On the other hand, if you build a macro for it from scratch, you either have to roll again if it comes up as a crit threat, or you have to build the macro to automatically roll them regardless of if you've threatened or not... At least that's what I'm seeing, and that's what G G has confirmed. But only because I'm a freebie member and can't use the API scripting.
Which Pathfinder sheet are you using?
I didn't make the room, so I'm not entirely certain. I don't think I knew there was more than one. I'm assuming you don't mean the PC vs NPC sheets.    
1535277251

Edited 1535277297
GiGs
Pro
Sheet Author
API Scripter
The pathfinder sheet is probably using a rolltemplate, and does a hidden roll for the critical on every roll. You dont see them because the rolltemplate hides them, unless the attack roll is in the threat range. You cvan take advantage of that. Click a roll button on the character sheet so it prints an attack roll in chat.  Now click your mouse in the chat box and press the UP arrow. This will show the last roll made, and you can grab and copy it out You can now use that as a template to make your own rolls, and should be able to get the same behaviour that the sheet has. Just replace the attributes as needed.
Why... Why the heck didn't I think of that? I've DONE that before, by accident... The important note is that, if I build an attack in the attack page, then copy it to a macro, it works perfectly. G G, I bow to your mastery of the system.
1535452895
GiGs
Pro
Sheet Author
API Scripter
Hehe, you're welcome.