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

Please help me with this trait macro...

I have searched absolutely everywhere, and cannot find a single thing to help me out. I used to use this old format in order to have my NPC/monster traits pop up, and it gave me not only the title, but the actual description of said trait in the chat; /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} I have read in multiple different topics and threads that "desc" was updated to "description" not long ago, however, I made the changes, and now I don't get the " selected|repeating_npctrait_$0_desc" but now, no description for the trait pops at all. This is the code I have tried to put in. Please help....it's very frustrating, and I'm fully aware how frustrating it might be for some of you who constantly see this type of thing pop up in the forums, I just don't know where else to look at this point. I'd really like to try and get this going before my D&D campaign starts, and between preparing for that, and trying to work out things like this, it's been a lot of time invested. Thank you.
1611985733
Oosh
Sheet Author
API Scripter
I can't see a problem with the code there. Do you get anything if you just put the @{selected|repeating_npctrait_$0_description} in chat? Is the character definitely set up with npc traits, and not player character traits? They have different repeating section names. You can try messing with the index to see if something has bugged out with the rows as well... dump something like this in chat and see if the description you're looking for pops up: /w gm &{template:npcaction} {{name=Traits}} {{description=$0: @{selected|repeating_npctrait_$0_description} $1: @{selected|repeating_npctrait_$1_description} $2: @{selected|repeating_npctrait_$2_description} $3: @{selected|repeating_npctrait_$3_description}}}