
I am trying to automate using the player.speakingas so as GM I have a command to set the speakingas based on the selected token instead of going though the drop down which has gotten huge. I thought it would be a simple script just to toggle the property but for the life of me I cannot get it to work. I set the property and can see it getting changed through the log but nothing happens if I type in chat it stays set on GM. If I go through the UI and set it with the dropdown and compare the values they are the same. Anyone have any ideas what I am doing wrong? source