I have a turn announcer script, that announces turn orders. Part of this script is adding a "green dot' to the token who's turn it is. The problem is, because the turn tracked is cleared using GroupInitiative, the dots are not being removed. So when I run the clear, I want to cursor through all tokens on the page and remove the green status dots. The script below works, but because i use "msg.selected" i have to select all the tokens first, before the dots would clear out. What i'd like is to replace 'msg.selected' with the array of playerIDs I believe the allPlayerIDs capture that (I don't know how to print the string out to confirm though). So i need to update the _.each to parse through the string, so I don't have to manually select the tokens myself. // Used for GroupInitiative Clear function, to remove green dots placed by this script. if (msg.content.split(" ")[0] == "!rdot") { var players = findObjs({_type: "player"}); var allPlayerIDs = players.map(function(player) { return player['id']; }); _.each(msg.selected, function(objInfo) { var obj = getObj(objInfo._type, objInfo._id); if( obj.get("_type") == "graphic" ){ if( obj.get("_subtype") == "token" ){ obj.set({ status_green: false }); } } }); }