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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Name Calling For Fun and Profit

I'm trying to work out a way to flavor my attack macros on top of how my group already does combat using token targeting. For example, when attacking I might want it to say "Steve attacks <target> with his axe!" Currently, the attack is written as /em attacks %{target|name} with his axe! but, after clicking on a token, it comes back as "Steve attacks Timmy|name with his axe!" If I remove the |name from the command, so its just %{target}, it throws an error "TypeError: s is undefined" I get the feeling I'm missing something incredibly simple, but digging around the wiki hasn't given any solutions.
@{target|name}
This results in Steve attacks TARGET:target|name with his axe!
token_name
1415862184
Gauss
Forum Champion
@{target|token_name} or @{target|character_name}
I am the dumbs You are the smarts Thanks