Jump to content
Artheoss

Does an event can delete saved game files ? (VxAce)

Recommended Posts

Hello everybody, I just wonder if it is possible to delete all game files from an in-game event ?

 

I've searched a while on differents forums, but I wasn't able to find a solution.

 

I'm also using Yanfly Save Engine Script

https://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-save-engine/

 

Can you help me for this ? ;)

 

Thanks.

Edited by Artheoss

Share this post


Link to post
Share on other sites

DataManager.delete_save_file(0)

 

"0" can be anything
if I remember correctly you type "0..999" or "0...999" to basically set it to any possible save file

 

CAREFUL WITH THIS BLACK MAGIC NOW

this is the second most evil script call you can use

...which is exactly why its in my game

Share this post


Link to post
Share on other sites

Wow, it was so easy ? I didn't know black magic was so easy to use ! >=D

 

Thank you so much Yoshine !

 

Oh... And, what is the first most evil script ? ^^

Edited by Artheoss

Share this post


Link to post
Share on other sites

Thats how to get rid of it, but how can we bring it back afterward? Say that I wanted to have an NPC lead the main character on a chase after deleting their save file. How would one retrieve that file back?

Edited by UndeadGamez

Share this post


Link to post
Share on other sites

Thats how to get rid of it, but how can we bring it back afterward? Say that I wanted to have an NPC lead the main character on a chase after deleting their save file. How would one retrieve that file back?

Share this post


Link to post
Share on other sites

I have to admit, that sounds like a dumb idea. Once the file is deleted then the player just needs to save the game again.

If you prevent this and the player dies then the player has to start over.

If you can find a way to prevent these instances then I would recommend using an autosave script and limit the save files in the game. So if you allowed only 25 saves, then the autosave would save at position 30. So the player would never see it. Apart from that what your asking to be able to do a copy function (for backup) or rename, then to copy or rename back. I do not believe rpg maker has access to the computer system that easily.

Share this post


Link to post
Share on other sites

Yoshine, I tried the DataManager.delete_save_file(0...999) and DataManager.delete_save_file(0..999), but my save files were still there. What did i do wrong?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted