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

Need Help for 5eOGL Rogue: Cunning Attack Macro

So, I'd like to set up a Macro for my PC's Rogue, using the (1D&D Playtest) Cunning Action feature (an ability where they forego Sneak Attack dice to do something else.) I first set up individual templates for each that look like this: &{template:npcaction} {{name=Elliot Daggerfell}} {{rname=Cunning Strike: Disarm}} {{save=1}} {{saveattr=saveattr}} {{savedesc=savedesc}} {{savedc=[[8+@{Elliot Daggerfell|dexterity_mod}+@{Elliot Daggerfell|pb}]]}} {{desc=The target must succeed on a Dexterity saving throw, or it drops one item of your choice that it’s holding}} So it outputs (more or less) how I want: (Really, I'd like to use an NPC action template for prettiness factor, but I can't see a way to make it display the Saving Throw) I then wanted to roll it up in a Drop-down Menu so he only needs 1 Button in the Token Action Bar. I went through the fun of converting the templates to nested queries HTML bits, so now it looks like this mess: &{template:dmg} {{rname=Cunning Strike: DISARM}} {{save=1}} {{saveattr=Dexterity}} {{savedc=[[8+@{Elliot Daggerfell|dexterity_mod}+{Elliot Daggerfell|pb}]]}} {{desc=The target must succeed on a Dexterity saving throw, or it drops one item of your choice that it’s holding}} {{charname=Elliot Daggerfell}} but something's hung-up, and I can't discern the why. I made the drop-down/Ability query as such (matching information on the Wiki:) ?{Choose a Cunning Attack Action| DISARM,%{Elliot Daggerfell|CSDISARM} | POISON,%{Elliot Daggerfell|CSPOISON} | TRIP,%{Elliot Daggerfell|CSTRIP} | WITHDRAW,%{Elliot Daggerfell|CSWITHDRAW}} But the drop-down breaks: It seems to be flagging on the pipe in the attribute call for PB, but I can't figure out the cause or if there's a fix. :( Worse to worst, I can make separate Action buttons for each ability, just was trying to keep it (visually) clean and learn some macro'ing. Thanks in advance to all for any help and advice!
1689094037

Edited 1689094455
Gauss
Forum Champion
Hi Jukite,  The problem you are having is that when you do a query the entirety of the macro is being loaded into your query. This runs into nesting problems. As a result you have to replace all sorts of control characters with HTML Entities  which you have done, but there may be a problem with your HTML entities.  It is infinitely easier to use Chat Menus instead. 
Thanks so much for the feedback Gauss; I figured it's somewhere in there, but I read you shouldn't ever use HTML subs on attribute calls...and it's weird it breaks down at the | pb  call and not the | dexterity_mod  call before that :/ Anyways, chat-menu was my next go-to. Having not played with them in awhile, do you know if they can be nested in the weapon  description and run: or will it be easier to make an Ability in the A&A tab and run it from there? (Sorry for weird/stupid question!)
1689097550
Gauss
Forum Champion
Yes, you can stick Chat Menus in the description. I do that all the time for my players. 
Sweet, thank you so much your insight!
1689097932

Edited 1689097946
Gauss
Forum Champion
If you want to make them look nice (rather than dull grey buttons) let me know. 
Thank you! I have them in a template with the pink buttons (which what I like lol,) but if my player has an idea or preference for something else, I post back here!