Plot 0
	name <PLOT: Severance Package>
	% Nov 11 2003 : Added FacXP+ command

	% As the PC approaches a given town, he will be accosted by
	% monsters.

	% **********************
	% *** ELEMENTS BLOCK ***
	% **********************

	% E1 is the scene where the combat will take place.
	element1 <Grab 2>

	% E2 is a character who will give the ultimate mission.
	element2 <Character Guardian !Near 1>

	% E3 is the NPC who the PC will fight/arrest.
	element3 <Prefab>

	% E4 is the next scene, if this mission is failed.
	element4 <Scene !Far 1>

	% ********************
	% *** SCRIPT BLOCK ***
	% ********************
	%  V1 = Time Limit
	%  V2 = Combat Indicator, if V2=1 combat has been entered
	%      This counts only for the combat given by E2.
	%  V3 = Email sent indicator.

	%  S2 = Encounter Challenge Rating

	%  S101 = Faction Victory Count
	%  S103 = How many times PC fought for faction

	%  S201 = Load new "relay" plot if S201=0
	%  S202 = Relay victory count; load conclusion when S202>3

	% On a cleanup request, delete this plot unless combat has been
	% entered.
	cleanup <if= V2 0 AdvancePlot 0>

	% Time limit. This plot will conclude in one day, or immediately
	% if NPC E2 is killed.
	Init_Start <ifNPCOK E2 else GoDelete if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 Compose EWM E1 .entrycombat>
	start <ifNPCOK E2 else GoDelete if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 Compose EWM E1 .entrycombat>
	GoCheckTime <if= V2 0 ifG ComTime V1 AdvancePlot 0>
	GoDelete <AdvancePlot 0>
	.entrycombat <Block Print 101 SavePos MDynamic 0 S2 .edesc .nu1 .nu2 PassVar 1 E1 SetMapType -6>
	.edesc <Synth Criminal>
	.nu1 <if= T1 0 Return>
	.nu2 <if= T2 0 Exit V1 SeekGate 1>

	% Combat check. If combat has been entered, V2=1.
	% Combat ends in victory if the number of active masters on
	% team two drops to zero, or ends in defeat is the number of
	% active masters on team one drops to zero. After combat, V2=3
	% if the player was victorious or V2=2 is the player lost.
	% Finally, if the player won, the calling story's faction victory
	% count (by default now story variable 101) will be increased.
	nu1 <if= T1 0 if= V2 1  V= 2 2  LoseRenown  N= 2 E4>
	nu2 <if= T2 0 if= V2 1  V= 2 3  Reputation 6 1 XPV 100 S+ 202 1 S+ 101 d8 S= 1 1 FacXP+ N1 d6>


	% Msg101 <As you enter \ELEMENT 1 , you are attacked by monsters!>
	Msg101 < \ELEMENT 1 Ȥȡ󥹥˽줿>

sub
	Persona 2
	% rumor <!2 has some kind of emergency at the BioCorp warehouse.>
	rumor <!2  BioCorp Ҹˤζ۵޻֤Ƥ>
	greeting <NewChat if= P2 3 else GoCheckLoss Say 5 CashPrize V3 Reputation 1 1 AdvancePlot 1>
	GoCheckLoss <if= P2 2 else GoFirst Say 4 AdvancePlot 0>
	GoFirst <Say 1 V= 3 Threat S2 3 AddCHat 1 AddCHat 2>

	result1 <EndChat Say 2 Goto GoStartCombat>

	GoStartCombat <SavePos S+ 103 1 P= 2 1 MDynamic 0 S2 .mdesc .nu1 .nu2 SetMapType -6>
	.nu1 <if= T1 0 Return>
	.nu2 <if= T2 0 Return>
	.mdesc <Synth Hunter-X>

	result2 <NewChat Say 3>

	% Describe crisis situation - PC can help or not.
	% Msg1 <We've found the source of the monsters- \ELEMENT 3 , a disgruntled former employee of BioCorp, has been generating them to get revenge on his bosses! The warehouse is now under siege; we have to stop them!>
	Msg1 <󥹥νн褬ʬޤBioCorp ʬҤäҰ \ELEMENT 3 ǤĤƤθۤ뤿˥󥹥äΤǤ礦 ϤҸˤϤƤޤ󥹥ߤʤС>

	% Combat is starting
	% Msg2 <You go stop the monsters, I have to make sure \ELEMENT 3 doesn't get away!>
	Msg2 <󥹥ߤ˹ԤäƤ \ELEMENT 3 ƨʤ褦ؤޤ>

	% PC needs time to get ready
	% Msg3 <Come back quickly, this is a crisis!>
	Msg3 <᤯äƤƤϰʤΤǤ顪>

	% The mission was a failure
	% Msg4 <You failed to stop \ELEMENT 3 ; I fear the monsters will just turn up somewhere else next.>
	Msg4 < \ELEMENT 3 ϻߤޤǤ͡Υ󥹥Ϥޤɤ˸ΤǤϤʤȻפޤ>

	% The mission was a success
	% Msg5 <You did it! The BioCorp employees were saved from the monsters, and while you were there we arrested \ELEMENT 3 . Here's a small reward for your heroism.>
	Msg5 <ޤ͡ BioCorp μҰϥ󥹥ޤʤعԤäƤ֤˲桹 \ELEMENT 3 館ޤ餬ʤαͺŪʹԤФ󽷤Ǥ>

	% Prompt1 <I better get over there!>
	Prompt1 <عԤ>
	% Prompt2 <Just a minute, while I reload...>
	Prompt2 <äԤäơ뤷Ƥ뤫ġ>


	Plot 1
		% PC has won the mission
		Init_Start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 News d5>
		start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 News d5>
		GoCheckTime <ifG ComTime V1 AdvancePlot 0>

		% News articles
		% Msg1 <\PC championed investigation into biotech monsters; suspect arrested.>
		Msg1 < \PC Х󥹥ܺ˶ϤƵԤᤵ줿>
		% Msg2 <"Monsters" case set to become "Mad Scientist" trial, thanks to \PC .>
		Msg2 < \PC Τǡ֥󥹥׻ϡ֥ޥåɡƥȡ׺ȽذܹԤ>
		% Msg3 <Culprit arrested in bioterror case. Monsters were Hunter-X genome derivative.>
		Msg3 <Хƥȿͤᤵ줿󥹥ϥϥ󥿡ΥΥΤä>
		% Msg4 <Researcher arrested in connection with monster attacks. \PC credited with investigation.>
		Msg4 <Ԥ󥹥˴ؤᤵ줿 \PC ܺ˹׸>
		% Msg5 <Monsters were created by discredited biotechnician, based on Hunter-X genome. \PC credited with solving case.>
		Msg5 <󥹥ɾȽΰʪؼԤˤꡢϥ󥿡ΥΥȤ˺줿 \PC ϻ˹׸>

end
inv
	NPC Citizen

end
