Advertisement
Legacy

[RGSS3] Skip Title

Nov 8th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.78 KB | None | 0 0
  1. #==============================================================================
  2. # :: Skip Title
  3. #------------------------------------------------------------------------------
  4. # Description:
  5. #   This script is a simple hack to allow the user to skip the title screen
  6. # by changing the 'SKIP_TITLE' variable.
  7. #------------------------------------------------------------------------------
  8. # Compatibility:
  9. #
  10. # * Overwrite methods
  11. #   class << self
  12. #     def self.first_scene_class
  13. #
  14. # * Alias methods
  15. #   module SceneManager
  16. #     def self.first_scene_class
  17. #
  18. #==============================================================================
  19.  
  20. module SceneManager
  21.   #--------------------------------------------------------------------------
  22.   # ; SKIP_TITLE Boolean - If enabled, skip title and go to Scene_Map
  23.   #--------------------------------------------------------------------------
  24.   SKIP_TITLE = true
  25.   #--------------------------------------------------------------------------
  26.   # ; Alias Method, self - The current object
  27.   #--------------------------------------------------------------------------
  28.   class << self
  29.     alias :legacy_title_skip :first_scene_class
  30.   end
  31.   #--------------------------------------------------------------------------
  32.   # ; Overwritten Method - Get First Scene Class
  33.   #--------------------------------------------------------------------------
  34.   def self.first_scene_class
  35.     SKIP_TITLE ? load_game_map : legacy_title_skip
  36.   end
  37.   #--------------------------------------------------------------------------
  38.   # ; New Method - Loads the game map, for use when SKIP_TILE is enabled
  39.   #--------------------------------------------------------------------------
  40.   def self.load_game_map
  41.     DataManager.setup_new_game
  42.     Scene_Map
  43.   end
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement