Hey @Roninator2 , your title screen options script has a big oversight in it.
It works until you're brought back to the title screen and press New Game, which has a bunch of things happen:
* Every switch and variable that was active at the player's current point (aka. if they were mid-game and went back to the title screen for whatever reason), they will also be active upon choosing a New Game.
* Every item, weapon, armor and key item they had will also be retained in New Game.
* If the player were to die and go back to the title screen, they would reset in a perma-dead state unless a recover all script is attached.
TLDR; the script has no initialization method to reset everything to zero when you choose New Game when you're booted to the Title Screen mid-game. Shame too, because I see this being very useful otherwise.
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Title Options ║ Version: 1.00 ║
# ║ Author: Roninator2 ║ ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function: ║ Date Created ║
# ║ Show Options Command ╠════════════════════╣
# ║ on title screen ║ 16 Mar 2021 ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Requires: Yanfly's System Options ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Script allows accessing the options screen ║
# ║ before starting the game ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates: ║
# ║ 1.00 - 19 Mar 2021 - Script finished ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use: ║
# ║ Free for all RPG Maker uses ║
# ╚══════════════════════════════════════════════════════════╝
module DataManager
def self.setup_new_game
$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_party.members.each { |actor| actor.recover_all }
$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
def create_command_window
@command_window = Window_TitleCommand.new
@command_window.set_handler(:new_game, method(:command_new_game))
@command_window.set_handler(:continue, method(:command_continue))
@command_window.set_handler(:options, method(:command_options))
@command_window.set_handler(:shutdown, method(:command_shutdown))
end
def command_options
close_command_window
SceneManager.call(Scene_System)
end
end
class Window_TitleCommand < Window_Command
def make_command_list
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command("System", :options)
add_command(Vocab::shutdown, :shutdown)
end
end
It works until you're brought back to the title screen and press New Game, which has a bunch of things happen:
* Every switch and variable that was active at the player's current point (aka. if they were mid-game and went back to the title screen for whatever reason), they will also be active upon choosing a New Game.
* Every item, weapon, armor and key item they had will also be retained in New Game.
* If the player were to die and go back to the title screen, they would reset in a perma-dead state unless a recover all script is attached.
TLDR; the script has no initialization method to reset everything to zero when you choose New Game when you're booted to the Title Screen mid-game. Shame too, because I see this being very useful otherwise.