I am attempting to create a Daylight spell that can be summoned by the spell caster. The API script calls a token image (modified from a tutorial by Nick Olivo). I added the lights language (from Roll20 "API Support For Dynamic Lighting" page) and attempted to meld the two. It appeared to work after my initial creation of the script (yesterday), but when I tried it today, the token image is summoned correctly, but the light settings are not turned in the token image settings. Instead, the API script changed the spell caster token light settings. I am not a programmer so I am at a loss on what to do at this point. I could turn the image lights settings on using Token-mod (which I set up and it worked), but that is a 2 -step process. I would like to simplify the process and use the API script for the whole thing if I can. Ideas and suggestions would be appreciated. The script I am using is shown below: on("ready",function() { on("chat:message",function(msg){ if(msg.type=="api" &&msg.content.indexOf("!daylight")==0) { var selected = msg.selected; if (selected===undefined) { sendChat("API", "Please select a character."); return; } var tok = getObj("graphic",selected[0]._id); var character = getObj("character",tok.get("represents")); var player = getObj("player",character.get("controlledby")); createObj("graphic",{ left:tok.get("left")+70, top:tok.get("top"), height:70, width:70, pageid:tok.get("pageid"), layer:"objects", imgsrc:"<a href="https://s3.amazonaws.com/files.d20.io/images/335812172/hA3aNp5bSqNng1aMEFxHvQ/thumb.png?168061740855" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/335812172/hA3aNp5bSqNng1aMEFxHvQ/thumb.png?168061740855</a>", name:tok.get("name") + "'s Daylight", controlledby:player.get("id"), }); on("change:graphic", function(obj) { obj.set({ has_bright_light_vision: true, emits_bright_light: true, bright_light_distance: 60, emits_low_light: true, low_light_distance: 120 }); }); sendChat(tok.get("name"),"light's up the area with a daylight spell!"); spawnFx(tok.get("left")+70,tok.get("top"),"nova-smoke",tok.get("pageid")); } }); });