Andrew (Halfling Gypsy) said: I think I've found a suitable way around it, as much as I can anyway, but it means that any character mean to use it will need a Character Sheet and you can't load it in through other means it would seem. Actually, Silvyre... Can an API Button remember the 'name' of its source? As in, if a Token on the map has an API Button code loaded into it, can the API Button remember the name of the Token that spawned it? If you're going with an API solution, you can grab the ID of the player who sent the message as well as the name they've selected in the "As" dropdown. on('chat:message', function(msg) {
log(msg.playerid); // id of the player who sent the message log(getObj('player', msg.playerid)); // the player who sent the message log(msg.who); // the text of the player's selection in the "As" dropdown // if the GM sends the message and their "As" dropdown is OOC, their name will have " (GM)" added });