Hi! So I need to get at the content of a player handout using API, but within the context of the new engine (formerly known as "jumpgate"). This is the barebones test script so far... on("change:handout", function(obj, prev) {
// Get the name & ID of the handout being changed
var sID = obj.get("_id")||"";
var sNm = obj.get("name")||"[NO NAME FOUND]";
var sNts = obj.get("notes")||"[NO NOTES FOUND]";
if(sNm.indexOf("Test Handout") > -1 && sID != "")
{
let sSay1 = "/w gm **ID:** "+sID;
let sSay2 = "/w gm **NAME:** "+sNm;
let sSay3 = "/w gm **CONTENTS:** "+sNts;
sendChat("API",sSay1);
sendChat("API",sSay2);
sendChat("API",sSay3);
}
}); It reports the ID of the handout and the name of the handout just fine. But it always reports the "notes" of the handout as not found (e.g., the "[NO NAME FOUND]" result I put in as a default value) , even though there are about two paragraphs of content in the actual handout in question. Any idea what's going on? Did Roll20 change the name of the "notes" property? I have no idea if they did or not, as I have never needed to access the content of a handout before (under the old engine). I just looked up the names of the various properties of a handout object under the wiki documentation. What am I doing wrong? Thanks in advance for your help! Michael