Thanks for playing the game. Everything was done based on rpg maker events (I still think it could have been easier if it had been done in renpy...). I didn't program anything as I don't have much experience programming in javascript.