Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Normally the dialogue window will close when you enter a  battle or shop scene right? What do you mean by return from battle. You'll need to reopen the dialogue?

Yes, to see if the name box is there.

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.

(3 edits)

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.

OK I found something. For some reason after the battle, the name window is not the original one. The plugin store a global name window in Yanfly.nameWindow, which only update when the scene is recreated I guess. Once in battle it is changed but not changed back after the battle ends.

OK, patched.

Much appreciate it! It seems resolved. I'm going to do some more testing after work.

(2 edits)

Everything looks good. I made a donation for the plugin. Thank you so much for your assistance!

Thank you. Hope you make a wonderful game.