Script Call to Delete current save file.

Jaymonius

Veteran
Veteran
Joined
Mar 22, 2012
Messages
253
Reaction score
77
First Language
English
Primarily Uses
Hey there peeps. Just a quick question. (Wasn't sure if this was RGSS3 support or not.) But I just need to know what the Script Call would be to delete the current save file on the file you are playing on? I don't want to delete all the saved files just the one you are on when playing.

(Plot related and stuff, and you are given a warning beforehand too, so it isn't to say that you don't see it coming.) :p
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,984
Reaction score
665
First Language
English
Primarily Uses
RMVXA
DataManager.delete_save_file(last_savefile_index)
This will remove the save file that was created last, so should be the file they are using.
 

Jaymonius

Veteran
Veteran
Joined
Mar 22, 2012
Messages
253
Reaction score
77
First Language
English
Primarily Uses
Gave me an error:

Game_Interpreter' line 1411: NameError occurred.

undefinited local variable or method last_savefile_index for #<Game_Interpreter:0x10bb8c0c>
 

orochi2k

The Mad King of Neolithic
Veteran
Joined
Jan 2, 2021
Messages
80
Reaction score
82
First Language
Chinese
Primarily Uses
RMXP
Gave me an error:

Game_Interpreter' line 1411: NameError occurred.

undefinited local variable or method last_savefile_index for #<Game_Interpreter:0x10bb8c0c>
DataManager.delete_save_file(DataManager.last_savefile_index)
 

Jaymonius

Veteran
Veteran
Joined
Mar 22, 2012
Messages
253
Reaction score
77
First Language
English
Primarily Uses
I found what I needed. To answer, the script call will be this:

index = DataManager.last_savefile_index
DataManager.delete_save_file(index)
 

Latest Threads

Latest Posts

Latest Profile Posts

Another character battle theme
Sorry everyone. Covid rules made me a laptop potatoe and I would need more exercise and past 2nd invasion I am still fighting for space also here. So I am not enough often here and... well I answer even less to my e-mails. DC is saying a huge HI to everyone with her heavy wet purrings.

You all take care in here ^^
traficaccidence.jpg
"It's time to add cars into the city!"
--- Famous last word of the developer's character before hit by a car :kaoswt2:
Yay, our new game, Causality is finally released on Steam!

Forum statistics

Threads
110,488
Messages
1,053,682
Members
143,582
Latest member
beru
Top