ID:148502
 
This is a simple question, but I haven't found a way to do it (nor have I seen anyone else do it). Basically my code saves kind of strangely, but I found it the easiest way to save. The players have a file "/players/[ckey].sav" which stores nothing but character names. The game prompts them to choose a character in a flashy FF3 load game look-a-like and loads the file "/players/characters/[charname].sav" and plops the player on the map. Problem is, I can't find a way to just remove a savefile from the hard drive when they want to delete. Sure I could overwrite the stats to nothing and remove the character's name from "/players/[ckey].sav" but that wouldn't be very efficient. The reason I did it this way is because I plan on making a GM command that can load any character's data, and it made it quite easy this way. Oh, and don't try using the del() thing...all that does is remove the var =P

...Maybe Dantom hasn't included a feature like this yet. It would be useful if it doesn't exist ^_^
Have you tried using
if(fexists("/players/[ckey].sav")   Fdel("/players/[ckey].sav")


I believe this may be what you are looking for.

Lance
...Guardian of Dragons...
In response to Dragon Guardian
hmm...I've never seen that proc before. I wonder why I didn't bother trying to find something like that. Thanks, I'll give it a try.
In response to Ghaleon
I was needing help with this also, thanks for pointing it out.