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

Token Trait button in table - cant get it working :( am I overseeing something?

Why this shows me working button (with selected token - it shows button with name of first "passive" ability and also displays desci [@{selected|repeating_traits_$0_name}](!
 /&{template:traits} {{name=@{selected|repeating_traits_$0_name}}}{{source=Class:@{selected|class}}} {{description=@{selected|repeating_traits_$0_description}}}) but this does not work at all  /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} }}{{Passive=[@{selected|repeating_traits_$0_name}](!
 /&{template:traits} {{name=@{selected|repeating_traits_$0_name}}}{{source=Class:@{selected|class}}} {{description=@{selected|repeating_traits_$0_description}}})}}
1605507936

Edited 1605508404
Oosh
Sheet Author
API Scripter
Trying to nest an entire template into a button is definitely going to be challenging (it might be possible though, I'm not sure). The easier way is to link to an Ability macro that contains the information & template you need. In the case of Traits, the sheet already has this built in: &{template:default} {{name=buttons}} {{buttons=[@{selected|repeating_traits_$0_name}](~selected|repeating_traits_$0_output)}} edit - here we go, just needed some more escaped HTML: &{template:default} {{name=@{selected|character_name} }} {{selected=[@{selected|repeating_traits_$0_name}](!
/w gm &{template:traits} {{name=@{selected|repeating_traits_$0_name}}}{{source=Class:@{selected|class}}} {{description=@{selected|repeating_traits_$0_description}}})}}
Amazing - how can I give you some internet karma or something :))