I've been trying to find topics on syntax errors, but couldn't find any that match the error I'm getting. Whenever I testplay my game and call up the common event "sleep" (which resets some NPC positions and gathering resources) I get a "syntax error unexpected token var". Before, the common event worked fine. I've taken out some of the more complicated events I did since then, disabled the plugins I added since then, but keep getting this error. I will include screenshot of the error report below.
I also replaced the mentioned .js files with ones from a new (empty) project and that help either. I haven't messed with the code, I am no scripter. I hope someone can help me fix this!
Thanx in advance!