Making one town with multiple events

I'm a newbie, I've been making a town and I want to know what's the best way to go about it. The same town has multiple events
depending on how far you are into the game. At first, maybe it's daytime, certain shops are open, others are closed, people are talking about current events. You come back later, maybe it's sunset or raining, or dark, etc, different shops are open and closed, people are talking about different things then they were the first time, maybe certain people that were there the first time that aren't there now, maybe there are people there now that weren't there the first time, or they're just in different places around town. As you still continue to progress, you come to that town and all of those things are different yet again. I may have the town do this 5,6,7 times, haven't really made up my mind yet. I know "how" to do this kind of thing (switches, etc), but my question is, what's the best way to do this? So far playtesting this has been a royal pain, I can put a Physical button in the town that my player can press for testing purposes to activate certain switches to allow me to test these different scenarios to a degree, but part the problem is this doesn't take into account the many self switches the various NPC's and other events have. I'm just wondering what everyone's opinion was on how to approach this. Should I have all kinds of switches for all the NPC's and event? Should create multiple copies of the same town and just have a different switch set at the entrance to run the desired scenario? Thanks in advance.
I think you can use switches for things that have little changes.
But if your events have a lot of changes (conditionals and pages) you can use variables to keep track of them.
So, with one variable, you can replace and much more all the switches.
You can also press F9(don't know for sure if it is this key...)to open the debug window and then change the variables and switch from there for you to test.
as you said, doing it with switches can be a complicated mess.

However there is no single "best way" to do this, it depends on what exactly you're changing.


For NPC routines that are changing, I strongly suggest building a variable-based time system.
That means you have something (either common event or plugin, although common event is better most of the times) that counts up two or more variables (hours, days, months, etc).
Then you make the events pretending to be NPCs conditioned on the hour variable, with different event pages depending on the number stored in hours.
If done correctly you'll get automatically changing NPC routines depending on the hours of the day (sleeping, in store and so on). A lot less of a hassle than having to go through switches.

For specific changes depending on player action, switches are still the best way.

For big changes that follow the story line (like "town has been invaded", "town is on fire" etc) you're better off using a duplicate map. That also goes for large cutscenes ("Festival in town") that are setting the town temporarily different.
Duplicate maps are handled in the transfer events. The events for leaving the town would be the same as always, but the transfers toward the town would be changed. You would modify the transfer event to check switches or variables and then transfer to different maps depending on how they are set.
I recently worked on a game that had a hub world that was a city. I found the best way to do this is to be organized. Have a switch called "Night" and have a Switch called "Day" and turn them on and off. For events that were constantly changing, I placed them at the top of the map and labeled them with the graphic(example:I did this for weather and music). Yeah, it's not the easiest thing to do. My best advice is organization. Name your switches and variables. I'd write down exactly what you want first. Which shops open at night and close etc.

Switches titled "Day 1, and Day 2" are also useful. The routines last three days have switches titled "Day 1, Day 2, and Day 3" then turn them off so they can repeat again.
I wouldn't use self-switches for things that need to change. That's more of a one-and-done kinda deal. Also, instead of just a button or something that turns on a single switch or a group of switches, you can make a multiple choice event, label each choice in a way that makes sense, and group all the switches/variables that affect each one that way. If you do a day/night cycle or timer, just set up another event with another multi-choice.
Thanks everybody! These are some really good ideas. I'll take all the advice and direction I can get.

Original thread: https://forums.rpgmakerweb.com/threads/making-one-town-with-multiple-events.121537/