So I’m going to refactor some really big and complex scripts for a SWN campaign that controls ship combat. I’ll need to know which player is selecting a token, so I can pull character attributes like wisdom bonus, etc. Basic overview: There is a TV on the table that acts as a HUD during ship combat. I use a dummy player account called “The Ship” here. There are 5 departments on the ship (engineering, gunnery, etc), and all those dept actions are on a single “Console” screen. A macro I use sends The Ship to the HUD page (on the tv), and each player to “Console” on their own tablets/laptops. This is needed as the players all have a macro allowing them to go to other screens like “system nav” or “landing page” during gameplay. So, I have this “battle stations macro” to herd cats when ship combat starts. A player selects an action on their device, and clicks a “confirm” macro. the macro queries for bonuses, and sends that (and the action as an indexOf) to the api to resolve the action. Dials and indicators are changed on both The HUD and Console. It all works, but I want the api to know which player has selected an action so I can automatically query for relevant attributes/bonuses/etc. I want only one modifier query to appear, as I might give one for circumstances like debuffs. Of course, if I can figure out “current player” here, it opens a lot of doors elsewhere too. As I’m still fairly new to JS and scripting, I won’t be upset with some code snippets, but beggars can’t be choosers. Thanks! This forum has been amazing. Special thanks to TheAaron, Timmaugh, and others. My campaign has been a resounding success in part because of you.