Edited the script so that it take the Title Screen Image, desicion sound and title screen music from the database, just as the title screen itself do.
CODE
#-------------------------------------------------------------------------------
# Start Screen XP Version
# Last update : 2010/08/05
# Edited by Guyver's Bane
# Credit if used
#
# Slightly modified my Stripe103
#===============================================================================
# This script allows you to have a Start screen upon playing
#==============================================================================#
#
#-------------------------------------------------------------------------------
# Installation: Place above "Main". Basically it's pulg'n play.
#-------------------------------------------------------------------------------
#
#-------------------------------------------------------------------------------
# Instructions
#-------------------------------------------------------------------------------
# You must edit Scene_Title in Main, changing it to Scene_Start. See Example.
# Also BGM can be edited to your liking on line 56. Command sound on line 92.
# And title background on line 48.
#
#-------------------------------------------------------------------------------
#===============================EXAMPLE=========================================
#-------------------------------------------------------------------------------
#begin
# Graphics.freeze
# $scene = Scene_Start.new
# $scene.main while $scene != nil
# Graphics.transition(30)
#rescue Errno::ENOENT
# filename = $!.message.sub("No such file or directory - ", "")
# print("Unable to find file #{filename}.")
#end
class Scene_Start
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
# If battle test
if $BTEST
$scene = Scene_Title.new
end
# Load database
$data_system = load_data("Data/System.rxdata")
# Make system object
$game_system = Game_System.new
# Make title graphic
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
# Make command window
s1 = " Press Start"
@command_window = Window_Command.new(115, [s1])
@command_window.back_opacity = 160
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 288
# Play title BGM
$game_system.bgm_play($data_system.title_bgm)
# Stop playing ME and BGS
Audio.me_stop
Audio.bgs_stop
# Execute transition
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of command window
@command_window.dispose
# Dispose of title graphic
@sprite.bitmap.dispose
@sprite.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update command window
@command_window.update
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
case @command_window.index
when 0 # New game
# Play decision SE
$game_system.se_play($data_system.decision_se)
$scene = Scene_Title.new
end
end
end
end
I changed line 49
CODE
@sprite.bitmap = RPG::Cache.title("001-Title01")
into
CODE
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
==========================
and line 57
CODE
Audio.bgm_play("Audio/BGM/012-Theme01", 100, 100)
to
CODE
$game_system.bgm_play($data_system.title_bgm)
# Stop playing ME and BGS
Audio.me_stop
Audio.bgs_stop
==========================
and line 96
CODE
Audio.se_play("Audio/SE/choice1", 100, 100)
into
CODE
$game_system.se_play($data_system.decision_se)