Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Unexpected identifier

This Unexpected identifier error message in the scripts is eating my lunch. I get it all the time and I don't know exactly what it means. if I make one script and copy the exact same script to a new tab I get the error. If I just make a simple empty script like: on("add:token", function(obj){ }); I get the error. WHY? I don't understand. if I delete the new tab its then okay. I only have five tabs... I'm on the production side.
1380780030
Lithl
Pro
Sheet Author
API Scripter
"token" is not an object type. Try using "add:graphic", and then check to make sure that the added object has subtype:"token".