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,988
Reaction score
667
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
82
Reaction score
100
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 Profile Posts

Progress on one of my projects has been slow, but I'm at a spot now where I feel like sharing the four main characters.

From left to right we have: Amabel, Tibby, Dusty, and Wren.

tibbyrpgcast.jpg
I'm in a much better mood about my game than I was 2-3 days ago. I keep switching between sideview and front because of the amount of assets needed for side (I'm drawing it all myself)... but I've decided to stick with front, for my own sanity. sidenote... people, planning is important. I've spent so long on just getting my game's ideas off the ground because I didn't plan ahead.
unknown.png

"Fight me."
I'll finally wash my clothes today!
SA46ATTACK.gif :kaojoy:New Arab character in action.

Forum statistics

Threads
110,608
Messages
1,054,678
Members
143,737
Latest member
wildsky
Top