Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ■ Nio Kasgami Engine "Skip_to_new_game" (VX_EDITION)
- # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Simple script who skip the title screen if they don't have any save
- # Created by Nio Kasgami.
- # Data : 2015/04/14
- # Version : 1.0.0
- #==============================================================================
- # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # Scene_Title
- # =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- class Scene_Title < Scene_Base
- #--------------------------------------------------------------------------
- # ● overwrite method: start
- #--------------------------------------------------------------------------
- def start
- super
- load_database # Load database
- create_game_objects # Create game objects
- check_continue
- # Determine if continue is enabled
- if Dir.glob('Save*.rvdata').size > 0
- create_title_graphic # Create title graphic
- create_command_window # Create command window
- play_title_music # Play title screen music
- else
- new_game_without_title
- end
- end
- #----------------------------------------------------------------------------
- # ○ new method: new_game_without_title
- #----------------------------------------------------------------------------
- def new_game_without_title
- confirm_player_location
- $game_party.setup_starting_members # Initial party
- $game_map.setup($data_system.start_map_id) # Initial map position
- $game_player.moveto($data_system.start_x, $data_system.start_y)
- $game_player.refresh
- $scene = Scene_Map.new
- RPG::BGM.fade(1500)
- Graphics.fadeout(60)
- Graphics.wait(40)
- Graphics.frame_count = 0
- RPG::BGM.stop
- $game_map.autoplay
- end
- #--------------------------------------------------------------------------
- # ● overwrite method: post_start
- #--------------------------------------------------------------------------
- def post_start
- super
- if Dir.glob('Save*.rvdata').size > 0
- open_command_window
- else
- return
- end
- end
- #--------------------------------------------------------------------------
- # ● overwrite method: pre_terminate
- #--------------------------------------------------------------------------
- def pre_terminate
- super
- if Dir.glob('Save*.rvdata').size > 0
- close_command_window
- else
- return
- end
- end
- #--------------------------------------------------------------------------
- # ● overwrite method: terminate
- #--------------------------------------------------------------------------
- def terminate
- super
- if Dir.glob('Save*.rvdata').size > 0
- dispose_command_window
- snapshot_for_background
- dispose_title_graphic
- else
- return
- end
- end
- #--------------------------------------------------------------------------
- # ● overwrite method: update
- #--------------------------------------------------------------------------
- def update
- super
- if Dir.glob('Save*.rvdata').size > 0
- @command_window.update
- if Input.trigger?(Input::C)
- case @command_window.index
- when 0 #New game
- command_new_game
- when 1 # Continue
- command_continue
- when 2 # Shutdown
- command_shutdown
- end
- end
- else
- return
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement