on('chat:message', function(msg) { if(msg.type != 'api') return; var selected = msg.selected; if(msg.content.indexOf("!day") === 0 || !selected) return; _.each(selected, function(obj) { if(obj._type != 'graphic') return; // only day graphics var tok = getObj('graphic', obj._id); if(tok.get('subtype') != 'token') return; // don't try to day cards var numb = 150; tok.set("light_radius", numb); tok.set("light_dimradius", numb); }); }); What am I missing? TypeError: Cannot call method 'set' of undefined at lights (evalmachine. :110:12) at evalmachine. :117:7 at eval ( I hate errors that mean nothing :( Give me VB!!!