ahem... what you have is nothing new.
attached is something that used to be WoS2 (World of Starcraft II), but the name was changed many times. long story short i have dropped that project, though it will give you some pointers. inside you will find triggers that have the most efficient way of entering and exiting towns AND buildings, with messages telling the players "You have entered XXXXX" and "You have exited XXXXX". Basically deaths record what town you the Hero is in and when you go outside a town it will change the death to 0, displaying "you have exited the town", and when the Hero brings his unit back into the town, the counter will change to 1, 2, 3, or 4 depending on which one of the four towns he has entered and... that's all there is to it. The file name is WorldOfWarriors001, so let's just call that game World of Warriors for clarity purposes.
i am working on a new RPG, Nomads, which has taken the name WoS2 instead. i must make note that Nomads does have a series of triggers that makes exiting buildings more efficient than World of Warriors. Nomads will NOT, however, have Entering/Exiting Town messages because... it doesn't HAVE towns
either way, World of Warriors has been abandoned, but to all of you n00b RPG mappers out there, there's a lotta goodies you can savage from it. use SCXE to open it, map's not protected
[attachmentid=2039]