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] 2 ? Answer "is it sneak attack" and is it possible to detect Critical Hit/Failure and do something based on that without API?

1439176221

Edited 1439177006
So I'm not sure if I should post this here or in the  Pathfinder Sheet thread, but since it can be used anywhere I will try outside it first. I Dual Wield Weapons, and as much as I like the Pathfinder Sheet (linked above) I can't always understand what I should be entering to make it work as it should. For this reason I replace the Attack Macros with my own Macros and have come to find that I lose the ability to check for Critical Hits. I need something to happen on failure because our GM instantly breaks the weapon if its a Confirmed Failure, and plays it normally if it's a Critical Hit. On top of that, I am able to do Sneak Attack just to add further dice rolls. Currently, all this information is displayed, even if it's not needed. And I'm left wondering, can I do it better? Using the above Character Sheet for Pathfinder, I replace the Macro Text to show the following &{template:pf_attack} {{name=Digro: Baraket - The Sword of Pride}} {{Attack=[[1d20cs>18+10]] | Crit Confirm [[1d20cs>18+10]] }} {{Damage (Weapon)=[[1d6+8]] }} {{Damage (Critical)=+ [[1d6+8]] }} {{Damage (Sneak)=+ [[3d8]] }} {{Call Them Blind=[[1d4+@{Digro|Level} ]] }} {{type=@{type} }} {{description=Runelord Xanderghul's Sword of Pride}} Results in If its a Full Round, I attack with the sword, and a Acid Damaging Dagger (different stats) and can if I'm lucky, get a third attack with a Dancing Dagger. So, can I "read" what the first attack roll is, and reference that roll for the other attacks? And on top of that, can I say "Yes/Y" to "Is this a Sneak Attack?" and get it to roll that if its applicable - and how is that written? Edit: "Call them Blind" is a further Critical Hit roll, that when a Crit happens, this needs to be rolled as well. It's for a Custom Feat.
AnokFero said: So, can I "read" what the first attack roll is, and reference that roll for the other attacks? And on top of that, can I say "Yes/Y" to "Is this a Sneak Attack?" and get it to roll that if its applicable - and how is that written? This is unfortunately not explicitly possible without the use of the API, a Pro-level perk. Alternatively, you could nest API Command Buttons within your Roll Templates that would generate additional rolls or Roll Templates when pressed.
1439182750
vÍnce
Pro
Sheet Author
The roll template for pf_attack has logic built-in to only show crit confirm and crit damage if a crit is scored, but you have to use the appropriate key's for it to work. {{attack=foo}} {{damage=foo}} {{crit_confirm=foo}} {{crit_damage=foo}} must be included in your macro. In your example above you are including a crit confirm on the same line as an attack, so the roll template doesn't know what you want.  The roll template only recognizes a key as that name to the left of the "=".  Using the proper key=value syntax would help eliminate some of the extra info you are showing on every attack as well as check for crits.  BTW, you can include additional attacks(up to 8 attacks) by adding a number to the appropriate key, ie {{attack2=foo}} {{damage2=foo}} {{crit_confirm2=foo}} {{crit_damage2=foo}} You could use a query for the additional damages ie {{damage=[[ 1d6 + [[(?{Sneak Attack?(1 for yes)|0}*@{selected|class-0-level}/2)d6 ]][sneak damage] + [[ ?{Call them Blind?(1 for yes)|0}*(@{selected|class-0-level}+1d4) ]][call them blind damage] ]] }} If Call them Blind needs a crit roll, you need to give it it's own attack and damage in the macro. ie  {{attack3=CtB foo}}  {{damage3=foo}} in order for pf_attack to check for crit_confirm and roll crit_damage. Clear as mud?  :-)  I'm sure there are other ways, (probably much better) to do this as well.