Posts: 15
Threads: 5
Joined: May 2024
11-20-2026, 12:08 AM
(This post was last modified: 11-20-2026, 12:08 AM by parawixlia.)
first off, hello again! i haven't been here in like 2 years, almost to the day
now i don't know if script requests is the right place to put this, since i'm technically asking for advice on altering an existing script, but i hope this is a fine place to ask this
so, i'm setting the groundwork for a slightly more concrete project than my last, and i'm starting with the menu before i get into any of the meat of the game. i found this script right here that greatly simplifies the menu of VX Ace, which is almost exactly what i've been looking for. only problem is, the exit button no longer gives you the usual options of 'to title', 'shutdown', and 'cancel', instead just shutting down when you press exit, which isn't horrible in theory, but i for one very frequently misclick menu options in games. i spent about an hour fiddling with it to see if i could figure out how to make the exit button call that original option sequence, but my coding literacy unfortunately falls short enough that i was left stumped.
if anyone better with script editing could help me figure this out, that'd be much appreciated! or, if you know another script that can reduce the menu to just a basic item menu, saving/loading, and quitting with the usual options, that would be just as welcome!
Posts: 12,390
Threads: 891
Joined: May 2009
11-20-2026, 05:17 AM
(This post was last modified: 11-20-2026, 06:23 AM by DerVVulfman.)
Moved to code support.
ALSO, a link to the script in question is kinda needed.  OH, its "right here" , in the body of your text. Twas kinda concealed. Snagging...
EDIT:
Ugh. On looking at it, the code has these very specific bits of text:
# Overwrites the old, boring menu to use the cooler-looking Game End menu
class Scene_Map
def call_menu
Sound.play_ok
SceneManager.call(Scene_End)
end
end
and
# Overwrites Scene_End to use Save/Load/Items
class Scene_End
def start
super
create_command_window
create_invisible_formation_window
end
def create_command_window
@command_window = Window_GameEnd.new
From all appearances, she gutted the Main Menu (Scene_Menu), and made it so anyone calling the main menu would have control passed to "Scene_End" aka the END menu.
The script uses Scene_End End Menu to control everything...
@command_window = Window_GameEnd.new
This is now being used in the End menu, not to display your three options, but to display the main menu options with his take on the GameEnd window. In short, you cannot use this version of the menu to take you to a separate TITLE-SHUTDOWN-RETURN menu, because you are in that menu already... totally taken over.
The only option, per say, would be to use this system to add an optional "Return to Title" option. You do that here:
['Items', :item],
['Status', :status],
['Save', :save],
['Exit', :shutdown],
Here, you add the To TItle option like so:
['Items', :item],
['Status', :status],
['Save', :save],
['Title', :to_title],
['Exit', :shutdown],
I took a look at the system. It takes the object argument (eg :shutdown) and combines the string of the name combined with the prefix "command_" (eg command_shutdown) and executes the method that still exists in Scene_End. He did not 'delete' the "command_shutdown" method. But by that respect, he did not delete the "command_to_title" method either. So the use of ':to_title' in the config must work.
This is me understanding its mechanics without even having VXAce.
I do have a copy of the default scripts... I study.
But sadly, again, she gutted the actual End menu to create this. You would need to make ANOTHER separate End menu replete with its own window script otherwise.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 15
Threads: 5
Joined: May 2024
(11-20-2026, 05:17 AM)DerVVulfman Wrote: Moved to code support.
ALSO, a link to the script in question is kinda needed. OH, its "right here" , in the body of your text. Twas kinda concealed. Snagging...
EDIT:
Ugh. On looking at it, the code has these very specific bits of text:
# Overwrites the old, boring menu to use the cooler-looking Game End menu
class Scene_Map
def call_menu
Sound.play_ok
SceneManager.call(Scene_End)
end
end
and
# Overwrites Scene_End to use Save/Load/Items
class Scene_End
def start
super
create_command_window
create_invisible_formation_window
end
def create_command_window
@command_window = Window_GameEnd.new
From all appearances, she gutted the Main Menu (Scene_Menu), and made it so anyone calling the main menu would have control passed to "Scene_End" aka the END menu.
The script uses Scene_End End Menu to control everything...
@command_window = Window_GameEnd.new
This is now being used in the End menu, not to display your three options, but to display the main menu options with his take on the GameEnd window. In short, you cannot use this version of the menu to take you to a separate TITLE-SHUTDOWN-RETURN menu, because you are in that menu already... totally taken over.
The only option, per say, would be to use this system to add an optional "Return to Title" option. You do that here:
['Items', :item],
['Status', :status],
['Save', :save],
['Exit', :shutdown],
Here, you add the To TItle option like so:
['Items', :item],
['Status', :status],
['Save', :save],
['Title', :to_title],
['Exit', :shutdown],
I took a look at the system. It takes the object argument (eg :shutdown) and combines the string of the name combined with the prefix "command_" (eg command_shutdown) and executes the method that still exists in Scene_End. He did not 'delete' the "command_shutdown" method. But by that respect, he did not delete the "command_to_title" method either. So the use of ':to_title' in the config must work.
This is me understanding its mechanics without even having VXAce.
I do have a copy of the default scripts... I study.
But sadly, again, she gutted the actual End menu to create this. You would need to make ANOTHER separate End menu replete with its own window script otherwise.
much appreciated! the script repurposing the usual end menu was about what i had gathered from tinkering with it myself, though i didn't realize how much an issue that'd be to achieve what i'm looking for :( though i appreciate the proposed alternative! i'll give it a try and see what other tinkering i can do to make an unfortunate misclick less likely
Posts: 3
Threads: 0
Joined: Nov 2026
The stock game-end screen is only two small classes (Window_EndCommand + Scene_End). The script you linked redefines Scene_End itself to act as the menu, which is why the original vanished - but you can put the same pair back under new names and call it from the menu's exit option:
Code: class Window_EndConfirmCommand < Window_Command
def initialize
super(0, 0)
end
def window_width
return 160
end
def make_command_list
add_command(Vocab::to_title, :to_title)
add_command(Vocab::shutdown, :shutdown)
end
end
class Scene_EndConfirm < Scene_MenuBase
def start
super
create_command_window
end
def create_command_window
@command_window = Window_EndConfirmCommand.new
@command_window.set_handler(:to_title, method(:command_to_title))
@command_window.set_handler(:shutdown, method(:command_shutdown))
@command_window.set_handler(:cancel, method(:return_scene))
end
def command_to_title
close_command_window
fadeout_all
SceneManager.goto(Scene_Title)
end
def command_shutdown
close_command_window
fadeout_all
SceneManager.exit
end
end
Paste it below the menu script (still in Materials), then look inside the menu script for the method its exit option is bound to - it ends in Graphics.exit or SceneManager.exit - and replace that line with:
Code: SceneManager.call(Scene_EndConfirm)
Because it is called as its own scene, Esc / X hits the cancel handler and simply drops you back into the menu, so a misclick costs nothing. Scene_MenuBase also gives it the same dimmed background as the default game-end screen.
One caveat: if that menu draws its own cursor graphics instead of using Window_Command, the pop-up will look plainer than the rest of the menu - the behaviour is still the stock one.
|