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

Caharacter Ability - Macro Selection not working

(Adjusting the post topic to be more specific) So! I've been working on some macro work now our game has a couple of APIs up and running - specifically for some uses of the spell catapult. I am running into a problem where the ability I use for my chat menu doesn't execute macros corectly, even though the macros in question work fine when I execute them individually. Could anybody help? Full breakdown below I have set up a chat menu for my spells: works fine! /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} Spell Points Left (@{Echo|class_resource})}}{{[Absorb Elements](~Absorb-Elements)}}{{[Catapult](~Catapult)}}{{[Feather Fall](~Feather-Fall)}}{{[Heroism](~Heroism)}}{{[Identify](~Identify)}}{{[Shield](~Shield)}} I have set up the following three macros for catapult (Caltrops, Balls, Junk) and they work absolutely fine when I use them on their own. Class resource is Spell Points, the repeating resources track my bags of ammo. &{template:default} {{name=Caltrops Catapult}} {{Dsc=@{Echo|character_name} catapults Caltrops at @{target|character_name}!}} {{tgt=**@{target|character_name} Rolls a [[1d20+@{target|dexterity_save_bonus}]] / [[1d20+@{target|dexterity_save_bonus}]] Dex Save vs. Spell Save DC [[@{Echo|spell_save_dc}]]}} {{dmg=[[((?{Cast at what level?|Level 1,1|Level 2,2|Level 3,3|Level 4,4|Level 5,5|Level 6,6|Level 7,7|Level 8,8|Level 9,9}d8)+2d8)]] bludgeoning damage if failed}} &{template:default} {{name=Ball Bearings}} {{Dsc=Caltrops cover a 5-foot-square area. Any creature that enters the area must succeed on a DC 15 Dexterity saving throw or stop moving and take 1 piercing damage. Until the creature regains at least 1 hit point, its walking speed is reduced by 10 feet. A creature moving through the area at half speed doesn't need to make the saving throw.}} !setattr --name Echo --mod --repeating_resource_$2_resource_right|-1 !setattr --name Echo --mod --class_resource|-[[(round(?{Cast at what level?}*1.350+ 0.5833))]] &{template:default} {{name=Balls Catapult}} {{Dsc=@{Echo|character_name} catapults Ball Bearings at @{target|character_name}!}} {{tgt=**@{target|character_name} Rolls a [[1d20+@{target|dexterity_save_bonus}]] / [[1d20+@{target|dexterity_save_bonus}]] Dex Save vs. Spell Save DC [[@{Echo|spell_save_dc}]]}} {{dmg=[[((?{Cast at what level?|Level 1,1|Level 2,2|Level 3,3|Level 4,4|Level 5,5|Level 6,6|Level 7,7|Level 8,8|Level 9,9}d8)+2d8)]] bludgeoning damage if failed}} &{template:default} {{name=Ball Bearings}} {{Dsc=Ball Bearings,Ball bearings cover a level, square area that is 10 feet on a side. A creature moving across the covered area must succeed on a DC 10 Dexterity saving throw or fall prone. A creature moving through the area at half speed doesn’t need to make the save.}} !setattr --name Echo --mod --repeating_resource_$2_resource_left|-1 !setattr --name Echo --mod --class_resource|-[[(round(?{Cast at what level?}*1.350+ 0.5833))]] &{template:default} {{name=Debris Catapult}} {{Desc=@{Echo|character_name} catapults Debris at @{target|character_name}!}} {{target=**@{target|character_name} Rolls a [[1d20+@{target|dexterity_save_bonus}]] / [[1d20+@{target|dexterity_save_bonus}]] Dex Save vs. Spell Save DC [[@{Echo|spell_save_dc}]]}} {{damage=[[((?{Cast at what level?|Level 1,1|Level 2,2|Level 3,3|Level 4,4|Level 5,5|Level 6,6|Level 7,7|Level 8,8|Level 9,9}d8)+2d8)]] bludgeoning damage if failed}} !setattr --name Echo --mod --class_resource|-[[(round(?{Cast at what level?}*1.350+ 0.5833))]] This is the ability I want to use to just pick which of the three (and eventually probably more) ammo types to print into chat. It prints the spell card fine but the query breaks. %{Echo|repeating_spell-1_$2_spell} ?{Ammunition?|Caltrops, #Caltrops-Catapult |Balls, #Bearings-Catapult |Debris, #Debris-Catapult} Eager for any help that may be out there!
1598922664
GiGs
Pro
Sheet Author
API Scripter
This is a very common problem - you are trying to nest a macro containing query-breaking characters inside a query.  Change your dropdown to another chat menu, and the problem will go away.
Ahh. Right, that makes sense. Pardon, still new to this. Solution sounds simple enough. Thanks for confirming!