%%
%% *CORE_FINAL Conclusion
%%
%%  All conclusions start the same: with a stub. This plot doesn't do anything by
%%  itself, but sets the mood and invokes the following subplots:
%%      *CS_END_Intro
%%      *:CS_END_RallyDefenses
%%
%%  It must have the following macros defined:
%%      &RallyDefenses
%%      &ifDefensesRallied
%%

Plot
	name <Conclusion Stub>
	% desc <This stub just holds all the conclusion subplots and sets the mood.>
	desc <このセクションが全ての最終サブプロットを保持し、mood の設定を行う。>
	requires <(*CORE_FINAL|*CORE_F_PAL) F:++>

	% Element1 is the mood for the conclusion
	Element1 <Prefab>

	% P%id%01 = Defense Counter

	% Everything starts when the PC enters the episode scene.
	start <if= PlotStatus %plotid% 0 if= RootSceneID &EpisodeScene  Alert %id%01 History %id%02  SetPlotStatus %plotid1% %id1% SetPlotStatus %plotid2% %id2% SetPlotStatus %plotid3% %id3% SetPlotStatus %plotid4% %id4%  SetMood %1% &EpisodeScene>

	&RallyDefenses <P= %id%01 1>
	&ifDefensesRallied <if= P%id%01 1>

	% Msg%id%01 <As you enter \SCENE &EpisodeScene , you experience a distinct feeling of dread. Something big is about to happen here.>
	% Msg%id%02 <You found \SCENE &EpisodeScene under the control of \FACTION &EnemyFac .>
	Msg%id%01 <\SCENE &EpisodeScene に入ると、とてつもなく恐ろしい感覚が身体を駆けめぐった。ここで何か、重大なことが起ころうとしている。>
	Msg%id%02 <\SCENE &EpisodeScene が \FACTION &EnemyFac の支配下にあることが分かった。>

	% SubPlot1 is the confrontation intro
	%     This will handle the arch-enemy and load the other subplots
	% SubPlot2 is the rally defenses subplot
	SubPlot1 <*CS_END_Intro 1>
	SubPlot2 <*:CS_END_RallyDefenses>

	inv
		Mood 5
		name <Conclusion Mood>
		plot_type <*FactionRampage>
		Element1 <Grab -2>
		% Update <if= v1 0 V= 1 1   News 1>
		Update <if= v1 0 V= 1 1 ifNPCOK &EnemyNPC else ShowNews2 News 1>
		ShowNews2 <News 2>
		% Msg1_1 <%city% under siege as \PERSONA &EnemyNPC 's personal forces take control.>
		% Msg1_2 <Mecha from \FACTION &EnemyFac take control of %city% under the orders of \PERSONA &EnemyNPC .>
		% Msg1_3 <\PERSONA &EnemyNPC has begun a purge of \PPR &EnemyNPC enemies from %city%; authorities powerless to stop the destruction.>
		% Meme Messages
		% Msg_1 <When will the trouble with %me_name1% end?>
		% CMsg_1 <if# ChatNPCFac %me_1% Accept>
		% Msg_2 <Someone really ought to do something about %me_name1%... They must be stopped!>
		% CMsg_2 <if# ChatNPCFac %me_1% Accept>
		% Msg_3 <What did %city% do to deserve this? Those jerks from %me_name1% are acting like they own the place.>
		% CMsg_3 <if# ChatNPCFac %me_1% Accept>
		Msg1_1 <\PERSONA &EnemyNPC の私兵により、%city% が包囲制圧されている。>
		Msg1_2 <\PERSONA &EnemyNPC の命令により、\FACTION &EnemyFac のメックが %city% を制圧している。>
		Msg1_3 <\PERSONA &EnemyNPC は %city% で次々と抵抗勢力を排除している。現地の治安当局はこの破壊活動を食い止める力を持っていない。>
		Msg2_1 <\FACTION &EnemyFac の私兵により、%city% が包囲制圧されている。>
		Msg2_2 <\FACTION &EnemyFac のメックが %city% を制圧している。>
		Msg2_3 <\FACTION &EnemyFac は %city% で次々と抵抗勢力を排除している。現地の治安当局はこの破壊活動を食い止める力を持っていない。>
		% Meme Messages
		Msg_1 <いつになったら %me_name1% の悪事が終わる%JG_NDA？>
		CMsg_1 <if# ChatNPCFac %me_1% Accept>
		Msg_2 <いい加減誰か %me_name1% を何とかして%JG_R_AGG%JV_SIL_R奴らを止めて%JG_R_AGG！>
		CMsg_2 <if# ChatNPCFac %me_1% Accept>
		Msg_3 <どうして %city% がこんな目に遭わなきゃならない%JG_NDA？ あの %me_name1% の悪党ども、我が物顔で歩き回ってる%JV_ZO……。>
		CMsg_3 <if# ChatNPCFac %me_1% Accept>
	end

Plot
	name <No Enemy Faction Stub>
	% desc <Quick, give us an enemy to face.>
	desc <早く、敵を寄越して。>
	requires <(*CORE_FINAL|*CORE_F_PAL) F:-->

	% Element1 is the mood for the conclusion
	% Element2 is the new enemy faction
	Element1 <Prefab>
	Element2 <Faction !X -3 !X -7>

	% P%id%01 = Defense Counter

	% Everything starts when the PC enters the episode scene.
	start <if= PlotStatus %plotid% 0 &SetEnemyFac %2% if= RootSceneID &EpisodeScene  Alert %id%01 History %id%02  SetPlotStatus %plotid1% %id1% SetPlotStatus %plotid2% %id2% SetPlotStatus %plotid3% %id3% SetPlotStatus %plotid4% %id4%  SetMood %1% &EpisodeScene>

	&RallyDefenses <P= %id%01 1>
	&ifDefensesRallied <if= P%id%01 1>

	% Msg%id%01 <As you enter \SCENE &EpisodeScene , you experience a distinct feeling of dread. Something big is about to happen here.>
	% Msg%id%02 <You found \SCENE &EpisodeScene under the control of \FACTION &EnemyFac .>
	Msg%id%01 <\SCENE &EpisodeScene に入ると、とてつもなく恐ろしい感覚が身体を駆けめぐった。ここで何か、重大なことが起ころうとしている。>
	Msg%id%02 <\SCENE &EpisodeScene が \FACTION &EnemyFac の支配下にあることが分かった。>

	% SubPlot1 is the confrontation intro
	%     This will handle the arch-enemy and load the other subplots
	% SubPlot2 is the rally defenses subplot
	SubPlot1 <*CS_END_Intro 1>
	SubPlot2 <*:CS_END_RallyDefenses>

	inv
		Mood 5
		name <Conclusion Mood>
		plot_type <*FactionRampage>
		Element1 <Grab -2>
		Update <if= v1 0 V= 1 1   News 1>
		% Msg1_1 <%city% under siege as \PERSONA &EnemyNPC 's personal forces take control.>
		% Msg1_2 <Mecha from \FACTION &EnemyFac take control of %city% under the orders of \PERSONA &EnemyNPC .>
		% Msg1_3 <\PERSONA &EnemyNPC has begun a purge of \PPR &EnemyNPC enemies from %city%; authorities powerless to stop the destruction.>
		% Meme Messages
		% Msg_1 <When will the trouble with %me_name1% end?>
		% CMsg_1 <if# ChatNPCFac %me_1% Accept>
		% Msg_2 <Someone really ought to do something about %me_name1%... They must be stopped!>
		% CMsg_2 <if# ChatNPCFac %me_1% Accept>
		% Msg_3 <What did %city% do to deserve this? Those jerks from %me_name1% are acting like they own the place.>
		% CMsg_3 <if# ChatNPCFac %me_1% Accept>
		Msg1_1 <\PERSONA &EnemyNPC の私兵により、%city% が包囲制圧されている。>
		Msg1_2 <\PERSONA &EnemyNPC の命令により、\FACTION &EnemyFac のメックが %city% を制圧している。>
		Msg1_3 <\PERSONA &EnemyNPC は %city% で次々と抵抗勢力を排除している。現地の治安当局はこの破壊活動を食い止める力を持っていない。>
		% Meme Messages
		Msg_1 <いつになったら %me_name1% の悪事が終わる%JG_NDA？>
		CMsg_1 <if# ChatNPCFac %me_1% Accept>
		Msg_2 <いい加減誰か %me_name1% を何とかして%JG_R_AGG%JV_SIL_R奴らを止めて%JG_R_AGG！>
		CMsg_2 <if# ChatNPCFac %me_1% Accept>
		Msg_3 <どうして %city% がこんな目に遭わなきゃならない%JG_NDA？ あの %me_name1% の悪党ども、我が物顔で歩き回ってる%JV_ZO……。>
		CMsg_3 <if# ChatNPCFac %me_1% Accept>
	end

Plot
	name <No Enemy Faction; Maybe REDMA?>
	% desc <Quick, give us an enemy to face.>
	desc <早く、敵を寄越して。>
	requires <(*CORE_FINAL|*CORE_F_PAL) F:-- Common>

	% Element1 is the mood for the conclusion
	% Element2 is the new enemy faction
	Element1 <Prefab>
	Element2 <Faction !X -3 REDMA>

	% P%id%01 = Defense Counter

	% Everything starts when the PC enters the episode scene.
	start <if= PlotStatus %plotid% 0 &SetEnemyFac %2% if= RootSceneID &EpisodeScene  Alert %id%01 History %id%02  SetPlotStatus %plotid1% %id1% SetPlotStatus %plotid2% %id2% SetPlotStatus %plotid3% %id3% SetPlotStatus %plotid4% %id4%  SetMood %1% &EpisodeScene>

	&RallyDefenses <P= %id%01 1>
	&ifDefensesRallied <if= P%id%01 1>

	% Msg%id%01 <As you enter \SCENE &EpisodeScene , you experience a distinct feeling of dread. Something big is about to happen here.>
	% Msg%id%02 <You found \SCENE &EpisodeScene under the control of \FACTION &EnemyFac .>
	Msg%id%01 <\SCENE &EpisodeScene に入ると、とてつもなく恐ろしい感覚が身体を駆けめぐった。ここで何か、重大なことが起ころうとしている。>
	Msg%id%02 <\SCENE &EpisodeScene が \FACTION &EnemyFac の支配下にあることが分かった。>

	% SubPlot1 is the confrontation intro
	%     This will handle the arch-enemy and load the other subplots
	% SubPlot2 is the rally defenses subplot
	SubPlot1 <*CS_END_Intro 1>
	SubPlot2 <*:CS_END_RallyDefenses>

	inv
		Mood 5
		name <Conclusion Mood>
		plot_type <*FactionRampage>
		Element1 <Grab -2>
		Update <if= v1 0 V= 1 1   News 1>
		% Msg1_1 <%city% under siege as \PERSONA &EnemyNPC 's personal forces take control.>
		% Msg1_2 <Mecha from \FACTION &EnemyFac take control of %city% under the orders of \PERSONA &EnemyNPC .>
		% Msg1_3 <\PERSONA &EnemyNPC has begun a purge of \PPR &EnemyNPC enemies from %city%; authorities powerless to stop the destruction.>
		% Meme Messages
		% Msg_1 <When will the trouble with %me_name1% end?>
		% CMsg_1 <if# ChatNPCFac %me_1% Accept>
		% Msg_2 <Someone really ought to do something about %me_name1%... They must be stopped!>
		% CMsg_2 <if# ChatNPCFac %me_1% Accept>
		% Msg_3 <What did %city% do to deserve this? Those jerks from %me_name1% are acting like they own the place.>
		% CMsg_3 <if# ChatNPCFac %me_1% Accept>
		Msg1_1 <\PERSONA &EnemyNPC の私兵により、%city% が包囲制圧されている。>
		Msg1_2 <\PERSONA &EnemyNPC の命令により、\FACTION &EnemyFac のメックが %city% を制圧している。>
		Msg1_3 <\PERSONA &EnemyNPC は %city% で次々と抵抗勢力を排除している。現地の治安当局はこの破壊活動を食い止める力を持っていない。>
		% Meme Messages
		Msg_1 <いつになったら %me_name1% の悪事が終わる%JG_NDA？>
		CMsg_1 <if# ChatNPCFac %me_1% Accept>
		Msg_2 <いい加減誰か %me_name1% を何とかして%JG_R_AGG%JV_SIL_R奴らを止めて%JG_R_AGG！>
		CMsg_2 <if# ChatNPCFac %me_1% Accept>
		Msg_3 <どうして %city% がこんな目に遭わなきゃならない%JG_NDA？ あの %me_name1% の悪党ども、我が物顔で歩き回ってる%JV_ZO……。>
		CMsg_3 <if# ChatNPCFac %me_1% Accept>
	end

