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

Traits Macros for NPC

Hi, So saw this in the Traits macro post. The first trait pulls just fine. But why won't second Trait pull? &{template:npcaction} {{name=@{selected|npc_name}}}{{rname=@{selected|repeating_npctrait_$0_name}}}{{description=@{selected|repeating_npctrait_$0_description}}} {{rname=@{selected|repeating_npctrait_$1_name}}}{{description=@{selected|repeating_npctrait_$1_description}}}
1664582169

Edited 1664582201
Kraynic
Pro
Sheet Author
You can probably only use the "rname" and "description" sections of the roll template once per macro.  If you run this, does it work? &{template:npcaction} {{rname=@{selected|repeating_npctrait_$1_name}}}{{description=@{selected|repeating_npctrait_$1_description}}}
1664582467

Edited 1664582531
Gauss
Forum Champion
Ok, first you will need  &{template:npcaction} {{name=@{selected|npc_name}}} for the second $1 line.  With that said, just adding that isn't enough, it wouldn't work that way either. So I was looking it over, but I couldn't see the difference between the $1 and the $0 lines. I solved it by taking the working section ($0) and copying and pasting that then substituting $1 for $0. That worked.  &{template:npcaction} {{name=@{selected|npc_name}}}{{rname=@{selected|repeating_npctrait_$0_name}}}{{description=@{selected|repeating_npctrait_$0_description}}} &{template:npcaction} {{name=@{selected|npc_name}}}{{rname=@{selected|repeating_npctrait_$1_name}}}{{description=@{selected|repeating_npctrait_$1_description}}}
I'm not sure which 'traits post' you are referring to (you didn't include a link to it) but you might be interested in a universal chat menu macro mule .
Gauss that worked. Appreciate it. Thank you all for your help.