I'm in the process of setting up a number of On Change events that will capture and record in a token's GM Notes what changes were made to a token and when. Here is an example code and a screen shot of the result. Here, I am looking at changes made to bar3_value or "Unit Strength" in this campaign: on("change:graphic:bar3_value", function(obj, prev) {
let gm_notes = obj.get("gmnotes");
if (gm_notes !== "") {gm_notes += "<br>";}
gm_notes += "Strength: " + prev["bar3_value"] + " --> " +
obj.get("bar3_value") + " " + new Date();
obj.set("gmnotes", gm_notes);
});
The above adjusts the GM Notes just fine: I am currently planning to do this for bar2 and bar1 as well as token name and when status markers are changed. Possibly some other values. Question 1: Is tracking a number of these changes too much of a drain on the roll20 server as far as traffic goes? Will it slow the game appreciably, especially for friends with low end computers? Question 2: How can I draw the user id (ultimately I will use that for the user name) of the player or GM (me) who makes the change? Is that possible? Thanks in advance, -- Tim