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.

Start a New game by loading an empty save.

Start a New game by loading an empty save.

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 allows people to start a new game trough the loading screen by selecting an empty slot.

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:
Paradox, thanks for the insight in how to make this script.
If you use it, credit the proper persons!
Code:
#============================================================================
# ** Load New Game
#----------------------------------------------------------------------------
# alexanderpas
# Build Date - 2007-01-07
# Version 0.1 - alexanderpas & Paradox - 2006-12-07
# Version 0.9 - alexanderpas - 2006-12-23
# Version 0.9.1 - alexanderpas - 2007-01-07 (compability update)
#============================================================================

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

  #--------------------------------------------------------------------------
  # Begin SDK Enabled Check
  #--------------------------------------------------------------------------
  if SDK.state('Load New Game') == true
    # This Will create a new game when an empty slot has been selected.
    class Scene_Load < Scene_File
      alias alx_lng_scene_load_on_decision on_decision
      def on_decision(filename)
        # If file doesn't exist
        unless FileTest.exist?(filename)
          #--------------------------------------------------------------------------
          # Begin Save New Game Enabled Check, because we can safely 
          # write this new game into that empty spot you just selected.
          #--------------------------------------------------------------------------
          unless SDK.state('Save New Game') == true
            @scene_title = Scene_Title.new
            @scene_title.command_new_game
            return
          else
            # I'm setting this variable this early so it can be used to check
            # if "Save New Game" needs to invoke their savecall during start
            # which it shoudn't because we already know where to save. 
            $game_temp.save_calling = true
            @scene_title = Scene_Title.new
            @scene_title.command_new_game
            @scene_save = Scene_Save.new
            @scene_save.on_decision(filename)
            return
          end
          #------------------------------------------------------------------------
          # End Save New Game Enabled Test
          #------------------------------------------------------------------------
        end
        alx_lng_scene_load_on_decision(filename)
      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