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 .
×
Our team is currently investigating rolling service outages. For more information, visit our most recent Forum Announcements post.
Create a free account

Traits for Token Action

Hi All, I figured out how to do a number of cool things on NPC token bars....the bar that shows up when you click on a token.&nbsp; &nbsp;I used this guy's YouTube and much help from here to understand: <a href="https://www.youtube.com/watch?v=rrbqdkGIa00&amp;t=4s" rel="nofollow">https://www.youtube.com/watch?v=rrbqdkGIa00&amp;t=4s</a> I was able to get all the various things working, except TRAITS.&nbsp; I know what he does is not officially Macros.&nbsp;&nbsp; Trait: /w gm &amp;{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} I tried to do this for the NPC "PRIEST" that is built into Roll20. I want a button for his ability: Divine Eminence As a bonus action, the priest can expend a spell slot to cause its melee weapon attacks to magically deal an extra 10 (3d6) radiant damage to a target on a hit. This benefit lasts until the end of the turn. If the priest expends a spell slot of 2nd level or higher, the extra damage increases by 1d6 for each level above 1st. What I get has the box and it has the name of the Trait, but then in the description, it says: selected|repeating_npctrait_$0_desc I'm sure it's a slight error or that something changed since 2016 when he first made his video.&nbsp; Any help, please?&nbsp; :)
1594913836

Edited 1594913844
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
"desc" was changed to "description" earlier this year, which is probably why the older macros are not working. Try this: /w gm &amp;{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}}
keithcurtis said: "desc" was changed to "description" earlier this year, which is probably why the older macros are not working. Try this: /w gm &amp;{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}} You really are a Forum Champion!&nbsp; &nbsp;Thanks a lot!