VXAce Game keeps going to Game Over Screen and I can't figure out why

Hi everyone,

There's a weird bug that's happening in my game when if I lose a fight against a enemy, if I try to start a new game afterwards it will trigger the game over scene over and over.

I can't figure out what script is causing it. I was wondering if someone could take a look and tell me what I'm doing wrong?

DOWNLOAD LINK:
https://drive.google.com/drive/folders/1WagpSxQYnN6BT9Wr3HTtmLaPXpSSat7e?usp=sharing

Edit: Okay, link is working now. Sorry about that.

1758908340633.png

1758908374246.png
Exactly when is your game taking you to the Game Over screen? Immediately upon loading? After a battle even if you win? After opening a chest?
It always happens after I defeated by the enemy and i try to start a new game. It just keeps going to the game over screen.
If I win it doesn't happen.
As soon as the new game starts, the game instantly goes to game over
By "New game" are you refering to actually starting a new game or are you loading a save file?
So I tried to have an event calling a Game Over screen before a battle, and when starting a new game, the battle starts automatically, I suspect your game is not resetting when you start a new game or when the game over screen triggers.

Actually check your script "Systems Add On" which is a Title Options script by Roninator2, there is this code:
Ruby:
module DataManager
  def self.setup_new_game
    #create_game_objects #(this call is missing!)
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    Graphics.frame_count = 0
  end
end
class Scene_Title < Scene_Base
  alias r2_title_options_start    start
  def start
    r2_title_options_start
    DataManager.create_game_objects if $game_switches.nil?
  end
end
The issue is that starting a new game won't reset all the original game objects values, meaning that modifying actor's stats, switches, variables among other things will carry over a new game if you don't shut down the game.
If you remove this script, your issue might vanish.
So I tried to have an event calling a Game Over screen before a battle, and when starting a new game, the battle starts automatically, I suspect your game is not resetting when you start a new game or when the game over screen triggers.

Actually check your script "Systems Add On" which is a Title Options script by Roninator2, there is this code:
Ruby:
module DataManager
  def self.setup_new_game
    #create_game_objects #(this call is missing!)
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    Graphics.frame_count = 0
  end
end
class Scene_Title < Scene_Base
  alias r2_title_options_start    start
  def start
    r2_title_options_start
    DataManager.create_game_objects if $game_switches.nil?
  end
end
The issue is that starting a new game won't reset all the original game objects values, meaning that modifying actor's stats, switches, variables among other things will carry over a new game if you don't shut down the game.
If you remove this script, your issue might vanish.


Yes! You were right, it was that script causing the problem. Thank you. 🙂

Do you know how to fix the code so that it does reset?
It's not that simple. I guess you want Yanfly's option menu on the title screen, but this script modifies $game_system attributes and a few variables or switches. Since some attributes of $game_system are handled mid-game, it means that we should remember all modified attributes by Yanfly's option menu and put them back at the start of a new game. This is not hard to do but we need to list all attributes to ensure no one is missing.

I however have an issue with something else: your option menu will be reset whenever you launch the game once again (though it won't modify the options of saved games that are internal), is this okay with you? If it isn't, then we might need something else like modifying Game.ini or creating a file to store the values and this is a bit more.
I however have an issue with something else: your option menu will be reset whenever you launch the game once again (though it won't modify the options of saved games that are internal), is this okay with you? If it isn't, then we might need something else like modifying Game.ini or creating a file to store the values and this is a bit more.

Do you mean it will reset when I start a new game? Or will it reset when I load the game as well? Sorry I'm a little confused.
Do you mean it will reset when I start a new game? Or will it reset when I load the game as well? Sorry I'm a little confused.
It will reset when you shutdown your game and launch it again. The options of a save file are locally stored in it, but they might not be the same between each save files.

Basically my question is: do you want your options to be 'global' or do you want them to be locally tied to a save file? The latter is easier to do but might be counterintuitive for a user.
Will global be alright?
So I tried to have an event calling a Game Over screen before a battle, and when starting a new game, the battle starts automatically, I suspect your game is not resetting when you start a new game or when the game over screen triggers.

Actually check your script "Systems Add On" which is a Title Options script by Roninator2, there is this code:
Ruby:
module DataManager
  def self.setup_new_game
    #create_game_objects #(this call is missing!)
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    Graphics.frame_count = 0
  end
end
class Scene_Title < Scene_Base
  alias r2_title_options_start    start
  def start
    r2_title_options_start
    DataManager.create_game_objects if $game_switches.nil?
  end
end
The issue is that starting a new game won't reset all the original game objects values, meaning that modifying actor's stats, switches, variables among other things will carry over a new game if you don't shut down the game.
If you remove this script, your issue might vanish.
I am surprised to have this show up now. But I think it's because of other scripts that it causes issues.
After a little bit of testing I found that $game_actors is the issue. When I put it in to create it from new then the issue goes away.

So it seems that the actors is saved as being dead so when the game starts, all actors are dead so therefor game over.
If I change my script to add in game actors then it works again.
Ruby:
module DataManager
  def self.setup_new_game
    $game_actors        = Game_Actors.new
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    Graphics.frame_count = 0
  end
end

Also note that I had made a 1.01 version here but all that should be needed might be the game actors
So I did fix this already, so the OP has an old version.
@dreamfall887 where did you get this script. I may to update that page.
I am surprised to have this show up now. But I think it's because of other scripts that it causes issues.
After a little bit of testing I found that $game_actors is the issue. When I put it in to create it from new then the issue goes away.

So it seems that the actors is saved as being dead so when the game starts, all actors are dead so therefor game over.
If I change my script to add in game actors then it works again.
Ruby:
module DataManager
  def self.setup_new_game
    $game_actors        = Game_Actors.new
    $game_party.setup_starting_members
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    Graphics.frame_count = 0
  end
end

Hello Roninator2 🙂

Yes, changing the script seems to fixed the Game over bug. Thank you very much. 🙂
I noticed that the SFX volume isn't lowering in the Systems Options though. The BGM and BGS are working fine, it's just the SFX for some reason.
Do you think a script is affecting that too?
I am surprised to have this show up now. But I think it's because of other scripts that it causes issues.
After a little bit of testing I found that $game_actors is the issue. When I put it in to create it from new then the issue goes away.

So it seems that the actors is saved as being dead so when the game starts, all actors are dead so therefor game over.
If I change my script to add in game actors then it works again.
It is still not okay I think, you have to reset variables, switches and maybe other stuff otherwise they will carry over to new games. Same for the map, if you leave the game when an event is running like my example, then by going back to the map, the event will continue (or maybe it was other scripts from @dreamfall887 's project, I am not sure on this one). In general I don't think it is okay to bypass DataManager.create_game_objects when you start a new game, other scripts might assume that this is called to reset the game too.

Here is an alternative take to have a file storing the options:
Ruby:
#==============================================================================
# YEA - System Options addon - Title Screen Options
#------------------------------------------------------------------------------
# Author: Timtrack
# date: 26/09/2025
# Requires Yanfly's system options
#==============================================================================
# Description: A rework of a script by Roninator2 that adds Yanfly's option
# menu to the title screen. The options will now be stored into a file with name
# OPTION_FILE in module, this file will be shared among ALL saves.
# If you use custom swicthes or variables in yanfly's option, then the switches
# and variables will be overtaken by the option file.
#==============================================================================
# Term of use: Free to use in free or commercial games
#==============================================================================
# Installation: put it below Yanfly's script
#==============================================================================

$imported = {} if $imported.nil?
$imported["TIM-YEA-SO-addon-titleScreen"] = true

#============================================================================
# TitleOptions
#============================================================================
module TitleOptions
  #set this to a filename that suits you
  OPTION_FILE = "Options.rvdata2"

#==============================================================================
# ▼ Editting anything past this point is at your own risk
#==============================================================================
  #attributes that yanfly's options script modifies
  SYSTEM_ATTRIBUTES = [:@window_tone, :@volume, :@autodash, :@instantmsg, :@animations]
  #swicthes modified by Yanfly's option (intersection between the commands used
  #and the ons related to swicthes, then stores the actual swicth id)
  SWITCHES = (YEA::SYSTEM::COMMANDS & YEA::SYSTEM::CUSTOM_SWITCHES.keys).map{|k| YEA::SYSTEM::CUSTOM_SWITCHES[k][0]}
  #variables modified by Yanfly's option
  VARIABLES = (YEA::SYSTEM::COMMANDS & YEA::SYSTEM::CUSTOM_VARIABLES.keys).map{|k| YEA::SYSTEM::CUSTOM_VARIABLES[k][0]}
end #TitleOptions

#============================================================================
# YEA_Options_Data -> stores the values after the options are done and save it
# into a file
#============================================================================
class YEA_Options_Data
  #--------------------------------------------------------------------------
  # method: initialize
  #--------------------------------------------------------------------------
  def initialize
    get_data
  end
  #--------------------------------------------------------------------------
  # method: get_data -> get all variables, swicthes and attributes handled by
  # Yanfly's script
  #--------------------------------------------------------------------------
  def get_data
    @system_data = TitleOptions::SYSTEM_ATTRIBUTES.map{|attr| $game_system.instance_variable_get(attr)}
    @switches = TitleOptions::SWITCHES.map{|id| $game_switches[id]}
    @variables = TitleOptions::VARIABLES.map{|id| $game_variables[id]}
  end
  #--------------------------------------------------------------------------
  # method: set_data -> set all variables, swicthes and attributes handled by
  # Yanfly's script
  #--------------------------------------------------------------------------
  def set_data
    TitleOptions::SYSTEM_ATTRIBUTES.each_with_index do |attr,i|
      $game_system.instance_variable_set(attr, @system_data[i])
    end
    TitleOptions::SWITCHES.each_with_index do |s_id,i|
      $game_switches[s_id] = @switches[i]
    end
    TitleOptions::VARIABLES.each_with_index do |v_id,i|
      $game_variables[v_id] = @variables[i]
    end
  end
end #YEA_Options_Data

#============================================================================
# DataManager
#============================================================================
module DataManager
  #--------------------------------------------------------------------------
  # new method: load_options
  #--------------------------------------------------------------------------
  def self.load_options
    return unless File.exists?(TitleOptions::OPTION_FILE)
    File.open(TitleOptions::OPTION_FILE, "rb") do |file|
      o_d = Marshal.load(file)
      o_d.set_data if o_d.is_a?(YEA_Options_Data)
    end
  end
  #--------------------------------------------------------------------------
  # new method: save_options (assumes the data is already here)
  #--------------------------------------------------------------------------
  def self.save_options
    File.open(TitleOptions::OPTION_FILE, "wb") do |file|
      Marshal.dump(YEA_Options_Data.new, file)
    end
  end
  #--------------------------------------------------------------------------
  # alias method: load_game -> loads the option file
  #--------------------------------------------------------------------------
  class << self; alias title_options_load_game load_game; end
  def self.load_game(index)
    r = title_options_load_game(index)
    load_options if r
    return r
  end
  #--------------------------------------------------------------------------
  # alias method: create_game_objects -> saves
  #--------------------------------------------------------------------------
  class << self; alias create_game_objects_global_options create_game_objects; end
  def self.create_game_objects
    create_game_objects_global_options
    load_options
  end
end #DataManager

#============================================================================
# Window_TitleCommand
#============================================================================
class Window_TitleCommand < Window_Command
  #--------------------------------------------------------------------------
  # overwrite method: make_command_list
  #--------------------------------------------------------------------------
  def make_command_list
    add_command(Vocab::new_game, :new_game)
    add_command(Vocab::continue, :continue, continue_enabled)
    add_command("Options", :options)
    add_command(Vocab::shutdown, :shutdown)
  end
end #Window_TitleCommand

#============================================================================
# Scene_Title
#============================================================================
class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # alias method: create_command_window
  #--------------------------------------------------------------------------
  alias title_options_create_command_window create_command_window
  def create_command_window
    title_options_create_command_window
    @command_window.set_handler(:options, method(:command_options))
  end
  #--------------------------------------------------------------------------
  # new method: command_options
  #--------------------------------------------------------------------------
  def command_options
    close_command_window
    SceneManager.call(Scene_System)
  end
end #Scene_Title

#============================================================================
# Scene_System
#============================================================================
class Scene_System < Scene_MenuBase
  #--------------------------------------------------------------------------
  # alias method: start
  #--------------------------------------------------------------------------
  alias title_options_start start
  def start
    DataManager.create_game_objects if $game_switches.nil?
    title_options_start
  end
  #--------------------------------------------------------------------------
  # alias method: terminate
  #--------------------------------------------------------------------------
  alias title_options_terminate terminate
  def terminate
    DataManager.save_options
    title_options_terminate
  end
end #Scene_System
It is still not okay I think, you have to reset variables, switches and maybe other stuff otherwise they will carry over to new games. Same for the map, if you leave the game when an event is running like my example, then by going back to the map, the event will continue (or maybe it was other scripts from @dreamfall887 's project, I am not sure on this one). In general I don't think it is okay to bypass DataManager.create_game_objects when you start a new game, other scripts might assume that this is called to reset the game too.

Here is an alternative take to have a file storing the options:
Ruby:
#==============================================================================
# YEA - System Options addon - Title Screen Options
#------------------------------------------------------------------------------
# Author: Timtrack
# date: 26/09/2025
# Requires Yanfly's system options
#==============================================================================
# Description: A rework of a script by Roninator2 that adds Yanfly's option
# menu to the title screen. The options will now be stored into a file with name
# OPTION_FILE in module, this file will be shared among ALL saves.
# If you use custom swicthes or variables in yanfly's option, then the switches
# and variables will be overtaken by the option file.
#==============================================================================
# Term of use: Free to use in free or commercial games
#==============================================================================
# Installation: put it below Yanfly's script
#==============================================================================

$imported = {} if $imported.nil?
$imported["TIM-YEA-SO-addon-titleScreen"] = true

#============================================================================
# TitleOptions
#============================================================================
module TitleOptions
  #set this to a filename that suits you
  OPTION_FILE = "Options.rvdata2"

#==============================================================================
# ▼ Editting anything past this point is at your own risk
#==============================================================================
  #attributes that yanfly's options script modifies
  SYSTEM_ATTRIBUTES = [:@window_tone, :@volume, :@autodash, :@instantmsg, :@animations]
  #swicthes modified by Yanfly's option (intersection between the commands used
  #and the ons related to swicthes, then stores the actual swicth id)
  SWITCHES = (YEA::SYSTEM::COMMANDS & YEA::SYSTEM::CUSTOM_SWITCHES.keys).map{|k| YEA::SYSTEM::CUSTOM_SWITCHES[k][0]}
  #variables modified by Yanfly's option
  VARIABLES = (YEA::SYSTEM::COMMANDS & YEA::SYSTEM::CUSTOM_VARIABLES.keys).map{|k| YEA::SYSTEM::CUSTOM_VARIABLES[k][0]}
end #TitleOptions

#============================================================================
# YEA_Options_Data -> stores the values after the options are done and save it
# into a file
#============================================================================
class YEA_Options_Data
  #--------------------------------------------------------------------------
  # method: initialize
  #--------------------------------------------------------------------------
  def initialize
    get_data
  end
  #--------------------------------------------------------------------------
  # method: get_data -> get all variables, swicthes and attributes handled by
  # Yanfly's script
  #--------------------------------------------------------------------------
  def get_data
    @system_data = TitleOptions::SYSTEM_ATTRIBUTES.map{|attr| $game_system.instance_variable_get(attr)}
    @switches = TitleOptions::SWITCHES.map{|id| $game_switches[id]}
    @variables = TitleOptions::VARIABLES.map{|id| $game_variables[id]}
  end
  #--------------------------------------------------------------------------
  # method: set_data -> set all variables, swicthes and attributes handled by
  # Yanfly's script
  #--------------------------------------------------------------------------
  def set_data
    TitleOptions::SYSTEM_ATTRIBUTES.each_with_index do |attr,i|
      $game_system.instance_variable_set(attr, @system_data[i])
    end
    TitleOptions::SWITCHES.each_with_index do |s_id,i|
      $game_switches[s_id] = @switches[i]
    end
    TitleOptions::VARIABLES.each_with_index do |v_id,i|
      $game_variables[v_id] = @variables[i]
    end
  end
end #YEA_Options_Data

#============================================================================
# DataManager
#============================================================================
module DataManager
  #--------------------------------------------------------------------------
  # new method: load_options
  #--------------------------------------------------------------------------
  def self.load_options
    return unless File.exists?(TitleOptions::OPTION_FILE)
    File.open(TitleOptions::OPTION_FILE, "rb") do |file|
      o_d = Marshal.load(file)
      o_d.set_data if o_d.is_a?(YEA_Options_Data)
    end
  end
  #--------------------------------------------------------------------------
  # new method: save_options (assumes the data is already here)
  #--------------------------------------------------------------------------
  def self.save_options
    File.open(TitleOptions::OPTION_FILE, "wb") do |file|
      Marshal.dump(YEA_Options_Data.new, file)
    end
  end
  #--------------------------------------------------------------------------
  # alias method: load_game -> loads the option file
  #--------------------------------------------------------------------------
  class << self; alias title_options_load_game load_game; end
  def self.load_game(index)
    r = title_options_load_game(index)
    load_options if r
    return r
  end
  #--------------------------------------------------------------------------
  # alias method: create_game_objects -> saves
  #--------------------------------------------------------------------------
  class << self; alias create_game_objects_global_options create_game_objects; end
  def self.create_game_objects
    create_game_objects_global_options
    load_options
  end
end #DataManager

#============================================================================
# Window_TitleCommand
#============================================================================
class Window_TitleCommand < Window_Command
  #--------------------------------------------------------------------------
  # overwrite method: make_command_list
  #--------------------------------------------------------------------------
  def make_command_list
    add_command(Vocab::new_game, :new_game)
    add_command(Vocab::continue, :continue, continue_enabled)
    add_command("Options", :options)
    add_command(Vocab::shutdown, :shutdown)
  end
end #Window_TitleCommand

#============================================================================
# Scene_Title
#============================================================================
class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # alias method: create_command_window
  #--------------------------------------------------------------------------
  alias title_options_create_command_window create_command_window
  def create_command_window
    title_options_create_command_window
    @command_window.set_handler(:options, method(:command_options))
  end
  #--------------------------------------------------------------------------
  # new method: command_options
  #--------------------------------------------------------------------------
  def command_options
    close_command_window
    SceneManager.call(Scene_System)
  end
end #Scene_Title

#============================================================================
# Scene_System
#============================================================================
class Scene_System < Scene_MenuBase
  #--------------------------------------------------------------------------
  # alias method: start
  #--------------------------------------------------------------------------
  alias title_options_start start
  def start
    DataManager.create_game_objects if $game_switches.nil?
    title_options_start
  end
  #--------------------------------------------------------------------------
  # alias method: terminate
  #--------------------------------------------------------------------------
  alias title_options_terminate terminate
  def terminate
    DataManager.save_options
    title_options_terminate
  end
end #Scene_System

Thank you for the script @Timtrack 🙂

The only problem now is the SFX volume not lowering on the System Options Menu. The BGM and BGS work fine but it's just the SFX's volume that won't go down for some reason.
It is still not okay I think, you have to reset variables, switches and maybe other stuff otherwise they will carry over to new games. Same for the map, if you leave the game when an event is running like my example, then by going back to the map, the event will continue (or maybe it was other scripts from @dreamfall887 's project, I am not sure on this one). In general I don't think it is okay to bypass DataManager.create_game_objectswhen you start a new game, other scripts might assume that this is called to reset the game too.
The one issue is that resetting all game objects will result in none of the system options remaining. So yes that means that my second edition I made is the correct one as it does them all except system options.
I noticed that the SFX volume isn't lowering in the Systems Options though. The BGM and BGS are working fine, it's just the SFX for some reason.
I can look into that soon.

I just tested your project and it's working fine. Can you explain more?
1758943116736.png
The only problem now is the SFX volume not lowering on the System Options Menu. The BGM and BGS work fine but it's just the SFX's volume that won't go down for some reason.
I suppose you mean that the value will go down but the actual volume will not go down itself.
This issue comes from Blackmorning's Basic Module script which removes the volume modification by Yanfly's option menu.
Here is a compatibility patch that you can put below both scripts:
Ruby:
#==============================================================================
# ** SE  (randomizes pitch)
#==============================================================================
class RPG::SE < RPG::AudioFile
  #--------------------------------------------------------------------------
  # overwrite method: play (integrates both script's modifications)
  #--------------------------------------------------------------------------
  def play
    unless @name.empty?
      #from Yanfly's system options
      volume = @volume
      volume *= $game_system.volume(:sfx) * 0.01 unless $game_system.nil?
      #from Blackmorning's Basic Module
      pitch = @pitch
      pitch += rand(7)-3 if BM::RAND_PITCH
      Audio.se_play('Audio/SE/' + @name, volume, pitch)
    end
  end
end #RPG::SE


The one issue is that resetting all game objects will result in none of the system options remaining. So yes that means that my second edition I made is the correct one as it does them all except system options.
I agree that we should not reset everything, though I have a few nitpicks on your second version:
- Some $game_system attributes are handled mid-game by the interpreter (namely saving or main menu enabling, encounters and formations, save counts, battle counts and version id), then some scripts might add other attributes to game_system. So a few bugs might get in if someone plays the game, then go back to the main menu in any way and starts a new game without shutting down the game first.
- Yanfly's option menu allows to modify some switches and variables so resetting all of them might not be the right call here, we might need to memorize them too (though in dreamfall887's case, she does not use custom switches or variables so it is fine).

What I think should be done is keeping the original setup_new_game method but aliasing create_game_objects to save the options you want to carry and put them back in after the reset of the game objects:
Ruby:
module DataManager
    class << self; alias title_options_create_game_objects create_game_objects; end
      def self.create_game_objects
        if $game_system.nil?
            title_options_create_game_objects
        else #if the system is already loaded then protect the options you care about:
            sys = $game_system.dup
            swi = $game_switches.dup
            var = $game_variables.dup
            title_options_create_game_objects
            #do something to put back the right values for system,
            #switches and variables here
        end
      end
end #DataManager
My take on this was to create an object YEA_Options_Data that can save the options and put them back, though its implementation is not perfect as I bypass yanfly's methods that set the variables so it might have low compatibility with other addons to the option menu.
I suppose you mean that the value will go down but the actual volume will not go down itself.
This issue comes from Blackmorning's Basic Module script which removes the volume modification by Yanfly's option menu.
Here is a compatibility patch that you can put below both scripts:
Ruby:
#==============================================================================
# ** SE  (randomizes pitch)
#==============================================================================
class RPG::SE < RPG::AudioFile
  #--------------------------------------------------------------------------
  # overwrite method: play (integrates both script's modifications)
  #--------------------------------------------------------------------------
  def play
    unless @name.empty?
      #from Yanfly's system options
      volume = @volume
      volume *= $game_system.volume(:sfx) * 0.01 unless $game_system.nil?
      #from Blackmorning's Basic Module
      pitch = @pitch
      pitch += rand(7)-3 if BM::RAND_PITCH
      Audio.se_play('Audio/SE/' + @name, volume, pitch)
    end
  end
end #RPG::SE

Thank you! The patch worked perfectly.

Thank you @Timtrack and @Roninator2 for helping me. I really appreciate it. 🙂
What I think should be done is keeping the original setup_new_gamemethod but aliasing create_game_objectsto save the options you want to carry and put them back in after the reset of the game objects:
Sure, but I would argue that there are other scripts out there for global data saving. I only need my script to process the system options.
Sure, but I would argue that there are other scripts out there for global data saving. I only need my script to process the system options.
This is not about global data saving here, you would need to do more than what I suggested in my previous post to have global data: like saving the data in a file or calling the data of the last saved file like in Hime's preserve data script.

What I'm trying to say here is that there is a bug in your script: if you play the game, then through the game mess around with values handled by $game_system (outside of the options from Yanfly's script), then go back to the main menu and then start a new game. Then the modifications done to $game_system through your last playthrough will be carried to your new game, leading to potential unwanted behavior.
For instance: you start a game, you talk to an event that will remove the main menu option, then go back to the main menu (or trigger a game over whatever the case here). If you start a new game without shutting down the game first, then the main menu will still not be available at the beginning of your new game.
1759052622919.png

Here is a simple event to represent the issue I'm trying to highlight.

As such, my suggestion at the end of my previous post is a way to handle this, it is not the only way and it has nothing to do with global settings.
As such, my suggestion at the end of my previous post is a way to handle this, it is not the only way and it has nothing to do with global settings.
I see your point now. If settings are made or other script actually inject new variables to game system then they will be carried over to a new game.
My point on the global setting was in regards to the addition statement you made with switches and variables.
But if they are setup in yanfly's script then this is no longer a simple 'preset the option on title and save its settings' script.
I'll have to work on getting those things fine tuned. v1.02 must be made

Original thread: https://forums.rpgmakerweb.com/threads/game-keeps-going-to-game-over-screen-and-i-cant-figure-out-why.180313/