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

Making a Class action that changes depending on weapon crits (Sneak attack Macro)

Basically what I'm trying to do is make a macro in the class actions for sneak attacks that apply to the weapon hits. I can get the correct code for the sneak attacks which is: [[[[round(@{rogue_level}/2)]]d6]] but I wanted to know if there is a way that from here it will know if the weapon attack is a crit and automatically roll for a second number like the standerd attack does.
Using the class actions section I would suggest just making a second line with:  If a crit additional [[[[round(@{rogue_level}/2)]]d6]] damage. That way it's there if you get a crit. 
Can't do if/then style statements without using an api script.
SkyCaptainXIII said: Can't do if/then style statements without using an api script. He's not saying to do an if/then statement, just have an additional line to do the roll for the extra damage if it's needed
Liam said: SkyCaptainXIII said: Can't do if/then style statements without using an api script. He's not saying to do an if/then statement, just have an additional line to do the roll for the extra damage if it's needed Basically it would kind of be an if/then statement because I need it to be hidden if they don't hit the crit, so it will only show the roll when a crit is made
1461285959

Edited 1461286190
Since you're refer to "Class Actions", it sounds like you're using the Community Contributed Character Sheet for D&D 5e . There's currently no way to add anything to weaponcritdmg via a class action (which is the Roll Template property which displays on a crit). Instead, you would have to input the sneak attack information directly into fields within the weapons tab of the Character Sheet. e.g. you could append something like the following into both "damage dice" and "crit dmg" fields: + [[ceil(?{Sneak Attack?|No, 0|Yes, @{rogue_level}} / 2)]]d6 [Sneak Attack]