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

NPC Trait Display Macro

im trying to get a macro that displays NPC traits, the one ive been trying to use is this.  it displays the name correctly but the description gives me:  selected|repeating_npctrait_$0_desc /w gm @{selected|wtype}&{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}}
1586804006
GiGs
Pro
Sheet Author
API Scripter
The character sheet was recently updated and changed the desc attribute to description. So try changing the last part to {{description=@{selected|repeating_npctrait_$0_description}}}
That worked!  Thank u sooo much!
1586804468
GiGs
Pro
Sheet Author
API Scripter
you're welcome :)
First, thank you for the assist. Second, Why?  Why?  Why?  It is stuff like this that drives people nuts.  Macros that worked forever all of a sudden get broken.  Then, after a bunch of wasted time trying to figure out the minor tweak that got made to the character sheet, I get to waste a bunch more time going back through and changing "desc" to "description."  Was there some burning reason to change "desc" to "description"?  Why mess about with what isn't broken?
1588455878
GiGs
Pro
Sheet Author
API Scripter
I feel you, it seems weird. You shouldnt change an attribute without good reason, precisely because of things like this.
1588459107
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I complained, too. To the end user it feels arbitrary and pointless. I've been assured there were sound future-planning reasons for it.
Hmmm... maybe using desc as a "descending" keyword? That could be useful...