Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- # http://dekitarpg.wordpress.com/
- #===============================================================================
- #
- # Snippet to bypass the title screen, usefull for testing reasons.
- # Can set to automatically check for most recent save file.
- #
- #===============================================================================
- module AutoStart
- #===============================================================================
- Use_Snippet = false # make false to disable snippet
- Check_Saves = true # make false to always start newgame
- end
- #===============================================================================
- module SceneManager
- #===============================================================================
- if AutoStart::Use_Snippet
- def self.first_scene_class
- $BTEST ? Scene_Battle : Scene_AutoLoadGame
- end
- end
- end
- #===============================================================================
- class Scene_AutoLoadGame < Scene_Base
- #===============================================================================
- def start();super
- SceneManager.clear;Graphics.freeze
- d=DataManager;i=d.last_savefile_index
- d.load_game(i)if d.save_file_exists?&&(AutoStart::Check_Saves)
- d.setup_new_game if !d.save_file_exists?||!(AutoStart::Check_Saves)
- $game_map.autoplay;SceneManager.goto(Scene_Map)
- end
- end
- #===============================================================================#
- # http://dekitarpg.wordpress.com/ #
- #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement