Delete Saved File

Started by ThalliumShine, February 14, 2015, 01:18:31 pm

Previous topic - Next topic

ThalliumShine

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...

KK20


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


Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

PhoenixFire

I see the beginnings of a security/anti-hack/anti-piracy system..
Quote from: Subsonic_Noise on July 01, 2011, 02:42:19 amNext off, how to create a first person shooter using microsoft excel.

Quote from: Zeriab on September 09, 2011, 02:58:58 pm<Remember when computers had turbo buttons?

ForeverZer0

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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

ThalliumShine

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.