You are right on both counts.
Yes, I have played that game and while I was not examining it in any intense manor as I was making this game, it did serve as a bit of inspiration. I was wanted to try making a game like the one I did some day.
And yes, it was missing a semi-colon. I moved the script because the end music was not running when the ending was being played. I put your name down in the bug catcher, but I think you ended up with the Weedle (I think someone else already caught the Caterpie, sorry). :/
...I also just noticed one of my dialogues was in the wrong room. Fixed as well. :')