This looks like it might be okay. However, your mapping is a bit unusual. By that I mean irregular and cluttery. However, it's plain that you have a solid idea of what you want the game to do, as shown by the scripts you have included. Clean up the maps, in particular the building sizes- each building should be two roof tiles high and two wall tiles high. Also, try centering your shop signs, or at least putting them above the doors.