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

Very little problem with a macro!

I have a very slight problem with a macro...... not showing the text as it should..... (this is the macro below) /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} y esto es lo que aparece en el chat.... The npc sheet is completely filled in (below) I don't understand why the text doesn't reflect correctly .... does anyone know where the error may be? thx
1609261136

Edited 1609261272
Jordan C.
Pro
API Scripter
The trait description uses "@{selected|repeating_npctrait_$0_ description }" instead of desc . When I used yours it had the error " No attribute was found for @{selected|repeating_npctrait_-MPjPv0KEoUyjXGSrOZ9_desc}"  which told me it couldn't find the description using that name This should work: /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}}
hahaha, I knew it must have been some minor glitch but I couldn't find it ..... thank you very much, you are a genius
1609269531
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Yeah, the attribute name was changed early this year, for some internal reasoning. Old characters can still accept desc, unless they are edited in any way. New characters can only use description.
annotated