Save and Load game command

Hi !

I'm looking for JS commands to load the game, and another to save it for my game's custom menu.
I'm also looking for commands to check the value of variables saved in the save file
then display different images depending on the value with conditions and switch (it's to display the hero's name, members of the party, time and that kind of thing...)

thank you in advance
DataManager.saveGame(id) and DataManager.loadGame(id)
as for the remaining question, all relevant info should be inside DataManager.makeSavefileInfo
and maybe extractSavefileInfo? Don't remember right now. But should be very easy to find.
Thanks !
But i'm not an expert in JS and I use MV recently. I'm used to how XP scripts work so I don't know where to find these files :
extractSavefileInfo
Datamanager.saveGame(id)
do I need a plugin for that?

issue2-56d2777.png


I also tried scripts command... Did I write something wrong ?
issue1-56d2779.png

I tried to put the command without the ; too.
Nothing happened.
Had a typo there. Edited.
Thank you, it work perfectly ! But I forgot one command to make my Save screen complete :
the command asking if save already exist
StorageManager.exists(id)
Thank you !

Original thread: https://forums.rpgmakerweb.com/threads/save-and-load-game-command.115871/