Advertisement
Dekita

Untitled

Apr 19th, 2014
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. #===============================================================================
  2. # http://dekitarpg.wordpress.com/
  3. #===============================================================================
  4. #
  5. # Snippet to bypass the title screen, usefull for testing reasons.
  6. # Can set to automatically check for most recent save file.
  7. #
  8. #===============================================================================
  9. module AutoStart
  10. #===============================================================================
  11. Use_Snippet = false # make false to disable snippet
  12. Check_Saves = true # make false to always start newgame
  13. end
  14.  
  15. #===============================================================================
  16. module SceneManager
  17. #===============================================================================
  18. if AutoStart::Use_Snippet
  19. def self.first_scene_class
  20. $BTEST ? Scene_Battle : Scene_AutoLoadGame
  21. end
  22. end
  23. end
  24.  
  25. #===============================================================================
  26. class Scene_AutoLoadGame < Scene_Base
  27. #===============================================================================
  28. def start();super
  29. SceneManager.clear;Graphics.freeze
  30. d=DataManager;i=d.last_savefile_index
  31. d.load_game(i)if d.save_file_exists?&&(AutoStart::Check_Saves)
  32. d.setup_new_game if !d.save_file_exists?||!(AutoStart::Check_Saves)
  33. $game_map.autoplay;SceneManager.goto(Scene_Map)
  34. end
  35. end
  36.  
  37. #===============================================================================#
  38. # http://dekitarpg.wordpress.com/ #
  39. #===============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement