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

Legendary description not showing in dropdown

Hi I'm trying to create a dropdown macro for selecting legendary actions. I've got the first action, which is an attack, working fine. However the second action, which is not an attack, refuses to show the description. Here's the full macro code: ?{Legendary Actions | @{Unicorn|repeating_npcaction-l_$0_name}, &{template:atkdmg}{{mod=@{Unicorn|repeating_npcaction_$1_attack_tohit}}}{{rname=@{Unicorn|repeating_npcaction_$1_name}}}{{r1=[[1d20+@{Unicorn|repeating_npcaction_$1_attack_tohit}+0]]}}{{always=1}}{{r2=[[1d20+@{Unicorn|repeating_npcaction_$1_attack_tohit}+0]]}}{{attack=1}}{{range= @{Unicorn|repeating_npcaction_$1_attack_type} (@{Unicorn|repeating_npcaction_$1_attack_range})}}{{damage=1}}{{dmg1flag=1}}{{dmg1=[[@{Unicorn|repeating_npcaction_$1_attack_damage}]]}}{{dmg1type=@{Unicorn|repeating_npcaction_$1_attack_damagetype}}}{{crit1=[[2d6]]}}{{charname=@{Unicorn|npc_name}}} | @{Unicorn|repeating_npcaction-l_$1_name}, &{template:npcaction} {{rname=@{Unicorn|repeating_npcaction-l_$1_name}}} {{description=@{Unicorn|repeating_npcaction-l_$1_description} }} } Typing just the second macro into chat as a normal macro (see below) works exactly as it should, so I'm not sure what I'm doing wrong here. &{template:npcaction} {{rname=@{Unicorn|repeating_npcaction-l_$1_name}}} {{description=@{Unicorn|repeating_npcaction-l_$1_description}}} Any advice would be greatly appreciated! Many thanks
Okay, I figured out what the problem was. The description contained a comma, so I removed it and it now works. Any suggestions on how I can work around this? I don't really want to have to remove commas in all the legendary action descriptions. Thanks
1593179761
Kraynic
Pro
Sheet Author
Instead of a query, you could do a chat menu instead.&nbsp; That totally avoids the issue with the query thinking each comma is the start of a new option/entry. Chat menus are one of the entries in the stupid tricks thread (the first post is an index) pinned at the top of this forum.&nbsp; <a href="https://app.roll20.net/forum/permalink/5927072/" rel="nofollow">https://app.roll20.net/forum/permalink/5927072/</a>