AriArk

AriArk's Save Options v1.20

Sep 5th, 2013
119
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #----------------------------------------------------------------------------
  2. # AriArk's Save Options
  3. # Version 1.20
  4. #----------------------------------------------------------------------------
  5. # This script allows you to change three things about saving.
  6. # 1. The maximum amount of save files allowed
  7. # 2. The name of save files
  8. # 3. The amount of save files visible
  9. #----------------------------------------------------------------------------
  10. class Scene_File < Scene_MenuBase            #Don't touch
  11.   def start                                  #Don't touch
  12. #----------------------------------------------------------------------------
  13. #                              CUSTOM SETTINGS
  14. #----------------------------------------------------------------------------
  15. # Maximum Save Files Shown at one time
  16. #----------------------------------------------------------------------------
  17.    
  18.  
  19.  
  20.    @shown_max = 4   # deafult 4
  21.  
  22.  
  23.    
  24. #----------------------------------------------------------------------------  
  25. super                                        #Don't touch
  26.     create_help_window                       #Don't touch
  27.     create_savefile_viewport                 #Don't touch
  28.     create_savefile_windows                  #Don't touch
  29.     init_selection                           #Don't touch
  30.   end                                        #Don't touch
  31. end
  32. #----------------------------------------------------------------------------
  33. module SceneManager
  34.   def self.run                               #Don't touch
  35.     DataManager.init                         #Don't touch
  36.     DataManager.init2                        #Don't touch
  37.     Audio.setup_midi if use_midi?            #Don't touch
  38.     @scene = first_scene_class.new           #Don't touch
  39.     @scene.main while @scene                 #Don't touch
  40.   end                                        #Don't touch
  41. end                                          #Don't touch
  42. module DataManager                           #Don't touch
  43.   def self.init2                             #Don't touch
  44. #----------------------------------------------------------------------------    
  45. # Maximum Save Files
  46. #----------------------------------------------------------------------------
  47.    
  48.  
  49.  
  50.    @save_file_max = 32   # deafult 16
  51.  
  52.    
  53.      
  54. #----------------------------------------------------------------------------
  55. # Name of Save Files
  56. #----------------------------------------------------------------------------
  57.    
  58.  
  59.  
  60.    @save_name = "save"   # deafult "save"
  61.  
  62.    
  63.    
  64. #----------------------------------------------------------------------------
  65. end
  66. end
  67. #----------------------------------------------------------------------------
  68. #                         END OF CUSTOM SETTINGS
  69. #----------------------------------------------------------------------------
  70. #            DO NOT EDIT ANYTHING BELOW IF YOU DO NOT KNOW RUBY!!!
  71. #----------------------------------------------------------------------------
  72. module DataManager
  73.   def self.savefile_max
  74.     return @save_file_max
  75.   end
  76. end
  77.   def self.save_file_exists?
  78.     !Dir.glob(@save_name + '*.rvdata2').empty?
  79.   end
  80.   def self.make_filename(index)
  81.     sprintf(@save_name + "%02d.rvdata2", index + 1)
  82.   end
  83.   class Scene_File < Scene_MenuBase
  84.     def visible_max
  85.     return @shown_max
  86.   end
  87. end
RAW Paste Data