Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #----------------------------------------------------------------------------
- # AriArk's Save Options
- # Version 1.20
- #----------------------------------------------------------------------------
- # This script allows you to change three things about saving.
- # 1. The maximum amount of save files allowed
- # 2. The name of save files
- # 3. The amount of save files visible
- #----------------------------------------------------------------------------
- class Scene_File < Scene_MenuBase #Don't touch
- def start #Don't touch
- #----------------------------------------------------------------------------
- # CUSTOM SETTINGS
- #----------------------------------------------------------------------------
- # Maximum Save Files Shown at one time
- #----------------------------------------------------------------------------
- @shown_max = 4 # deafult 4
- #----------------------------------------------------------------------------
- super #Don't touch
- create_help_window #Don't touch
- create_savefile_viewport #Don't touch
- create_savefile_windows #Don't touch
- init_selection #Don't touch
- end #Don't touch
- end
- #----------------------------------------------------------------------------
- module SceneManager
- def self.run #Don't touch
- DataManager.init #Don't touch
- DataManager.init2 #Don't touch
- Audio.setup_midi if use_midi? #Don't touch
- @scene = first_scene_class.new #Don't touch
- @scene.main while @scene #Don't touch
- end #Don't touch
- end #Don't touch
- module DataManager #Don't touch
- def self.init2 #Don't touch
- #----------------------------------------------------------------------------
- # Maximum Save Files
- #----------------------------------------------------------------------------
- @save_file_max = 32 # deafult 16
- #----------------------------------------------------------------------------
- # Name of Save Files
- #----------------------------------------------------------------------------
- @save_name = "save" # deafult "save"
- #----------------------------------------------------------------------------
- end
- end
- #----------------------------------------------------------------------------
- # END OF CUSTOM SETTINGS
- #----------------------------------------------------------------------------
- # DO NOT EDIT ANYTHING BELOW IF YOU DO NOT KNOW RUBY!!!
- #----------------------------------------------------------------------------
- module DataManager
- def self.savefile_max
- return @save_file_max
- end
- end
- def self.save_file_exists?
- !Dir.glob(@save_name + '*.rvdata2').empty?
- end
- def self.make_filename(index)
- sprintf(@save_name + "%02d.rvdata2", index + 1)
- end
- class Scene_File < Scene_MenuBase
- def visible_max
- return @shown_max
- end
- end
RAW Paste Data