Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

HBGames

Save Directly Into Previous Used Savegame.

Status:
http://rmxp.org/alexanderpas/images/scripts/SDKonly.png[/IMG]http://rmxp.org/alexanderpas/images/scripts/ScriptOnly.png[/IMG]http://rmxp.org/alexanderpas/images/scripts/forums.png[/IMG]http://rmxp.org/alexanderpas/images/scripts/unsupported.png[/IMG]

Description:
This script changes the default save behaviour so that if you have saved your game before it saves directly into that save, however, if you haven't saved yet, it gives you the default

Bugs:
None Yet

Compability issues:
None Yet

Version:
Version 0.9
Considered finished... but waiting for something to happen.

SDK:
This Script is SDK compatible and compliant!
A non-SDK version will also be availble with the release of v1.0

Credits:
If you use it, credit the proper persons!
Code:
#==============================================================================
# ** Direct Saving
#------------------------------------------------------------------------------
# alexanderpas
# Build Date - 2005-12-23
# Version 0.9 - alexanderpas - 2006-12-23
#==============================================================================

#------------------------------------------------------------------------------
# * SDK Log Script
#------------------------------------------------------------------------------
SDK.log('Direct Saving', 'alexanderpas', 0.9, '2006-12-23')
  #----------------------------------------------------------------------------
  # Begin SDK Enabled Check
  #----------------------------------------------------------------------------
  if SDK.state('Direct Saving') == true
    class Scene_Save < Scene_File
      def main
        # If we already have saved this game we can safely assume that
        # $game_temp.last_file_index is the previous save of this game.
        unless ($game_system.save_count == 0)
          on_decision(make_filename($game_temp.last_file_index))
          return
        end
        super
      end
    end
  end
  #----------------------------------------------------------------------------
  # End SDK Enabled Test
  #----------------------------------------------------------------------------

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top