You can't create a variable called "then"... This makes me wonder what other secretly reserved words there are out there...
I think you should make the editor bold *all* reserved words...
Oh, and add parseInt(); , getDate(); , getTime(); , and all those other functions that aren't in the make-me-blue list to that list.
EDIT:
I've confirmed that "ifpart" and "elsepart" are reserved as well...
EEDIT:
Actually, an idea around this problem would be to have the interpreter "rename" all variables... This way your interpreting keywords never collide with a player's var declarations.
Recent comments
18 hours 40 min ago
1 day 2 hours ago
2 days 57 min ago
3 days 18 hours ago
6 days 18 hours ago