Hi, I'm making my town "lively" by adding routines to npcs with a day/night system and so far I think I finally managed to make it work. (Tough sometimes they screw up alone even tough the game doesn't lag or anything as I keep a static 38-39 fps.)
The events trigger at different times or require certain switches but 1 thing I need to figure out is how will I regulate their events if I'm inside some cave or house when the time has passed. (For now I was thinking on having events inside every house/cave that would make switches turn on/off at x time for each npc that has routines when your still inside.)
Now the biggest problem is I'm using move route for the npcs movement to lessen fps impact but I have certain npcs that walk in a place, stay there and when it's time to go home for the night they start walking from there. The problem is when you enter a house and exit again the npc will obviously be teleported back where they are placed initially instead of where they were. This means that currently when I enter a house and exit it and a certain event should start walking his route from a different position it will get stuck and never complete it's route unless I find a way to solve it. (I'm also afraid that with all the parallel process events some steps might gets skipped.)
So what would you guys do so that each npc that has routine could progress normally even if you enter a house and exit again?
I know it might sound confusing but if you guys require more information just post and I'll try to explain better.