Intro In the RPG Maker 2000 had 15 saveslots. When the RPGXP appeared only 4 slots. But with a script by KGC could expand this. Since the default RPGVX only has 4 saveslots, I thought why I don't make myself such a script as KGC has done? So here is my conclusion:
Features
Set the value of saveslots
Screenshots
Guide Create empty Script above Main and paste the script into it. To change the value of saveslots, simply set the constant MAXSAVEFILES to positive numerical value. For example:
#============================================================================== # ** More savefiles 1.01 (http://erzvx.de.ms/scripts/MoreSavefiles.txt) #------------------------------------------------------------------------------ # written by ERZENGEL #==============================================================================
# Max amount of savefiles MAXSAVEFILES = 8
#============================================================================== # ** Window_SaveFile #------------------------------------------------------------------------------ # This window displays save files on the save and load screens. #==============================================================================
class Window_SaveFile < Window_Base #-------------------------------------------------------------------------- # * Object Initialization # file_index : save file index (0 to the value of MAXSAVEFILES) # filename : filename #-------------------------------------------------------------------------- def initialize(file_index, filename) super(0, 56 + file_index % MAXSAVEFILES * 90, 544, 90) @file_index = file_index @filename = filename load_gamedata refresh @selected = false end end
#============================================================================== # ** Scene_File #------------------------------------------------------------------------------ # This class performs the save and load screen processing. #==============================================================================
class Scene_File #-------------------------------------------------------------------------- # * Start processing #-------------------------------------------------------------------------- def start super @file_max = MAXSAVEFILES create_menu_background @help_window = Window_Help.new create_savefile_windows if @saving @index = $game_temp.last_file_index @help_window.set_text(Vocab::SaveMessage) else @index = self.latest_file_index @help_window.set_text(Vocab::LoadMessage) end @savefile_windows[@index].selected = true @page_file_max = ((416 - @help_window.height) / 90).truncate for i in 0...@file_max window = @savefile_windows[i] if @index > @page_file_max - 1 if @index < @file_max - @page_file_max - 1 @top_row = @index window.y -= @index * window.height elsif @index >= @file_max - @page_file_max @top_row = @file_max - @page_file_max window.y -= (@file_max - @page_file_max) * window.height else @top_row = @index window.y -= @index * window.height end end window.visible = (window.y >= @help_window.height and window.y < @help_window.height + @page_file_max * window.height) end end #-------------------------------------------------------------------------- # * Create Save File Window #-------------------------------------------------------------------------- def create_savefile_windows @top_row = 0 @savefile_windows = [] for i in 0...@file_max @savefile_windows.push(Window_SaveFile.new(i, make_filename(i))) end end #-------------------------------------------------------------------------- # * Move cursor down # wrap : Wraparound allowed #-------------------------------------------------------------------------- def cursor_down(wrap) if @index < @file_max - 1 or wrap @index = (@index + 1) % @file_max for i in 0...@file_max window = @savefile_windows[i] if @index == 0 @top_row = 0 window.y = @help_window.height + i % @file_max * window.height elsif @index - @top_row > @page_file_max - 1 window.y -= window.height end window.visible = (window.y >= @help_window.height and window.y < @help_window.height + @page_file_max * window.height) end if @index - @top_row > @page_file_max - 1 @top_row += 1 end end end #-------------------------------------------------------------------------- # * Move cursor up # wrap : Wraparound allowed #-------------------------------------------------------------------------- def cursor_up(wrap) if @index > 0 or wrap @index = (@index - 1 + @file_max) % @file_max for i in 0...@file_max window = @savefile_windows[i] if @index == @file_max - 1 @top_row = @file_max - @page_file_max window.y = @help_window.height + i % @file_max * window.height window.y -= (@file_max - @page_file_max) * window.height elsif @index - @top_row < 0 window.y += window.height end window.visible = (window.y >= @help_window.height and window.y < @help_window.height + @page_file_max * window.height) end if @index - @top_row < 0 @top_row -= 1 end end end end
Outro I tested it till 999 savefiles, so it should work to this amount without problems. Unfortunately, I have not the time or the necessary script had to test the compatibility. So if you have any suggestions or problems post them here.
This post has been edited by ERZENGEL: Mar 6 2008, 12:59 PM
Notice!! Check out my topic (http://www.rpgrevolution.com/forums/index.php?showtopic=45736&st=0#entry454175) if you're interested in helping me make a script that limits the number of characters & items you use in battle AND also an item durability feature! Thanks for any help in advance!
Group: Member
Posts: 5
Type: None
RM Skill: Undisclosed
I can honestly say this is one of the most useful scripts I have ever used, Well one of the only ones because I can't get most to work >.>... Very easy, Plug, change value, and play!
Group: Member
Posts: 26
Type: None
RM Skill: Undisclosed
I used this, its awesome!
One thing to point out is that having 999 slots (the supposed maximum) seems to overload and lag the game. I used 99 however and it works fine, 99 is all someone should need, right?
__________________________
I am an indigo don't be mean or you'll get hit by the RAWR!
Quick question, how would you feel about this being used in a commercial game? I can't afford to pay you for it, but I would of course credit you. Feel free to say yes or no, no hard feelings either way.
Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95
Epic Necropost. Please don't do this in the future. And if he wanted it not used in commercial games, he probably would have said so. So go ahead and use it.