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

How to replicate the /as function for player macros

Macro with /as @{selected|token_name} works fine for the Game Master, but throws up an error message for the player. The macros are for various actions- attacking, dodging, rolling perception. I dont want the chat to look like chat output: BobThePlayer: {token_name} uses Perception! Instead I want it to look chat output: AureliusTheWizard: uses Perception! or chat output: FamiliarOfAurelius: uses Perception! using the name of the currently selected token. As I said, it works for the GM, but not for the player. The workaround is for players to set their display name as their characters name, and just leaving the body of the macro itself "uses Perception!". But then it will look as chat output: AureliusTheWizard: uses Perception! no matter which token is selected at the moment. /me and /em aren't what I'm looking for.
This can done with the API. I use Powercards myself to gain this effect. 
1586164210
GiGs
Pro
Sheet Author
API Scripter
I'm fairly sure there's no way to do this at the free user level.