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

Traits Macro

I'm having an issue with this macro: /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} It's working on some NPC character sheets but not others. Even when I copy it from the one it's working to a character sheet it's not working. Is there something wrong with the macro or the character sheet making this happen. Is there a fix to this?
1587212584

Edited 1587212636
Ziechael
Forum Champion
Sheet Author
API Scripter
Its a recent change to increase consistency but it broke new compendium drops when using the old macro... you need to change desc to description: /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_ description }}}
1587212636
GiGs
Pro
Sheet Author
API Scripter
There was a change made on that character sheet recently - the attribute name was changed from desc to description. So you need to use /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}} Characters created before the change will still have a copy of the old attribute hidden in their sheet's data, so they will still work, Characters created after the change wont have the desc attribute and for them you'll see the error.
Thank you both