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

Macro - Ambush maneuver

How can I set up a macro to add superiority dice to a stealth roll.  I've tried several positions but I either get a no attribute found error or  TypeError: Cannot read properties of undefined (reading 'substring') I want to keep the same look. My character wears heavy armor, so I always roll at disadvantage. @{Mirtam "Tam" Unathoc|stealth_roll} @{superiority_dice}[Superiority Dice]}
1667834194
Gauss
Forum Champion
Hi, need some information to help here.  Which character sheet are you using? (there are multiple 5e sheets) Also, it is always good to describe the mechanic you are using, so people know how it is applied. Even if it is a common mechanic it might have some tweaks in your game.  IIRC, Ambush adds a single superiority die to your Stealth or Initiative roll? 
I'm not sure how to see which sheet is being used, but it appears to be D&D 5E by Roll20. I'm trying to use the Fighter Battle Master maneuver Ambush. Text from Dnd Beyond "When you make a Dexterity (Stealth) check or an initiative roll, you can expend one superiority die and add the die to the roll, provided you aren’t incapacitated." This is what is inputted to chat when I roll stealth from my character sheet:  @{Mirtam "Tam" Unathoc|stealth_roll} I have an attribute for my superiority dice called superiority_dice which has a value of d8. Thanks
1667867527
Gauss
Forum Champion
Ok, so the @{Mirtam "Tam" Unathoc|stealth_roll} cannot be adjusted.  What you can do is add your superiority dice to either a macro of it, or the global skills modifier area.  You can go to the Attributes & Abilities tab, on the left side find the "stealth_roll" line, copy the first box.  It will look similar to this:  @{wtype}&{template:simple} {{rname=^{stealth-u}}} {{mod=@{stealth_bonus}}} {{r1=[[@{d20}+2[dexterity]@{pbd_safe}]]}} {{imposed=(Heavy Armor)}} {{query=1}} {{disadvantage=1}} {{r2=[[@{d20}+2[dexterity]@{pbd_safe}]]}} {{global=@{global_skill_mod}}} @{charname_output} Add +@{superiority_dice} or +1d8 after both instances of @{d20}  Then put that into a Ability macro on the Attributes & Abilities tab.  Alternately, you can create an entry in the Global Skill Modifier field to add +1d8 to a skill when you roll it.