H I am new in this game.
I want to ask a question. How to make a NPC from other map come into my house like the sims game and interact with them. If I go out from my house, the NPC will leave too and they should be invited again.
I have moved this thread from RPG Maker MV Tutorials to RPG Maker MV Support.
The first thing to bear in mind is that when you really drill down to it, the engine doesn't have "NPCs". There are characters, but the graphic they have isn't limited to people, nor do they have to act like people. Nor *can* they act like people, really, because they don't know what that means.
The second thing is that characters are still events, and outside of common events an event only exists on one map. It has no sense of permanence between areas; an event representing a character on one map and an event representing the same character on a different map are different events with no concept of the other's existence, regardless of what dialogue or function you put in the events themselves.
However, what you *can* do is use move routes, switches and variables to make it *look* like the NPC is moving around between areas. That has its own set of pitfalls, as leaving the map before their move route is done means they'll be back at their starting point when you return, so you'll have to look into ways to keep track of where an NPC is on the map and save its location for returning.
You can use an event spawner to spawn them in at the doorway under certain conditions.