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

Features and traits macro (5e roll20 sheet)

I have figured out the NPC traits macro however I am having difficulty parsing out the PC traits. I have some new players who may need to be reminded of their abilities such as bardic inspiration or healing hands and was hoping to have a ability command button whispered to them in chat so that they can be easily reminded of them during combat.  I know that the NPC command looks like this:  /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc}}} But I have yet to figure out PC traits and features. Any help very much appreciated. Thanks! 
1585862690
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Actually, the NPC sheet was recently changed. Newer NPC drops will require the complete word "description". "Desc" or "description" will continue to work for older NPCs. /w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_description}}} for PCs, try: /w gm &{template:npcaction} {{name=@{selected|character_name}}} {{rname=@{selected|repeating_traits_$0_name}}} {{description=@{selected|repeating_traits_$0_description}}}
Thanks Keith! You are a godsend to this community. Another question though, I have now attempted to take this and make it into a ability command button for chat.  /w @{selected|character_name} &{template:npcaction}{{rname=@{Selected|character_name}}}  {{name=Traits}} {{description= [@{selected|repeating_ traits _$0_ name }](~selected|repeating_ traits _$0_ description }) [@{selected|repeating_ traits _$1_ name }](~selected|repeating_ traits _$1_ description }) [@{selected|repeating_ traits _$2_ name }](~selected|repeating_ traits _$2_ description })}} The error I keep getting is below. What am I missing that allows your macro to call the description but not this one? No ability was found for %{selected|repeating_traits_description}
1585867332
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The problem is that  repeating_traits_description is an attribute, and you are trying to use it as an action (using the tilde: ~). The action that reports the trait is called -npc_roll_output I have NO idea why it is called that. It does not match the existing roll button terminology. Stuff like this happens all over the Roll20 sheet and it's frustrating to work with. But rant aside, here's what you need to make this work: /w @{selected|character_name} &{template:npcaction}{{rname=@{Selected|character_name}}}  {{name=Traits}} {{description= [@{selected|repeating_traits_$0_name}](~selected|repeating_traits_$0_-npc_roll_output}) [@{selected|repeating_traits_$1_name}](~selected|repeating_traits_$1_-npc_roll_output}) [@{selected|repeating_traits_$2_name}](~selected|repeating_traits_$2_-npc_roll_output})}}
That makes sense, though it is still giving me an error stating that there is no "ability" for -npc_roll_output. Is this maybe just not possible at the moment? It seems odd to me thought because if a spell is called using the same format as originally posted if the spell does not have a roll attached to it it will still spit out the explanation. 
1585873786
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
My fault. I was answering 2 (at least) very similar questions almost simultaneously. The other dealt with NPC traits. Your macro would be: /w @{selected|character_name} &{template:npcaction}{{rname=@{Selected|character_name}}}  {{name=Traits}} {{description= [@{selected|repeating_traits_$0_name}](~selected|repeating_traits_$0_output}) [@{selected|repeating_traits_$1_name}](~selected|repeating_traits_$1_output}) [@{selected|repeating_traits_$2_name}](~selected|repeating_traits_$2_output})}}
1585873950
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
And you can see the difference between PC and NPC button names.
Funny!!! I actually saw your other post about NPCs which I am assuming was the other very similar question! Thank you so much!!!!