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

Battlemaster Nesting Ability Help

1617104835

Edited 1617104963
Hey guys, I'm fairly new to making macros on roll20 and I'm trying to create an ability that will make it easier for myself to use my Battlemaster's Maneuvers. The idea is that I have an ability set up to be the regular " Hand Crossbow Attack ", then have another set up that is the " Hand Crossbow Trip Attack " which is the same as the first ability, but it deals extra damage and has the description set up for the Trip attack maneuver. Then what I do is I have an ability set up that nests these 2 abilities, and I use this specific ability when I want to attack creatures. However, no matter what I do, it refuses to work, I've asked friends on what to do and no one can figure it out. Here are the abilities that I'm using. Note: the 'maneuverdie' is an attribute that I made that rolls a d8 while the 'maneuverdiecrit' is an attribute that is equal to 8 (We're using brutal crits) Hand-Crossbow @{Pearl Vidalia|wtype}&{template:atkdmg} {{mod=+[[@{dexterity_mod}+@{pb}+2]]}} {{rname=Hand Crossbow}} {{r1=[[@{Pearl Vidalia|d20}cs>20 + @{dexterity_mod}[DEX] + @{pb}[PROF] + 2[MOD]]]}} @{Pearl Vidalia|rtype}cs>20 + @{dexterity_mod}[DEX] + @{pb}[PROF] + 2[MOD]]]}} {{attack=1}} {{range=30/120}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d6 + @{dexterity_mod}[DEX]]]}} {{dmg1type=Piercing}} {{dmg2flag=}} {{dmg2=}} {{dmg2type=}} {{crit1=[[6[CRIT]]]}} {{crit2=[CRIT]]]}} 0 {{desc=}}   {{spelllevel=}} {{innate=}} {{globalattack=@{Pearl Vidalia|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Pearl Vidalia|global_damage_mod_type}}} ammo= @{Pearl Vidalia|charname_output} Trip-Attack @{Pearl Vidalia|wtype}&{template:atkdmg} {{mod=+[[@{dexterity_mod}+@{pb}+2]]}} {{rname=Hand Crossbow}} {{r1=[[@{Pearl Vidalia|d20}cs>20 + @{dexterity_mod}[DEX] + @{pb}[PROF] + 2[MOD]]]}} @{Pearl Vidalia|rtype}cs>20 + @{dexterity_mod}[DEX] + @{pb}[PROF] + 2[MOD]]]}} {{attack=1}} {{range=30/120}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d6 + @{dexterity_mod}[DEX]]]}} {{dmg1type=Piercing}} {{dmg2flag=}} {{dmg2=}} {{dmg2type=}} {{crit1=[[6[CRIT]]]}} {{crit2=[CRIT]]]}} 0 {{desc=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 DC [[8+@{dexterity_mod}+@{pb}]] Strength saving throw. On a failed save, you knock the target prone.}}   {{spelllevel=}} {{innate=}} {{globalattack=@{Pearl Vidalia|global_attack_mod}}} {{globaldamage=[[@{maneuverdie}]]}} {{globaldamagecrit=[[@{maneuverdiecrit}]]}} {{globaldamagetype=@{Pearl Vidalia|global_damage_mod_type}}} ammo= @{Pearl Vidalia|charname_output} Crossbow Nesting ?{Manuevers?|No, %{Pearl Vidalia|Hand-Crossbow} |Trip Attack, %{Pearl Vidalia|Trip-Attack}} I get this when I try to use the Crossbow Nesting ability Then nothing happens, any help would be appreciated.
1617200384
timmaugh
Forum Champion
API Scripter
The problem you're running into is that Roll20 is expanding your abilities within the roll query BEFORE asking for the roll query. You can see this at the order of operations slug in the wiki. What that means is that you are likely running into nested braces that break your roll query syntax. For reference, here is the slug with basic info about nesting in a roll query , which has an example of nesting abilities -- which you're doing correctly *in* the roll query. As I said, you have to get around the characters in your embedded abilities (Crossbow & Trip) that will break the still-not-finished-processing-roll-query when they are expanded by Roll20 parsers. You do that with HTML substitutions . For instance, your closing braces ( } ) need to become ( } ). This can become a problem if you want to be able to use your individual abilities separate from this combined implementation... because they are stored with the HTML entities replaced, they can't be used directly. They will only work in a deferred setting (like a roll query). I see that you are a Pro user, so if the above won't work for you, there are script solutions for this sort of issue that I can suggest if you have access (or can ask your GM) to install them. If you need one of those, post back.