
I'm currently trying to work a method of appending information to every character on an existing Turn Order. I've been unable to figure out a proper solution to it because to my current understanding the only retrievable information from the turn order is the graphics ID, the number input, the custom title should one exist, and the position (based on position in array). I've been searching high and low for some way to relate the Graphics ID back to the character sheets, but can't find the appropriate field when doing findObj. Any insight on the matter would be greatly appreciated. This is as far as I've gotten. And yes, I am exceedingly new to this, so please forgive the sloppy coding. on("chat:message", function(msg) { if (msg.type == "api" && msg.content.indexOf("!AddAPM") !== -1) { var turnorder; if(Campaign().get("turnorder") == "") turnorder = []; else turnorder = JSON.parse(Campaign().get("turnorder")); _.each(turnorder, function(obj) { var initAPM = findObjs({ name: "APM", _type: "attribute", id: obj.id, // This is the field I am having issues with. }); obj.pr = obj.pr + "(" + Math.ceil(initAPM.current/2) + "/" + Math.floor(initAPM.current/2) + ")" }) Campaign().set("turnorder", JSON.stringify(turnorder)); } })