Conditional Towns

Is there a way for a player to create a town?

For instance, I would like for one of the towns to be destroyed. However, through the quest and revisiting this town, the player can rebuild the town. Are there ways to choose which buildings go where and how each buildings' inside map will be affected based on the player's choice?

Like picking building 1A versus 1B; with inside 1 or 2 for the new Inn... And so forth for each building to be rebuilt. Essentially the placement in the town will be designated, just choosing the buildings' outside and inside layouts.
RPG Maker engine was not built to make this kind of game. Even if it's capable to do so, i believe it will require an either complex system or entirely different system.

Why not use other game engine that has more flexibility?
Transfer player to Town A
If Switch Town A Destroyed = on
Transfer player to Town A Destroyed

Talk to npc in Town A Destroyed. buy materials and build a house
exit shop and if player Switch build house = on, transfer player to Town A Destroyed plus house built

If you want the house to be at the top you'll make a map where the the house is built at the top and another for other places the house can be built. You'll also need to keep track of all this stuff with switches and variables so once you leave you can return to that map.

It's a lot of work but it's possible.
If you set each building's "footprint" as some kind of unpassable tile, and make large sprites for the building exteriors, you can place the building with an event. Set the player's exterior choice as a variable value (unbuilt = 0, 1A = 1, 1B = 2, etc.). First page it's blank (no building), second page is exterior 1A with requirement variable >= 1, third page is exterior 1B with requirement variable >= 2, and so on.

You have to get a little creative with the sprite placement on the spritesheets if you want the door to line up with the event (and the exteriors for a building would all have to have the door in the same place) but it can be done.

Having the inside be variable is straightforward; just set a variable for the inside choice (unbuilt = 0, 1A = 1, 1B = 2, etc.). Use conditional branches on the door event (same as building event if you have placed the sprites as suggested above) so that if variable = 0, they don't get transferred anywhere, if variable = 1, they get transferred to the map for interior 1A, if variable = 2, they get transferred to the map for interior 1B, etc.

That's how I'd try it, anyway. It should work, in theory.

EDIT: Instead of using an unpassable tile for the building footprint, you could try using Orange Event Hitboxes instead, using the comments box on each page to determine what the collision hitbox for that page should be. (I knew I saw a plugin like this somewhere before!)
use doodads and events, call a menu to chose what to build next, activate a switch that make the doodad visible in the pre determined place and a event to transfer inside that building with the same switch. More Black events to prevent player movement and DONE 😀
To summarize for the OP:

It can be done, and there are multiple ways to achieve the dynamic maps neccessary.
But it is a lot of work, and requires some skills with logic design on eventing as well as mapping at minimum.

So if you're thinking on minor changes for a single town in your game, OK.
But if you want to make that the main component of your game, other engines might be much better suited.
It is possible. Using switches, variables and what not. But with something this complex you are likely to run into performance issues. Your maps would most likely have to be rather small to reduce lag. Not sure though. But what you described sounds very taxing for any Rpg maker engine
@Mr.Chris
I don't know what method you're thinking of using for this, but done correctly there is zero lag.
The problem is keeping the logic straight, but there is absolutely no need for any processing power on it.
@Mr.Chris
I don't know what method you're thinking of using for this, but done correctly there is zero lag.
The problem is keeping the logic straight, but there is absolutely no need for any processing power on it.

Doesn't the lag largely depend on size of map? OP said he wants to make a town. If that town is on one gigantic map with all the switches and variables I would think it would slow down performance. Wouldn't it? Especially after all the other stuff he adds to the map like graphics and maybe weather etc. I would think it would run very slow.

I recommend checking out moonstone tavern. Instead of building a town, you rebuild an abandoned INN. but I think it would work exactly like how the OP wants. OP checkout moonstone tavern, watch a let's play and see how that game did it. And that game was heavily criticized for bad performance. Not exactly sure why it was so laggy but it was
Doesn't the lag largely depend on size of map? OP said he wants to make a town. If that town is on one gigantic map with all the switches and variables I would think it would slow down performance.
That is nonsense.
Neither the size of the map nor the use of switches or variables has any effect on lag.
What has an effect on lag is the number of events, especially of parallel process events.
And when saying "number of events" then we're talking about hundreds of regular events before they create any lag, only parallel process events can create lag with less than those numbers.
So me asking questions is nonsense? Wow alright then

and I don't think I'm wrong either. In theory you might be right. But by the time he builds an entire town filled with everything he envisions I am pretty sure it will not run as smooth as you make it seem.
No, saying that lag is caused by map size or switches is nonsense.
Large town maps are possible without lag. If a large map lags, then it is usually because something on the map was done with suboptimal events.

In MV the map size maximum was reduced to 250*250 for exactly this reason, the less optimal engine of Ace had trouble handling its maximum 500*500 tile maps. So unless you deploy to mobile or have a really ancient computer, maps on MV should not lag unless you did something ineffective with the events.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-towns.87350/