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 .
×
Create a free account

Hourglass, Stopwatch, etc. Script throwing out unexpected identifier error

Hourglass, Stopwatch, etc. Script throwing out unexpected identifier error for me now. Guess there was a change in the API?
That sounds like a syntax error in your js. You might try copying the js elsewhere, and try running it, which would give you a better clue about what the syntax error is. I use spidermonkey for that, but jsfiddle + the browser console would probably work. If you have no syntax error, the script should crash with a ReferenceError talking about undefined functions. If you have a syntax error, it should tell you the line and the nature of the problem. Unexpected identifier generally comes from not closing a ) or }, missing a ;, or breaking up an if/else or try/catch.