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?
Viewing post in Prevent lag on close menu for MV/Z comments
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.