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.

Force Savegame Selection at the start of a new game

Force Savegame Selection at the start of a new game

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 requires people to save their games before they start a new game.

Bugs:
None Yet

Compability issues:
None Yet

Version:
Version 0.9.1
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:
#==============================================================================
# ** Save New Game
#------------------------------------------------------------------------------
# alexanderpas
# Build Date - 2007-01-07
# Version 0.9 - alexanderpas - 2006-12-23
# Version 0.9.1 - alexanderpas - 2007-01-07 (compability update)
#==============================================================================

#------------------------------------------------------------------------------
# * SDK Log Script
#------------------------------------------------------------------------------
SDK.log('Save New Game', 'alexanderpas', 0.9, '2007-01-07')

  #----------------------------------------------------------------------------
  # Begin SDK Enabled Check
  #----------------------------------------------------------------------------
  if SDK.state('Save New Game') == true
    class Scene_Title
      alias alx_sng_scene_title_command_new_game command_new_game
      def command_new_game
        alx_sng_scene_title_command_new_game
        # To ensure compability with the script "Load New Game" by me, we make
        # sure that this script isn't called from that specific Scene_Load 
        unless $game_temp.save_calling == true
          $game_temp.save_calling = true
          $scene = Scene_Save.new
        end
      end
    end
    
    class Scene_Save < Scene_File
      alias alx_sng_scene_save_on_cancel on_cancel
      def on_cancel
        alx_sng_scene_save_on_cancel
        # Check if you have saved before,
        # If you haven't, go back to the Title Screen
        if $game_system.save_count == 0
          $scene = Scene_Title.new
          return
        end
      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