on("chat:message", function(msg) { // Adds a dot to the target if(msg.type == "api" && msg.content.indexOf("!mark ") !== -1) { var n = msg.content.split(" ", 3) var Color = n[1].toLowerCase(); var Target = n[2]; var TargetToken = findObjs({_type: "graphic", name: Target})[0]; sendChat(msg.who, "/w GM " + msg.who + " has marked " + Target + " with a " + Color + " dot."); TargetToken.set("status_" + Color + "marker", true); } // Removes a dot from the target if(msg.type == "api" && msg.content.indexOf("!rmark ") !== -1) { var n = msg.content.split(" ", 3) var Color = n[1].toLowerCase(); var Target = n[2]; var TargetToken = findObjs({_type: "graphic", name: Target})[0]; sendChat(msg.who, "/w GM " + msg.who + " has removed the " + Color + " dot from " + Target + "."); TargetToken.set("status_" + Color + "marker", false); } }); And updated with the ability to remove the dot. I should probably add a flag to turn on/off the message to the GM.