Flexible mapping / Sub-Maps?

Hello,

I don't know if there is anything out there that does this - I could not find anything. I'm not even sure if it's possible. Any help would be highly appreciated.

I'm planning on making a game based around building a town. As such, the map of the town will change over time, as buildings and NPCs are added.
How here's the problem. Suppose we have, say, 6 buildings that can be added to the map. These buildings can be added in any possible order. So the pragmatic approach of creating one map for each possible combination would simply not work as it would result in hundrets of maps, if not thousands. Now, if there are means to improve buildings, like turning a house into a mansion and a mansion into a castle, it gets ridiculous.

Thus, what I am looking for is a means to manipulate the map after it was already created. Say, you build a basic map for the town without buildings. Then, using the same tileset, you build submaps which only contain the buildings. Once the building is to be constructed, the tiles of the town map are changed on a certain position, according to the tiles of the sub map.

I know this might be possible using events, but I can't use A tiles for an event's graphic. Also, it would be a pain to build that way.
I also know there's a plugin that allows one to place events that look like buildings. But considering I plan buildings that are 20-30 tiles wide and high, that would most likely cause problems. It might only be interesting if I plan to give the player the ability to furniture a house.
I am not sure about what I'm going to tell you but I think I saw once a script that modifies a map with regions. Basically you have a map divided by regions and you put like the same regions on different maps and through some script calls or switches the script basically changes the region from one map to the region of another map. I'll be searching for it in order to show it to you.

EDIT: My mistake, I thought this was a VX Ace question because what I saw before was a script from VX Ace.
You could make a work-around using sprites of said buildings, events and invisible events to allow or block passage.

Example is a 3x3 squares where first there is nothing and then a house:
X X X
X X X
X E X

The E is an Event with the graphic of a 3x3 house. But since the sprite only have the collision of one square, when the hous eis built change a switch so each X become impassable.
I've been researching this same problem, and have come up empty so far. My own designs call for (light) procedural generation of a world map. Even just the basic tech to alter anything at all about an existing map, at any level, would be somewhere to start, but I've found nothing on my end. 😔

I know several prominent AAA games have been known to "phase" from one map to another to simulate continuous worlds that are actually made up of many, smaller maps. But I don't think anyone's made that kind of plugin for RPG Maker. Probably wouldn't particularly help your scenario anyway, since towns are so cluttered. 😢

I'll let you know if I find anything.

Original thread: https://forums.rpgmakerweb.com/threads/flexible-mapping-sub-maps.76095/