
Hi, I'm new to scripting thing, and I hope someone can help me figure this. On the Main server, I have this simple script that create a character: on("chat:message", function(msg) { // Exit if not an api command if (msg.type != "api") return; if (msg.content == '!do') { createCharacter('test'); } }); function createCharacter(name) { obj = findObjs({_type: "character", name: 'test'}); if(obj.length > 0){ return -1; } obj = createObj('character', { name: name, gmnotes: "note" }); log(obj); } Here's the result from API output console: Spinning up new sandbox... "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." {"name":"test","bio":"","gmnotes":"note","archived":false,"inplayerjournals":"","controlledby":"","_id":"-Jgbsa4TshJFZbybyQVz","_type":"character","avatar":""} My question are 1- Why I got the error about set the imgsrc or avatar since I don't set those. 2- Why the gmnote on the newly created character do not contain any gmnote? Thank you.