// main.iet - シナリオ進行制御
// Copyright (C)2009-2013, iMel Inc. and Kazu
//////////////////////////////////////////////////
// Last Update
// $Rev: 452 $
// $Date:: 2013-05-14 17:04:37 +0900[$]
// $Author: kazu $
//////////////////////////////////////////////////
*top
// ----------------------------------
// 簡易フローチャート0325.xls をベースに作成
// ----------------------------------
*main
// 製品版シーケンス
//[dialog title="シナリオ読み込みエラー" message="製品版のシナリオは未登録です。"]

// ■ 共通ルート
[call file="scenario/ky01.txt"]
[call file="scenario/ky02.txt"]
[call file="scenario/ky03.txt"]
// 本番用選択画面は select_sp としてマクロにしました。

// 〜ルート
[if     estimate="$current.route == 'mu'"]
	// ■ 睦土美ルート
//	[call file="scenario/mu01_01.txt"]
	[call file="scenario/mu01_02h.txt"]
	[call file="scenario/mu01_03.txt"]
	[call file="scenario/mu02_01.txt"]
	[call file="scenario/mu02_02h.txt"]
	[call file="scenario/mu02_03.txt"]
	[call file="scenario/mu03_01.txt"]
	[call file="scenario/mu03_02h.txt"]
	[call file="scenario/mu03_03.txt"]
	[call file="scenario/mu04_01.txt"]
	[call file="scenario/mu04_02h.txt"]
	[call file="scenario/mu04_03.txt"]
	[call file="scenario/mu04_04h.txt"]
	[call file="scenario/mu04_05.txt"]
	[call file="scenario/mu05_01.txt"]
	[call file="scenario/mu05_02h.txt"]
	[call file="scenario/mu05_03.txt"]
	[call file="scenario/mu06_01.txt"]
	[call file="scenario/mu06_02h.txt"]
	[call file="scenario/mu06_03.txt"]
	[call file="scenario/mu07_01.txt"]
	[call file="scenario/mu07_02h.txt"]
[elseif estimate="$current.route == 'ri'"]
	// ■ 凛火ルート
//	[call file="scenario/ri01_01.txt"]
	[call file="scenario/ri01_02h.txt"]
	[call file="scenario/ri01_03.txt"]
	[call file="scenario/ri02_01.txt"]
	[call file="scenario/ri02_02h.txt"]
	[call file="scenario/ri02_03.txt"]
	[call file="scenario/ri03_01.txt"]
	[call file="scenario/ri03_02h.txt"]
	[call file="scenario/ri03_03.txt"]
	[call file="scenario/ri04_01.txt"]
	[call file="scenario/ri04_02h.txt"]
	[call file="scenario/ri05_01.txt"]
	[call file="scenario/ri05_02h.txt"]
	[call file="scenario/ri05_03.txt"]
	[call file="scenario/ri05_04h.txt"]
	[call file="scenario/ri05_05.txt"]
	[call file="scenario/ri06_01.txt"]
	[call file="scenario/ri06_02h.txt"]
	[call file="scenario/ri06_03.txt"]
	[call file="scenario/ri07_01.txt"]
	[call file="scenario/ri07_02h.txt"]
	[call file="scenario/ri07_03.txt"]
[elseif estimate="$current.route == 'ka'"]
	// ■ 霞空ルート
//	[call file="scenario/ka01_01.txt"]
	[call file="scenario/ka01_02h.txt"]
	[call file="scenario/ka02_01.txt"]
	[call file="scenario/ka02_02h.txt"]
	[call file="scenario/ka02_03.txt"]
	[call file="scenario/ka03_01.txt"]
	[call file="scenario/ka03_02h.txt"]
	[call file="scenario/ka03_03.txt"]
	[call file="scenario/ka04_01.txt"]
	[call file="scenario/ka04_02h.txt"]
	[call file="scenario/ka04_03.txt"]
	[call file="scenario/ka05_01.txt"]
	[call file="scenario/ka06_01.txt"]
	[call file="scenario/ka06_02h.txt"]
	[call file="scenario/ka06_03.txt"]
	[call file="scenario/ka06_04h.txt"]
	[call file="scenario/ka06_05.txt"]
	[call file="scenario/ka06_06h.txt"]
	[call file="scenario/ka07_01.txt"]
	[call file="scenario/ka07_02h.txt"]
[elseif estimate="$current.route == 'mi'"]
	// ■ 水那ルート
//	[call file="scenario/mi01_01.txt"]
	[call file="scenario/mi01_02h.txt"]
	[call file="scenario/mi01_03.txt"]
	[call file="scenario/mi01_04h.txt"]
	[call file="scenario/mi01_05.txt"]
	[call file="scenario/mi02_01.txt"]
	[call file="scenario/mi02_02h.txt"]
	[call file="scenario/mi02_03.txt"]
	[call file="scenario/mi02_04h.txt"]
	[call file="scenario/mi02_05.txt"]
	[call file="scenario/mi03_01.txt"]
	[call file="scenario/mi03_02h.txt"]
	[call file="scenario/mi03_03.txt"]
	[call file="scenario/mi03_04h.txt"]
	[call file="scenario/mi04_01.txt"]
	[call file="scenario/mi04_02h.txt"]
	[call file="scenario/mi04_03.txt"]
	[call file="scenario/mi04_04h.txt"]
	[call file="scenario/mi04_05.txt"]
	[call file="scenario/mi05_01.txt"]
	[call file="scenario/mi05_02h.txt"]
[elseif estimate="$current.route == 'ti'"]
	// ■ 千風悠ルート
//	[call file="scenario/ti01_01.txt"]
	[call file="scenario/ti01_02h.txt"]
	[call file="scenario/ti01_03.txt"]
	[call file="scenario/ti02_01.txt"]
	[call file="scenario/ti02_02h.txt"]
	[call file="scenario/ti02_03.txt"]
	[call file="scenario/ti03_01.txt"]
	[call file="scenario/ti03_02h.txt"]
	[call file="scenario/ti03_03.txt"]
	[call file="scenario/ti04_01.txt"]
	[call file="scenario/ti04_02h.txt"]
	[call file="scenario/ti04_03.txt"]
	[call file="scenario/ti05_01.txt"]
	[call file="scenario/ti05_02h.txt"]
	[call file="scenario/ti05_03.txt"]
	[call file="scenario/ti06_01.txt"]
	[call file="scenario/ti06_02h.txt"]
	[call file="scenario/ti06_03.txt"]
	[call file="scenario/ti06_04h.txt"]
	[call file="scenario/ti06_05.txt"]
	[call file="scenario/ti07_01.txt"]
	[call file="scenario/ti07_02h.txt"]
	[call file="scenario/ti07_03.txt"]
[else]
	[dialog title="エラー" message="$'不正なルート分岐です : ' + current.route"]
[/if]

[タイトルに戻る]
[return]
// ----------------------------------
*route_ha
// ※要１回クリア
// オマケモードから選択
// ハーレム
[call file="scenario/co_ha.txt"]
[タイトルに戻る]
[return]
// ----------------------------------
*route_co
// ※要１回クリア
// オマケモードから選択
// ココロルート
[call file="scenario/co_ha.txt"]
[タイトルに戻る]
[return]
// ----------------------------------
*main_trial
// 体験版シーケンス
[call file="scenario/trial/trial.txt"]
// trailer動画
[trailer]
[タイトルに戻る]
[return]
// ----------------------------------
*main_trial_omake
// 体験版おまけシーケンス
[rclick allow="0"]
[delonpush key="2"]
[select_sp]
[stop]
*select_end
[select_end_sp]
[if     estimate="$current.route == 'ka'"]
	[call file="scenario/trial/trial_ka.txt"]
[elseif estimate="$current.route == 'mu'"]
	[call file="scenario/trial/trial_mu.txt"]
[elseif estimate="$current.route == 'ri'"]
	[call file="scenario/trial/trial_ri.txt"]
[elseif estimate="$current.route == 'mi'"]
	[call file="scenario/trial/trial_mi.txt"]
[elseif estimate="$current.route == 'ti'"]
	[call file="scenario/trial/trial_ti.txt"]
[else]
	[dialog title="エラー" message="$current.route"]
[/if]
[タイトルに戻る]
[return]
// ----------------------------------
*debug_list
// デバッグリストシーケンス

[if estimate="$g.mode == 'trial'"]
	[call file="$('scenario/trial/' + scenario_num)"]
[else]
	[call file="$('scenario/' + scenario_num)"]
[/if]

[dialog title="シナリオ終了！" message="$current.scenariofile + '
上記シナリオを終了しました。'"]
[debugreload]
[reset]

[return]
// ----------------------------------

*last
[return]
