module DataManager MAP_ID_FOR_BONUS_STAGE = 2 # bonus stage map start MAP_X = 10 # x coords of the bonus stage map you will be transferred in. MAP_Y = 10 # y coords of the bonus stage map you will be transferred in. class << self alias milena_create_game_objects create_game_objects #-------------------------------------------------------------------------- # * Create Game Objects #-------------------------------------------------------------------------- def create_game_objects milena_create_game_objects $game_plus = Game_NewGamePlus.new end end #-------------------------------------------------------------------------- # * Set Up New Game #-------------------------------------------------------------------------- def self.setup_new_game_plus create_game_objects $game_party.setup_starting_members $game_map.setup(MAP_ID_FOR_BONUS_STAGE) $game_player.moveto(MAP_X, MAP_Y) $game_player.refresh Graphics.frame_count = 0 end end# this is referenced by $game_plusclass Game_NewGamePlus attr_accessor :create_new_game #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize @create_new_game = false endendclass Window_TitleCommand < Window_Command #-------------------------------------------------------------------------- # * Create Command List #-------------------------------------------------------------------------- def make_command_list add_command(Vocab::new_game, :new_game) add_command(Vocab::continue, :continue, continue_enabled) add_command("Bonus Stage", :new_game_plus, new_game_plus_enabled) add_command(Vocab::shutdown, :shutdown) end def new_game_plus_enabled return true if $game_plus.create_new_game return false if $game_plus.create_new_game end endclass Scene_Title < Scene_Base #-------------------------------------------------------------------------- # * Create Command Window #-------------------------------------------------------------------------- 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

new_game_plus, method

command_plus)) @command_window.set_handler

shutdown, method

command_shutdown)) end def command_plus DataManager.setup_new_game_plus close_command_window fadeout_all $game_map.autoplay SceneManager.goto(Scene_Map) end end