Calavid said:
Update: this seemed to somewhat work: /as "@{selected|token_name}"
All of my macros are set up as buttons while selecting the token anyway, so that works for me. Still doesn't display the monsters token next to the name though, if anyone has a solution that includes that, please let me know.
If you are typing the command into chat, or using a Collections macro, then you need to have a character reference:
/as "@{selected|character_name}" I am attacking!
/as "@{target|character_name}" I am attacking!
/as "@{Feral Troll|character_name}" I am attacking!
If the command is directly on a character sheet, then you can omit the character reference, because Roll20 will automatically pull it from the character that the command is on.
Where the button is created makes a difference - a Token Action from a Collections macro looks exactly the same as a Token Action from an Ability macro on a character sheet, and they both show up in the same place, but they function differently in terms of the character reference.
If you are using a new Beacon sheet (such as the D&D 2024 by Roll20) then some of these character sheet and token references don't work. It's always a good idea to post which game and character sheet you are using, as well as if you are playing in a Jumpgate game, to help troubleshoot, because all of those things may affect the responses you get for help.