Use this script call to save your progress:
DataManager.save_game(4)
Change numbers to slot you want to use.
I believe it starts from 0, so 0 is the 1st slot; 1 is the 2nd slot etc.
To load (properly) your game use these two script calls:
DataManager.load_game(4)
SceneManager.goto(Scene_Map)
Put both simply in events.
This will save and load instantly without any menus.
And yeah, you were right, you don't need a script for that.
To make everything more properly:
SAVE: (event > script call)
Sound.play_save # if you want to play save soundDataManager.save_game(0)
LOAD: (event > script call)
if DataManager.load_game(0) # check if there is save file 1 present DataManager.load_game(0) # load save file 1 Sound.play_load # If you want load sound $game_system.on_after_load SceneManager.goto(Scene_Map)else # play sound and close window Sound.play_buzzer # ERROR soundendto disable load scene in menu in order to load instantly: (OPTIONAL)
LOAD FROM MENU: (in script editor)
class Scene_Title < Scene_Base def command_continue if DataManager.load_game(0) # check if there is save file 1 present DataManager.load_game(0) # load save file 1 Sound.play_load # If you want load sound fadeout_all $game_system.on_after_load SceneManager.goto(Scene_Map) else # play sound and refresh the title scene if no save available Sound.play_buzzer # ERROR sound SceneManager.goto(Scene_Title) # Fadeout and fadein title screen # to prevent game freezing. end #if end # defend # classChange '0' to slot you want.
Hmm.... I don't know what will happen if there will be no save to load.
I think it'll crash. I'll test that and try to fix that. Yes it crashes. FIXED.
I added a condition, where the script call and script first checks if there is save file 1. If there will be not that file present, it will play error sound.
I don't know what to do in title scene, because the game freezes, when pressing "continue" command, when there's no save, so I added *refresh* to prevent that. I was searching for answer, but there was no use. It will fade out and fade in when there's no save present.
Test that and tell me if it works, because I could mess up something during copying and pasting here.