So, I was wondering if it's possible to modify a save file in certain ways.
As a simple example, it is very common in RPGs to have you save after beating the game. When you load that save file, you're in the room before the final boss, or back in the starting town, or something like that. Even though you saved on the ending screen, where it says "The End", you reload the game in a different spot. This is super common.
Doing that isn't so easy in RPG Maker, though. If you fight the final boss on Map A, and the game saves afterwords, you're gonna load that file still on Map A, not on Map B. You could transfer the player to Map B during the cutscene after the battle, and force the save then, but that's real awkward.
So, is it possible to edit a save file with a plugin, to do stuff like that? Have the game save, then edit the save file so that the player will reload on a different map? Or edit the save file so that a switch is turned on? Or things like that?
1 way is to use persisted switch (like you can continue in megaman battle network) after
beating the game, you start near the end and backtrace because new paths are open
to explore.
persistent switch that turn ON after beating the boss are saved, and probably a
common event is needed to control the tranfer after beating the boss.
another way is to start over with x switch and items available using NewGame+ plugin,
there are a couple of those, each with their own features, some same, some different,
so you need to look for this one.
Both of those could work, but neither are quite right. With the persistent switches, those tend to (at least with plugins I've seen) effect all save files. So, it'd work fine if it was a single file game, but not so much if there were many files. Unless there's a persistent switch Plugin that works differently!
New Game + seems a bit complicated too. Like, I don't want to reset all files and all variables and all self switches, just one or two things.
arina or olvia have persistend switches <local> for single and <global> for all that is
saved in a file.
local and save in 3 save slots, will bound those, global counts for all.
which come close.
combine it with a load common event when loading a game can achieve the way you want.
if you want only 1 save slot to be able, make sure you can save the game as autosave
on the last logged in save and none other.
TSR_Save can do that feature, but there might be other as well, but that is totally up to you
how to achieve the desire effect on those.
I don't see how this would be awkward. You're probably going to have a fade out event after beating the game anyway. So just transfer the guy, save, transfer back, or do whatever you intended for the end. This happens pretty much instantly and nobody will ever notice.
Some of these options work decently. I myself was unfamiliar with the ability to check what the previous scene was. I feel that these options, through persistent switches and branching conditions, could get the general idea of what I'm asking for.
But, it still isn't as good as simply modifying the save file.
Like, let me compare these two options:
1) You save the game. You fight the final boss. After beating the final boss, the save file is modified to have your position be in the starting town, and a switch is activated that signifies that you beat the game.
2) You save the game. You fight the final boss. After beating the final boss, the game secretly transfers you to the starting town and flips a switch, and sneakily saves the game, all without the player knowing.
Option 2 can work. It can get the job done. But, there are issues with it. Because you are literally resaving the same, you'll be saving everything, including things you may not want to.
As an example, in Option 2, any items you have used will still be gone. So, if you used your one time only Elixer during the final battle, in option 1, that Elixer is still in your inventory upon reloading, whereas in Option 2, it's not.
Now, maybe you could have some system made, that before the final battle, the game stores your inventory, then after you reload the save, the game does some checks to see if you're reloading in a post game-clear time, and if yo are, your old inventory is restored. A system like this has many worrying problems to it, as it's the designer manually altering the current save to make it appear like an old save, as opposed to a better system of simply using the old save.
At the end of the day, this is a niche plugin idea. I keep talking about reloading after a final boss, but that's just because that is an easy to understand example. Save file modifying could be used for so much more. You could do fun Undertale style meta weirdness, where you reload the file and everything is slightly... off. Or other things!
you can store the inventory data in a variable, and put those back after a switch is flipped
like a persistend switch.
this require some eventing in common event and load after common event to check
if the switch is flipped and give back the original inventory data before you beated teh boss.
everything in 1 plugin is possible, but while there are some plugins out there, you can easely
combine those for the desire effect.