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 .
×
Create a free account

Issue with NPC Trait macro

April 10 (5 years ago)

Hey everyone,

I'm coming across an issue as of today when I make NPCs. I am playing DnD 5e and using the 5e Character Sheet by Roll20. 

I'm trying to make a medusa with the template I've created with some online help for enemies. The macro for the trait block reads:

/w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}}

This is the printout I get:

No attribute was found for @{selected|repeating_npctrait_-M4WskqyaIBa1G8Zt2HB_desc}
Petrifying Gaze
Medusa

selected|repeating_npctrait_$0_desc

I'm not sure how to tackle this, because it looks like it is finding the repeating trait since it's able to pull the name of it, but for some reason pulling the 'desc' attribute is causing an error. It is displayed as a token action so it only runs when the token is 'selected.' Any help is greatly appreciated!

April 10 (5 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

The attribute name was recently changed. Many folks have run up against this. The solution is to change "desc" to "description"

April 12 (5 years ago)

Wow thank you so much! How can I keep track of changes like this in the future?

April 12 (5 years ago)
Kraynic
Pro
Sheet Author

Watch for character sheet changes in Announcements:

https://app.roll20.net/forum/post/8297517/release-note-for-march-24-2020