Joined
Jul 29, 2022
Messages
19
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
Hey everyone! I don't really know if this would require a plugin, so I'm asking here.

I would like to know if there's a way to make the game save in the file that's currently loaded, so the ''select save slot'' menu is completely skipped. For example: You load file 2. In game, there's a campfire that, when used, would save the game in file 2, the current one. If you loaded file 3, it would save in file 3 etc.

Thanks for the attention!
 

Aerosys

Regular
Regular
Joined
Apr 23, 2019
Messages
1,045
Reaction score
1,107
First Language
German
Primarily Uses
RMMZ
I'm working on a Perma Death plugin that also supports save locking, as described in your post. In case no one else finds a good solution right now, I could extend my plugin to enable save locking while not auto-removing it on game over.

 

xeneeve

Villager
Member
Joined
Jul 22, 2023
Messages
15
Reaction score
6
First Language
Ukrainian
Primarily Uses
RMMZ
Hey everyone! I don't really know if this would require a plugin, so I'm asking here.

I would like to know if there's a way to make the game save in the file that's currently loaded, so the ''select save slot'' menu is completely skipped. For example: You load file 2. In game, there's a campfire that, when used, would save the game in file 2, the current one. If you loaded file 3, it would save in file 3 etc.

Thanks for the attention!
If you're using MV, then you can use this script.
Code:
$gameSystem.onBeforeSave();
if(DataManager.saveGame(1)) {
   StorageManager.cleanBackup(1);
}
That will save your game to file 1.
I think you can do the system that you want without any plugins, just by using events and scripts. This one will come in handy i think. It will load the file.
Code:
if (DataManager.loadGame(1)) {
    $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
    $gamePlayer.requestMapReload();
    SceneManager.goto(Scene_Map);
    $gameSystem.onAfterLoad();
}
 
Joined
Jul 29, 2022
Messages
19
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
If you're using MV, then you can use this script.
Code:
$gameSystem.onBeforeSave();
if(DataManager.saveGame(1)) {
   StorageManager.cleanBackup(1);
}
That will save your game to file 1.
I think you can do the system that you want without any plugins, just by using events and scripts. This one will come in handy i think. It will load the file.
Code:
if (DataManager.loadGame(1)) {
    $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
    $gamePlayer.requestMapReload();
    SceneManager.goto(Scene_Map);
    $gameSystem.onAfterLoad();
}
Thanks for your help!

That could work pretty nicely, but I would need a way to make the game check which file is currently loaded. For example storing the save file number in a variable, so I can know which file should the script call override.
 

xeneeve

Villager
Member
Joined
Jul 22, 2023
Messages
15
Reaction score
6
First Language
Ukrainian
Primarily Uses
RMMZ
Thanks for your help!

That could work pretty nicely, but I would need a way to make the game check which file is currently loaded. For example storing the save file number in a variable, so I can know which file should the script call override.
I'm not sure if there is a script to make the game check what file exactly is loaded, but there is a script that you can use in conditional branch to check if that file even exists. In combination with if/else conditional branches and variables to set what file is that at the creation of the new file that should do the job i think.
Code:
StorageManager.exists(1)
 
Joined
Jul 29, 2022
Messages
19
Reaction score
9
First Language
Spanish
Primarily Uses
RMMV
I'm not sure if there is a script to make the game check what file exactly is loaded, but there is a script that you can use in conditional branch to check if that file even exists. In combination with if/else conditional branches and variables to set what file is that at the creation of the new file that should do the job i think.
Code:
StorageManager.exists(1)
I think I can make it work now! I'm gonna try it. Thank you so much!
 

Latest Posts

Latest Profile Posts

Help, I can't stop! :kaohi:

alice_ornament.png
I'm happy to join this community.
about this argument. I expressed myself badly, I did it on my own, my English was mixed with Google Translate. And I believe chatGPT didn't even exist in 2016
I have to take sleeping pills :rtear:
Now that the forum is running smoothly, I can run around and react to posts the millisecond they're posted.
patrick-star-spongebob.gif

Forum statistics

Threads
136,812
Messages
1,270,316
Members
180,574
Latest member
PastorGary
Top