I want to make a village that can be visited by everyone but only closes its doors after a certain character visits it and that character will get an item while the other characters do not. The event is 1C26F28
If you try to visit it, it is a complicated process.
The basic idea is “if the door is closed, just open it again”.
To achieve this, one flag is needed.
This time, I used flag 22.
(You can change to any flag you like)
Set up the village event like this.
If other unit visits, use flag 22 to reopen the door.
At the end of the private house event, the game engine will perform a tile change at the home position.
So the door will close…
Use Always Cond’s Flag Cond to immediately re-open the door.
If Flag 22 is set, this event will fire to cancel the tile change 0xD that closes the house door.
Then turn flag 0x22 off again to prepare for the next visitor.
You can see in the Map Editor that the door of this house is assigned to TitleChange 0xD.
And one more thing.
You are setting up the Talk event incorrectly in this map.
You had implemented ASM Talk halfway through.
This caused the game to freeze.
Do not use ASM Talk.
This is a Talk event linked to ASM, so there is almost no need to use it.