Change who you are "As:" in the chat by clicking on a respective token?

1523901823

Edited 1523902268
I'm a GM with a lot of sheets for enemies, NPC's, etc. It bogs down the game during combat when I have to always change who i'm typing as in the chat, because I have custom buttons for each token that calculate most of the combat stuff for me (and I don't want the chat to be clogged down with a bunch of messages correcting who's actually rolling what). Has someone made a script, where when you click on a token it changes you to the name of that token in the chat?
1523902284

Edited 1523902440
Scott C.
Pro
Sheet Author
API Scripter
The API can't affect who you are speaking as, and it can't react to simply clicking on a token. There is however a solution for you as gm. And it doesn't even require the API. Simply add this to the start of any macros that are not being whispered to you: /as "@{selected|character_name}" Insert macro text here EDIT: If the macros are all contained in their respective character's sheets, then you can streamline that even more to just be: /as "@{character_name}" Insert macro text here See the wiki for full details EDIT 2: Also, note that this command is only accessible by the GM, so these macros won't work for players.
1523902596
keithcurtis
Roll20 Mod Team
If you are using Chrome and prefer Hotkeys, You might consider  this tip to speed you up even more. (Does not work with Firefox Quantum)
1523904969

Edited 1523904993
Scott C. said: The API can't affect who you are speaking as, and it can't react to simply clicking on a token. There is however a solution for you as gm. And it doesn't even require the API. Simply add this to the start of any macros that are not being whispered to you: /as "@{selected|character_name}" Insert macro text here EDIT: If the macros are all contained in their respective character's sheets, then you can streamline that even more to just be: /as "@{character_name}" Insert macro text here See the wiki for full details EDIT 2: Also, note that this command is only accessible by the GM, so these macros won't work for players. Thanks! Can't believe I didn't think of this earlier. Big help.
1523905414
Scott C.
Pro
Sheet Author
API Scripter
Glad to help, happy rolling.
keithcurtis said: If you are using Chrome and prefer Hotkeys, You might consider  this tip to speed you up even more. (Does not work with Firefox Quantum) Your suggestion is pretty cool too, appreciate the input. Thanks.