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

Nested abilities and macros

June 01 (5 years ago)

Hey!

I'm playing a fighter in a Dnd 5e game. And I've been trying to create abilities so I can take "options" of attack when the standard attack is done. One friend of mine did all of this with macros, using a code as it follows.

&{template:default}{{name=Maneuvers}} {{[Disarming](#Disarming)}} {{[Trip](#Trip)}}{{[Goading](#Gouding)}}

Taking in consideration, that the macros quoted in the code, does what they do. This display a menu where you can click every macro separately, and when you do that it displays something in the lines of this.


@{selected|wtype}&{template:traits}{{name=Maneuver: Trip Attack}}{{source=Class: Fighter 3rd Level}}{{description=When you hit a creature with a weapon attack, you can expend one superiority die to attempt to knock the target down. You add the superiority die to the attack's damage roll, and if the target is Large or smaller, it must make a Strength saving throw. On a failed save, you knock the target prone.}}

&{template:dmg} {{rname=Superiority die}}{{damage=1}}{{hldmg=2}}{{dmg1flag=1}} {{dmg1=[[1d8}]]}}{{save=1}}{{saveattr=Strength}}{{savedc=[[8 + @{selected|pb}[PROF]+@{selected|dexterity_mod}[DEX]]]}}


The thing is: This works when you do it with macros.

So what's the deal?

I wanna do the same thing using abilities, but in this case i have the issue that when i nested the abilities like this:

&{template:default}{{name=Maneuvers}} {{[Disarming](%{selected|Disarming})}} {{[Trip](%{selected|Trip})}{{[Goading](%{selected|Goading})}}
It does not show them in a "table-like menu" to click the ability, but it does throw the content of every ability at the same time.


My question is: Is there a way to do the thing that i describe with macros with abilities? I'm wondering cause i don't wanna fill my game with 6 or 7 macros and create an issue for my DM.


Thanks!


June 01 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

I'm surprised the macros one works. To get this to work, you have a choice of two different syntaxes:

Ability Command Button Syntax

&{template:default}{{name=Maneuvers}} {{[Disarming](~selected|Disarming)}} {{[Trip](~selected|Trip)}} {{[Goading](~selected|Goading)}}

By the way, your Trip command is missing a }. I added it here.

or API Command Button Syntax

&{template:default}{{name=Maneuvers}} {{[Disarming](!
%{selected|Disarming})}} {{[Trip](!
%{selected|Trip})}} {{[Goading](!
%{selected|Goading})}}

Your Macros in the first example should be using API Command Button syntax, which would look like

&{template:default}{{name=Maneuvers}} {{[Disarming](!
#Disarming)}} {{[Trip](!
#Trip)}}{{[Goading](!
#Gouding)}}


One thing you might do, by the way, is put all the buttons on the same row, like

&{template:default}{{name=Maneuvers}} {{[Disarming](~selected|Disarming) [Trip](~selected|Trip) [Goading](~selected|Goading)}}



By the way, filling your game with mactros wouldnt be an issue for your GM. Whatever you put on your macro sidebar is visible only to you - it doesnt clutter up the GMs screen.

June 01 (5 years ago)

Thanks, I'm gonna try it

June 30 (5 years ago)

Edited June 30 (5 years ago)

Thank you so very much @GiGs, I was trying the same and your API Command Button Syntax solved it for me. <3

one more question maybe: is it possible to whisper that textbox only to myself?

June 30 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

What text box are you referring to?

If you're asking about the button menu, you can put this at the start of a macro to have it whisper to you. Replace the your name part with either your player or character name,

/w "your name" &{template:default}