Removing Options in Exit Game, Direct into Game Menu.

Good Day Everyone! can you help me how to remove the options in the exit in menu. And instead of having to choose the options, it will directed to the Game Menu. THANKS!


(beginner in RPG MAKER MV)
I'm not sure if you are using RPG Maker MV or MZ, though technically would be the same. Also, I don't know if you are using plugins or not, from the image I can guess that you are, given that the default options are just "To Title" or "Cancel" in both MV and MZ. In any case, if it's either MV or MZ, the answer is kind of the same.

You will have to go to where it calls the options and, instead of running the code for the Game End, you should run the one you want.

So to put it simple, normally when you select "Game End" in the menu, in the end it will run the following code

JavaScript:
SceneManager._scene.commandGameEnd();

You will need to change that part of the code to the one you need, for example, if you want it to go directly to the title screen, you just change it to the following:

JavaScript:
SceneManager._scene.commandToTitle();


Since you don't give information about which RPG Maker you are using or if you are using plugins for that particular part, I will be limited in my help.
Since you don't give information about which RPG Maker you are using
To answer the first, it's been posted in MZ support and his profile is marked as "Primarily Uses MZ"
To answer the first, it's been posted in MZ support and his profile is marked as "Primarily Uses MZ"
Thanks for Clarification 😀

I'm not sure if you are using RPG Maker MV or MZ, though technically would be the same. Also, I don't know if you are using plugins or not, from the image I can guess that you are, given that the default options are just "To Title" or "Cancel" in both MV and MZ. In any case, if it's either MV or MZ, the answer is kind of the same.

You will have to go to where it calls the options and, instead of running the code for the Game End, you should run the one you want.

So to put it simple, normally when you select "Game End" in the menu, in the end it will run the following code

JavaScript:
SceneManager._scene.commandGameEnd();

You will need to change that part of the code to the one you need, for example, if you want it to go directly to the title screen, you just change it to the following:

JavaScript:
SceneManager._scene.commandToTitle();


Since you don't give information about which RPG Maker you are using or if you are using plugins for that particular part, I will be limited in my help.
Thanks for helping me to gather idea from this js. I just change the

SceneManager.push(Scene_GameEnd); into:

SceneManager.push(Scene_Title);

Original thread: https://forums.rpgmakerweb.com/threads/removing-options-in-exit-game-direct-into-game-menu.157921/