#============================================================================
# ** 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
#--------------------------------------------------------------------------