Create new Max Save File Cap?

RemyKey109

Villager
Member
Joined
Jul 4, 2019
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hi guys. I was wondering how to create an event players can unlock a new save file in the game as a reward. I know that with YEP_SaveCore, you can pre-determine the max save files or save file cap, THOUGH...I'm wondering if there is a simple solution to this with a script call or something, so that players can earn additional save files as a reward...

I've also tried EISLockedSaves.js plugin, though that only locks players into one save file per playthrough, and when adding a new
save file via script call, it's pointless, because the default plugin creates new save files, once the max is used...and it just keeps creating save files by default...LoL So, that's not what I'm looking for.

Curiously,
Remy K.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
854
First Language
English
Primarily Uses
RMMV
@RemyKey109 Here is a simplistic solution that can be tossed into a '.js' file in your plugin folder :

Code:
var Ossra_GameSystem_initialize = Game_System.prototype.initialize;

Game_System.prototype.initialize = function() {
  Ossra_GameSystem_initialize.call(this);

  this._maxSaveSlot = 20;
};

Game_System.prototype.setMaxSaveSlot = function(value) {
  this._maxSaveSlot = value;
};

DataManager.maxSavefiles = function() {
    return $gameSystem._maxSaveSlot;
};
The script command to set the maximum amount of save slots would be as follows :

Code:
$gameSystem.setMaxSaveSlot(amount);
 

RemyKey109

Villager
Member
Joined
Jul 4, 2019
Messages
5
Reaction score
1
First Language
English
Primarily Uses
RMMV
Tested it, Ossra, and it works perfectly! YOU'RE THE BEST!!! :D
I've been searching for a solution to this for awhile on my own so I didn't have to bug anyone here, but that is easy and works!
I have YEP_SaveCore installed and it functions with that---no conflicts. AWESOME!
Again! Many thanks!
Do you have a paypal so I can send ya a few bucks for the help?

Most Appreciative,
Remy K.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top