Well I can't see to reproduce your problem. I have a paralell event that open a dialogue with an npc talking with a choice. If I click yes then a shop is opened. After I close the shop the paralell event open the dialogue again and nothing seems out of place.
Viewing post in Prevent lag on close menu for MV/Z comments
Oh yeah it not there.
Although it is easy to open it using the code:
SceneManager._scene._messageWindow._nameWindow.activate();
SceneManager._scene._messageWindow._nameWindow.open();
But I don't know why it is not activate in the first place. People close message window all the time and it doesn't prevent name box from opening again.
Can you please advise where would I put the code? I tried it before the message in the event without luck.
It seems in MessageCore, the terminateMessage function deactivates the namebox before SceneMap is preserved. Then for some reason, the createMessageWindow function in battle prevents it from coming back.
Only if I go to another map and return, does the namebox return. Maybe something else in the preservation needs to be cleared upon return to the map from battle?
I'm not complete sure. I test the code in the console. But it only works once. If you open the dialogue again, the name box is still closed. You have to use the code again. I let the console log Window_NameBox.prototype.refresh (the function that opens the name box) and found it was called normally. I run it manually from the console the name box appears, but not when I click the event to start the dialogue.