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

D&D 5e OGL Sneak Attack Macro

December 14 (8 years ago)

Edited December 14 (8 years ago)
Hey everyone, I have been searching through the forums and online elsewhere trying to find a Macro for use with the 5E OGL character sheets to roll Sneak attack to include criticals. I'm running a rogue/monk shadow assassin and will be rolling critical sneak attacks often and wanted ot make rolling that a bit quicker. I have found some scripts that come close like the one posted by Michael H. which was [[ (1d6)[attack damage] + (?{Apply sneak attack?(1 to apply)|0}*(@{rogue_level}/2}d6)[sneak attack damage]) ]]
This comes close but in the 5e OGL sheet, the conditional for whether it applies doesn't work and you can't apply it again on crit.
My HTML knowledge is fairly limited so any assistance on this would be greatly appreciated.
Thanks in advance everyone
Edit: I am aware that the rogue_level attribute doesn't work as the 5e OGL doesn't use the same values. I have run this using the base_level attribute to get it to at least run the macro even though it doesn't quite work how it should.
December 14 (8 years ago)
A way that I was able to accommodate this was by adding the Sneak attack damage as the Damage 2 type for the weapon

December 14 (8 years ago)
To add to Kyle G.'s suggestion, here's what I specifically recommend adding to either of the damage fields:
?{Sneak Attack|No, |Yes, + [[ ceil((@{base_level}) / 2) ]]d6 [Sneak Attack]}
December 14 (8 years ago)

Russell S. said:

Edit: I am aware that the rogue_level attribute doesn't work as the 5e OGL doesn't use the same values. I have run this using the base_level attribute to get it to at least run the macro even though it doesn't quite work how it should.

One of my players is doing the same build, and I have made other macros for him that use his rogue_level and monk_level respectively. What I did to make it easier to keep track of in the long run was to create attributes for the character rogue_level and monk_level respectively. For the values I put in (@{base_level}) and (@{multiclass1_level}) with respect to how he set up his character (he took rogue at lvl 1 so rogue_level = (@{base_level}) and monk_level = (@{multiclass1_lvl}) ) Then your @{rogue_level} should work correctly
I tried the suggested fix but now the attack won't run at all. When I click the attack in the Char sheet, it prompts asking if it is a sneak attack then nothing displays or rolls. this happens if the additional script is placed in damage 2 or damage 1 and doesn't matter if that damage is unchecked, if the script is in a damage field it locks and won't run the attack.
December 14 (8 years ago)

Edited December 14 (8 years ago)
Try this, instead:
?{Sneak Attack|No, 0|Yes, [[ ceil((@{base_level}) / 2) ]]d6 [Sneak Attack]}
That works, thank you.
This will work just fine, glad you guys could help.
February 10 (8 years ago)
So I used the above formulae and added to it. you can add this to damage field 1 so you can still have special weapon properties like poison and such in damage field 2. you just adjust the damage dice to the appropriate weapons stats
Sneak Attack Macro add it to weapon damage field 1 adjust damage dice per individual weapons stats
?{Sneak Attack|No, 1d6|Yes, 1d6+ [[ ceil((@{base_level}) / 2) ]]d6 [Sneak Attack]}