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

Can chat setattr be used from inside a text description? Like could I click a "feature and trait" with some text in it and at the bottom have the chat setattr code and have that work?

This is what I have in one of my features & traits "When you hit a creature with a weapon attack, you can expend one superiority die to attempt to knock the target down. You add [[1d8]] to the attack’s damage roll, and if the target is Large or smaller, it must make a Strength saving throw against DC [[8+ @{strength_mod} + @{pb}]]. On a failed save, you knock the target prone. !setattr --sel --repeating_resource_$0_resource_right|0" I am trying to set a resource that I have named "Reaction" to 0 when I use an ability that burns my reaction. It works as just code placed in chat but I was wondering if it could work when I click the feature that outputs both the text and code into the chat?
I just added these as macros in the attributes and abilities tab and honestly that's good enough for me. This can be closed unless someone else is interested.