
I was attempting to adjust a script that parses characters to use the linked character GM notes instead of the token GM notes (has to do with how they're being exported/imported) and ran into an issue accessing a character's gmnotes attribute. When I attempt to reference it via a callback as described in the API reference docs, I get back "undefined". It looks like it's going after a unique ID, but I can't figure out what to use to parse it. Can anyone figure out what I'm doing wrong here? I saw something about a year ago saying there were issues with this being worked on but nothing since... Example code: getStatblock = function(token){
var character = getObj("character", token.get("represents"));
log(character) //this logs the character object as expected, and what looks like an ID int for gmnotes
var statblock = character.get("gmnotes", function(gmnotes){
log(gmnotes) //this logs undefined
});
}