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 .
×

D&D 2024 5E: Require assistance with nested macro

Hello, I am currently trying to get this macro to fully function. I was able to get the Greatsword and Javelin portion of this macro working correctly but when attempting to use the Unarmed portion, the code falls apart. The picture below should be a dropdown menu and not a text box.   Here's my current code: &{template:atkdmg} ?{Greatsword, Javelin, or Unarmed?| Greatsword,{{mod= [[ 10 ]] }} {{rname= Greatsword +1 }} {{r1= [[ 1d20 + 5[STR] + 4[PB] + 1[Magic Weapon] ]] }} {{?{What kind of roll?|Normal,normal=1|Advantage,advantage=1|Disadvantage,disadvantage=1}}} {{r2= [[ 1d20 + 5[STR] + 4[PB] + 1[Magic Weapon] ]] }} {{attack=1}} {{range= Melee, Heavy, Two-Handed%NEWLINE%Reach 5 ft }} {{damage=1}} {{dmg1flag=1}} {{dmg1= [[ 2d6[Weapon Die] + 5[STR] + 1[Magic Weapon] + 4[Great Weapon Master] + ?{Raging?|No,0|Yes,2}[Rage] ]] }} {{dmg1type= Slashing }} {{damage=1}} {{dmg2flag=1}} {{?{Are you or the target submerged in water?|No,dmg2= [[ 0 ]]|Yes,dmg2= [[ 1d4 + 4[PB] ]] } }} {{dmg2type=Cold }} {{crit1= [[12]] }} {{crit2= [[4]] }} {{desc= Graze [Weapon Mastery] - If your attack roll with this weapon misses a creature, you deal [[ 5[STR] + ?{Raging?}[Rage] ]] slashing damage. %NEWLINE%%NEWLINE%[Expend Bubble Dominions?](`#Bubble-Dominion)}} {{charname= Kuyo Avest }} | Javelin,{{mod= [[ 9 ]] }} {{rname= Javelin }} {{r1= [[ 1d20 + 5[STR] + 4[PB] ]] }} {{?{What kind of roll?|Normal,normal=1|Advantage,advantage=1|Disadvantage,disadvantage=1}}} {{r2= [[ 1d20 + 5[STR] + 4[PB] ]] }} {{attack=1}} {{range= Melee, Ranged%NEWLINE%Range 30/120 ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1= [[1d6 + 5[STR] + ?{Raging?|No,0|Yes,2}]] }} {{dmg1type=Piercing}} {{damage=1}} {{crit1=[[6]]}} {{desc= Slow [Weapon Mastery] - If you hit a creature with this weapon and deal damage to it, you can reduce its Speed by 10 feet until the start of your next turn. If the creature is hit more than once by weapons that have this property, the Speed reduction doesn’t exceed 10 feet. }} {{charname= Kuyo Avest }} | Unarmed,?{Attack, Grapple, or Shove?|Attack,{{mod= [[ 9 ]] }} {{rname=Unarmed}} {{r1= [[ 1d20 + 5[STR] + 4[PB] ]] }} {{?{What kind of roll?|Normal,normal=1|Advantage,advantage=1|Disadvantage,disadvantage=1}}} {{r2= [[ 1d20 + 5[STR] + 4[PB] ]] }} {{attack=1}} {{range= Melee, Reach 5 ft }} {{damage=1}} {{dmg1flag=1}} {{dmg1= [[1d?{Two hands or one hand free?|Two,8|One,6}[Unarmed Fighting Feat] + 5[STR] + ?{Raging?|No,0|Yes,2}[Rage] ]] }} {{dmg1type= Bludgeoning }} {{damage=1}} {{crit1= [[ ?{Two hands or one hand free?} ]] }} {{crit2=}} {{desc= Unarmed Fighting [Feat] - At the start of each of your turns, you can deal [[ 1d4 ]] Bludgeoning damage to one creature grappled by you. }} {{charname= Kuyo Avest }}|Grapple,{{save=1}} {{saveattr=STR or DEX}} {{savedesc=The target is not grappled on success.}} {{savedc= [[ 8 + 5[STR] + 4[PB] ]] }} {{desc=If the target fails the saving throw and is large or smaller, the target is grappled.}}|Shove,{{save=1}} {{saveattr=STR or DEX}} {{savedesc=The target is not shoved on success.}} {{savedc= [[ 8 + 5[STR] + 4[PB] ]] }} {{desc=If the target fails the saving throw and is large or smaller, the target is ?{Shoved or Proned?|Shoved,pushed 5 ft away|Proned,knocked prone}.}} } I assume it's because of the query of Attack, Grapple, or Shove? that's immediately presented when choosing Unarmed but I'm not sure.
1781795035

Edited 1781795279
You have double and triple nested queries, and each additional layer of nesting requires each double-nested '&' symbol to be replaced with an html entity as well. You also have several items that don't need to be nested or within a query at all, such as {{charname= Kuyo Avest }} Edit because I can read better: As you're using the 2024 sheet, there may be a simpler way to do what you are looking for, and you could use attributes from your character sheet instead of hard-coding the values into the query. But I haven't used the 2024 sheet enough to know which attributes are able to be called.