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

Sneak attack as Attacher not working - Shaped Sheet 5E

I would like to add a clickable button for performing Sneak Attack below each weapon attack my rogue makes.&nbsp; When I click that button I would like something like the following output: &amp;{template:5e-shaped} {{character_name=@{Cel|character_name}}} @{Cel|show_character_name} {{title=Sneak attack}} {{attack_damage=[[2d6[damage]]]}} {{has_attack_damage=1}} In fact, when I paste this code directly into the Chat box it works fine and shows: The first problem is that when I try to make a clickable button with the following, it does not show me the button when I execute it directly in the Chat box: [Sneak attack](~&amp;{template:5e-shaped} {{character_name=@{Cel|character_name}}} @{Cel|show_character_name} {{title=Sneak attack}} {{attack_damage=[[2d6[damage]]]}} {{has_attack_damage=1}}) Instead of the clickable button, I get the same output as the image above.&nbsp; And when I try that code in the Attacher like so: It does not work either. When I make a Rapier attack, for instance, there is no clickable Sneak Attack button and it produces the following messed up output: I am aware that it may be possible to add a Sneak Attack button for each weapon individually, as detailed in the following links: <a href="https://app.roll20.net/forum/post/6375001/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/6375001/slug%7D</a> &nbsp; <a href="https://bitbucket.org/mlenser/5eshaped/wiki/Creating%20and%20Linking%20Character%20Abilities#markdown-header-sneak-attack" rel="nofollow">https://bitbucket.org/mlenser/5eshaped/wiki/Creating%20and%20Linking%20Character%20Abilities#markdown-header-sneak-attack</a> &nbsp; I do not want to do that though, as it should be possible to do it generally with an Offense Attacher...
I have the code for the button in the freetext area. You could try moving the freeform code to the freetext area. Otherwise, I think there needs to be a blank first line in the freeform area.
1537722921
Kryx
Pro
Sheet Author
API Scripter
The recommended way is <a href="https://bitbucket.org/mlenser/5eshaped/wiki/Creating%20and%20Linking%20Character%20Abilities#markdown-header-sneak-attack" rel="nofollow">https://bitbucket.org/mlenser/5eshaped/wiki/Creating%20and%20Linking%20Character%20Abilities#markdown-header-sneak-attack</a> Since you want an attacher you can use the same method as the Ranger:&nbsp; <a href="https://bitbucket.org/mlenser/5eshaped/wiki/Creating%20and%20Linking%20Character%20Abilities#markdown-header-colossus-slayer" rel="nofollow">https://bitbucket.org/mlenser/5eshaped/wiki/Creating%20and%20Linking%20Character%20Abilities#markdown-header-colossus-slayer</a>
Thank you both! Using freetext instead of freeform was half the trick, but had to also move the script to call into a macro and then call the macro with [Make sneak attack](!&amp;#13;#SneakAttack) The result is now as desired, e.g. rapier attack, thanks Doug and Kryx.