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.