Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: ThalliumShine on February 14, 2015, 01:18:31 pm

Title: Delete Saved File
Post by: ThalliumShine on February 14, 2015, 01:18:31 pm
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...
Title: Re: Delete Saved File
Post by: KK20 on February 14, 2015, 01:33:21 pm

number = 1 #<=== Change accordingly
if File.exists?("Save#{number}.rxdata")
  File.delete("Save#{number}.rxdata")
else
  p "File Save#{number}.rxdata not found"
end

Title: Re: Delete Saved File
Post by: PhoenixFire on February 14, 2015, 08:52:17 pm
I see the beginnings of a security/anti-hack/anti-piracy system..
Title: Re: Delete Saved File
Post by: ForeverZer0 on February 14, 2015, 09:28:05 pm
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.
Title: Re: Delete Saved File
Post by: ThalliumShine on February 14, 2015, 10:48:28 pm
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.