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

Pulling trait descriptions for npcs macro

1567434853

Edited 1567434930
First off sorry if this has been answered before, I looked around and couldn't find anything to directly help with this. I am using a variant of this macro for actions and changed it to work with traits, the only issue is that the macro cant seem to find the trait descriptions, it adds the names to the table just fine but wont display the description when I click the trait name. /w gm&{template:npcatk} {{name=@{selected|npc_name}}} {{rname=Actions}} {{r1=[[3]] }} {{normal=1}} {{description=1:[@{selected|repeating_npctrait_$0_name}](~selected|repeating_npctrait_$0_npc_desc) 2:[@{selected|repeating_npctrait_$1_name}](~selected|repeating_npctrait_$1_npc_desc) 3:[@{selected|repeating_npctrait_$2_name}](~selected|repeating_npctrait_$2_npc_desc)}} No ability was found for %{selected|repeating_npctrait_npc_description} Dungeon Master (GM): selected|repeating_npctrait_$0_npc_description I just get the above in the form of an error then I say the below in general chat.
1567500719
GiGs
Pro
Sheet Author
API Scripter
It's looking for an Ability or Button, not an Attribute, and npc_description is probably an attribute. You'll need to use a different syntax. See this link:&nbsp; <a href="https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Buttons_In_Chat</a> My guess is this: [@{selected|repeating_npctrait_$0_name}](~selected|repeating_npctrait_$0_npc_desc) should be [@{selected|repeating_npctrait_$0_name}]( !&amp;#13;&amp;#37;{ selected|repeating_npctrait_$0_npc_desc})
I'll try that, thank you