Is there a way to delete a save file through scripts? I want to delete any rxdata or rvdata with it when some certain event happens...
number = 1 #<=== Change accordingly
if File.exists?("Save#{number}.rxdata")
File.delete("Save#{number}.rxdata")
else
p "File Save#{number}.rxdata not found"
end
I see the beginnings of a security/anti-hack/anti-piracy system..
If it is based on an event, so unlikely. Probably some poor idea. Most people don't like their save file being deleted, unless you are using a custom save system that allows the user to manage save files within the game.
The reason I asked your help for this is because I want to make a game where when you saved a file and throughout the battle you died, the game automatically deletes all your saved file... so you'll only have one game chance... just like the Hardcore Mode in Diablo 2 if someone recalls.
However, I must thank all of you trying to help me out. I do not wish any system that goes beyond this request, because my abilities are not that high to perform such feat.