I have a Custom Title now but i think I f*cked something up somewhere, because now..when I hit New Game...nothing happens. How the hell I did this, I don't know. Hopefully somebody on here does becuase my title is really good, but I cant even test any further than that. Here's the script:
you have to make another Scene_Title thats why there's a"Scene_Title2" and "Scene_Title"..hope this helps anybody trying to help me.
you have to make another Scene_Title thats why there's a"Scene_Title2" and "Scene_Title"..hope this helps anybody trying to help me.
Code:
#==============================================================================
# Pour que la map s'affiche directement, créé par Corbaque
#==============================================================================
class Scene_Title
def main
if $BTEST
battle_test
return
end
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
$game_party.setup_starting_members
$game_map.setup($data_system.start_map_id)
$game_player.moveto($data_system.start_x, $data_system.start_y)
$game_player.refresh
$game_map.autoplay
$game_map.update
$scene = Scene_Map.new
def battle_test
$data_actors = load_data("Data/BT_Actors.rxdata")
$data_classes = load_data("Data/BT_Classes.rxdata")
$data_skills = load_data("Data/BT_Skills.rxdata")
$data_items = load_data("Data/BT_Items.rxdata")
$data_weapons = load_data("Data/BT_Weapons.rxdata")
$data_armors = load_data("Data/BT_Armors.rxdata")
$data_enemies = load_data("Data/BT_Enemies.rxdata")
$data_troops = load_data("Data/BT_Troops.rxdata")
$data_states = load_data("Data/BT_States.rxdata")
$data_animations = load_data("Data/BT_Animations.rxdata")
$data_tilesets = load_data("Data/BT_Tilesets.rxdata")
$data_common_events = load_data("Data/BT_CommonEvents.rxdata")
$data_system = load_data("Data/BT_System.rxdata")
Graphics.frame_count = 0
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
$game_party.setup_battle_test_members
$game_temp.battle_troop_id = $data_system.test_troop_id
$game_temp.battle_can_escape = true
$game_map.battleback_name = $data_system.battleback_name
$game_system.se_play($data_system.battle_start_se)
$game_system.bgm_play($game_system.battle_bgm)
$scene = Scene_Battle.new
end
end
end
Code:
#==============================================================================
# ■Scene_Title2, modifié pas Corbaque
#------------------------------------------------------------------------------
#  タイトル画é¢ã®å‡¦ç†ã‚’è¡Œã†ã‚¯ãƒ©ã‚¹ã§ã™ã€‚
#==============================================================================
class Scene_Title2
#--------------------------------------------------------------------------
# ◠メイン処ç†
#--------------------------------------------------------------------------
def main
# 戦闘テストã®å ´åˆ
if $BTEST
battle_test
return
end
# データベースをãƒãƒ¼ãƒ‰
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
# システムオブジェクトを作æˆ
$game_system = Game_System.new
# タイトルグラフィックを作æˆ
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
# コマンドウィンドウを作æˆ
s1 = "New Game"
s2 = "Continue"
s3 = "Quit"
@command_window = Window_Command.new(192, [s1, s2, s3])
@command_window.back_opacity = 160
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 288
# コンティニュー有効判定
# セーブファイルãŒã²ã¨ã¤ã§ã‚‚å˜åœ¨ã™ã‚‹ã‹ã©ã†ã‹ã‚’調ã¹ã‚‹
# 有効ãªã‚‰ @continue_enabled ã‚’ trueã€ç„¡åŠ¹ãªã‚‰ false ã«ã™ã‚‹
@continue_enabled = false
for i in 0..3
if FileTest.exist?("Save#{i+1}.rxdata")
@continue_enabled = true
end
end
# コンティニューãŒæœ‰åŠ¹ãªå ´åˆã€ã‚«ãƒ¼ã‚½ãƒ«ã‚’コンティニューã«åˆã‚ã›ã‚‹
# 無効ãªå ´åˆã€ã‚³ãƒ³ãƒ†ã‚£ãƒ‹ãƒ¥ãƒ¼ã®æ–‡å—をグレー表示ã«ã™ã‚‹
if @continue_enabled
@command_window.index = 1
else
@command_window.disable_item(1)
end
# タイトル BGM ã‚’æ¼”å¥
$game_system.bgm_play($data_system.title_bgm)
# MEã€BGS ã®æ¼”å¥ã‚’åœæ¢
Audio.me_stop
Audio.bgs_stop
# トランジション実行
Graphics.transition
# メインループ
loop do
# ゲーム画é¢ã‚’æ›´æ–°
Graphics.update
# å…¥åŠ›æƒ…å ±ã‚’æ›´æ–°
Input.update
# フレーム更新
update
# ç”»é¢ãŒåˆ‡ã‚Šæ›¿ã‚ã£ãŸã‚‰ãƒ«ãƒ¼ãƒ—ã‚’ä¸æ–
if $scene != self
break
end
end
# トランジション準備
Graphics.freeze
# コマンドウィンドウを解放
@command_window.dispose
# タイトルグラフィックを解放
@sprite.bitmap.dispose
@sprite.dispose
end
#--------------------------------------------------------------------------
# ◠フレーム更新
#--------------------------------------------------------------------------
def update
# コマンドウィンドウを更新
@command_window.update
# C ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::C)
# コマンドウィンドウã®ã‚«ãƒ¼ã‚½ãƒ«ä½ç½®ã§åˆ†å²
case @command_window.index
when 0 # ニューゲーãƒ
command_new_game
when 1 # コンティニュー
command_continue
when 2 # シャットダウン
command_shutdown
end
end
end
#--------------------------------------------------------------------------
# ◠コマンド : ニューゲーãƒ
#--------------------------------------------------------------------------
def command_new_game
$scene = Scene_Map.new
$game_temp.player_transferring = true
$game_temp.player_new_map_id = 1
$game_temp.player_new_x = 10
$game_temp.player_new_y = 10
end
#--------------------------------------------------------------------------
# ◠コマンド : コンティニュー
#--------------------------------------------------------------------------
def command_continue
# コンティニューãŒç„¡åŠ¹ã®å ´åˆ
unless @continue_enabled
# ブザー SE ã‚’æ¼”å¥
$game_system.se_play($data_system.buzzer_se)
return
end
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# ãƒãƒ¼ãƒ‰ç”»é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Load.new
end
#--------------------------------------------------------------------------
# ◠コマンド : シャットダウン
#--------------------------------------------------------------------------
def command_shutdown
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# BGMã€BGSã€ME をフェードアウト
Audio.bgm_fade(800)
Audio.bgs_fade(800)
Audio.me_fade(800)
# シャットダウン
$scene = nil
end
#--------------------------------------------------------------------------
# ◠戦闘テスト
#--------------------------------------------------------------------------
def battle_test
# データベース (戦闘テスト用) ã‚’ãƒãƒ¼ãƒ‰
$data_actors = load_data("Data/BT_Actors.rxdata")
$data_classes = load_data("Data/BT_Classes.rxdata")
$data_skills = load_data("Data/BT_Skills.rxdata")
$data_items = load_data("Data/BT_Items.rxdata")
$data_weapons = load_data("Data/BT_Weapons.rxdata")
$data_armors = load_data("Data/BT_Armors.rxdata")
$data_enemies = load_data("Data/BT_Enemies.rxdata")
$data_troops = load_data("Data/BT_Troops.rxdata")
$data_states = load_data("Data/BT_States.rxdata")
$data_animations = load_data("Data/BT_Animations.rxdata")
$data_tilesets = load_data("Data/BT_Tilesets.rxdata")
$data_common_events = load_data("Data/BT_CommonEvents.rxdata")
$data_system = load_data("Data/BT_System.rxdata")
# プレイ時間計測用ã®ãƒ•ãƒ¬ãƒ¼ãƒ カウントをリセット
Graphics.frame_count = 0
# å„種ゲームオブジェクトを作æˆ
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
# 戦闘テスト用ã®ãƒ‘ーティをセットアップ
$game_party.setup_battle_test_members
# トループ IDã€é€ƒèµ°å¯èƒ½ãƒ•ãƒ©ã‚°ã€ãƒãƒˆãƒ«ãƒãƒƒã‚¯ã‚’è¨å®š
$game_temp.battle_troop_id = $data_system.test_troop_id
$game_temp.battle_can_escape = true
$game_map.battleback_name = $data_system.battleback_name
# ãƒãƒˆãƒ«é–‹å§‹ SE ã‚’æ¼”å¥
$game_system.se_play($data_system.battle_start_se)
# ãƒãƒˆãƒ« BGM ã‚’æ¼”å¥
$game_system.bgm_play($game_system.battle_bgm)
# ãƒãƒˆãƒ«ç”»é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Battle.new
end
end