Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Holyrapid on March 29, 2009, 08:47:32 am

Title: Auto-save for VX
Post by: Holyrapid on March 29, 2009, 08:47:32 am
So i want an auto-save script for VX. I found one in rpgmakervx.net but that uses a time gap, and i want that it saves where i tell it to. I mean like this...
QuoteYour hero party comes to a boss charecter. There´s some talking, then before the fight begins it automatically save your game. So that if you lose, you can start right from that spot...

If you don´t get it, ask and i´ll try to make it clearer...
Title: Re: Auto-save for VX
Post by: G_G on March 29, 2009, 01:25:31 pm
I get it in fact there is one for XP that I requested and the request was resolved. I'm sure it'll work in VX. Hang on let me get the link.

Quote from: Zeriab on January 19, 2009, 02:14:31 am
I had forgotten I made that >_>
I would suggest using this instead
class Scene_Save
  def self.save(file_index)
    save_obj = self.new
    file = File.open(save_obj.make_filename(file_index), "wb")
    save_obj.write_save_data(file)
    file.close
  end
end


The syntax is: Scene_Save.save(slot)
For example Scene_Save.save(0) saves to the first slot and Scene_Save.save(3) saves to the last slot.

*hugs*
- Zeriab


Use this I'm sure it'll work hopefully.