%%
%%  Plots specifically dealing with the Privateer's Guild of L5.
%%

Plot
	name <PRIVA: Letter Of Marque>
	% The PC is off to capture an enemy vessel.
	% This job will result in the PC making an enemy.
	requires <*GENERAL -!Ne -!Lo (FCOMS|MAQUI)>
	PayRate 250

	% E1 is the town itself
	% E2 is a character who will offer the mission
	% E3 is a scene where the encounter will take place
	% E4 is the enemy faction
	Element1 <Scene Town>
	Element2 <Character PRIVA !Ally 1 RECHARGED>
	Element3 <Scene Environs>
	Element4 <Faction !Enemy 2 !Xclude 1>

	% SubPlot1 is the combat encounter
	SubPlot1 <*MECHAMISSION_Capture 2 3 4>

	% P1 = Time Limit
	% P2 = Email Indicator
	start <if= PlotStatus %plotid% 0 ifNPCOK %2% else GoDelete ifG ComTime P1 EndPlot>
	GoDelete <EndPlot>
	update <if= PlotStatus %plotid% 0 if= P1 0 P= 1 ComTime P+ 1 86400>

	% Insert email here
	5min <if= PlotStatus %plotid% 0 if= P2 0  if= PCFac NPCFac %2%  if= RootSceneID %1% if= d4 1  ifG PCCharm d40  SetNPC %2% Email 1 P= 2 1>
	% Msg1   <%name2%@ \SCENE NPCSCene %2% :// Hey \RANK , there's a ship in \EXACT_SCENE %3% that needs to get blown up real good.>
	% Msg1_1 <%name2%@ \SCENE NPCSCene %2% :// \RANK \PC , your services are requested by the Guild. Give me a call.>
	% Msg1_2 <%name2%@ \SCENE NPCSCene %2% :// There's been trouble with %name4%. It's time to teach them a lesson.>
	% Msg1_3 <%name2%@ \SCENE NPCSCene %2% :// I've got a mission for you. Come to \EXACT_SCENE NPCSCene %2% for the briefing.>
	Msg1   <%name2%@ \SCENE NPCSCene %2% :// \RANK殿、\EXACT_SCENE %3% に派手に吹き飛ばしてほしい船が来ている%JV_ZO。>
	Msg1_1 <%name2%@ \SCENE NPCSCene %2% :// \PC、ギルドからの協力要請%JV_M_DA%JV_F_YO。連絡を寄越すように。>
	Msg1_2 <%name2%@ \SCENE NPCSCene %2% :// %name4% とのトラブルが発生した%JV_F_WA。少し思い知らせてやる必要がある%JV_F_WA%JV_F_NE。>
	Msg1_3 <%name2%@ \SCENE NPCSCene %2% :// %JS2に任務%JV_M_DA%JV_F_YO。ブリーフィングに \EXACT_SCENE NPCSCene %2% まで来るように。>

	sub
		Persona 2
		% rumor0 <%name2% needs a pilot to catch a ship belonging to %name4%.>
		rumor0 <%name2% は %name4% の船を捕まえるためにパイロットを必要としている>
		greeting <if= PlotStatus %plotid% %id1% else GoCheckOffer Goto GoRemind>
		*GoRemind <*MechaMissionReminder %3%>
		GoCheckOffer <if# PlotStatus %plotid% 0 else GoCheckEnemy NewChat SayAnything>
		*GoCheckEnemy <*ENEMY_CHECK GoCheckEmail ChatNPCFac GoEnd>
		GoCheckEmail <if= P2 1 else GoCheckMember Goto GoGotEmail>
		*GoGotEmail <*DidYouGetEmail GoMissionBriefing>
		GoCheckMember <if= PCFac ChatNPCFac else GoCheckAuto  Goto GoIsMember>
		*GoIsMember <*IHaveAJobForYou GoMissionBriefing>
		*GoCheckAuto <*AutoMissionTest&Mecha GoMissionBriefing GoRejectMission GoCheckSkill ChatNPCFac %4%>
		*GoCheckSkill <*GenericMissionTest&Mecha  GoMissionBriefing GoEnd GoRejectMission ChatNPCFac %4% %threat%>
		*GoRejectMission <*RejectMission GoEnd>
		GoEnd <EndPlot>
		GoMissionBriefing <NewChat Say 1  AddChat 1 AddChat 2>
		*result1 <*GoodLuckOnMission GoR1Final ChatNPCFac %4%>
		GoR1Final <PMemo %plotid% 2 SetPlotStatus %plotid% %id1%>
		result2 <Goto GoRejectMission>
		% Msg1 <There's a ship belonging to %name4% moving through \EXACT_SCENE %3%  . Your mission is to capture it; bring them in intact, and you'll earn $ \VAL Reward %threat% PayRate plus salvage.>
		% Msg1_1 <>
		% CMsg1_1 <ifNPCSociable Accept>
		% Msg1_2 <>
		% CMsg1_2 <ifNPCShy Accept>
		% Msg1_3 <>
		% CMsg1_3 <ifNPCEasygoing Accept>
		% Msg1_4 <>
		% CMsg1_4 <ifNPCPassionate Accept>
		% Msg1_5 <>
		% CMsg1_5 <ifNPCCheerful Accept>
		% Msg1_6 <>
		% CMsg1_6 <ifNPCMelancholy Accept>
		% Msg2 <%name2% in \SCENE NPCSCene %2% hired you to capture a vessel belonging to %name4% in \EXACT_SCENE %3% .>
		% Prompt1 <I'll be back when I'm finished.>
		% Prompt1_1 <Alright, I'll do it.>
		% Prompt1_2 <No worries, that vessel will be mine!>
		% Prompt2 <No thanks. I don't want to get involved.>
		% CPrompt2 <if# PCFac ChatNPCFac Accept>
		% Prompt2_1 <You better find someone else for this mission.>
		% Prompt2_2 <Sorry, but I'd rather not.>
		Msg1 <%name4% 所属の船が \EXACT_SCENE %3% を通過しようとしている%JG_NDA。%JS2の任務は、この船を確保すること%JV_M_DA。撃沈せずに無力化できれば、$ \VAL Reward %threat% PayRate とサルベージ権を与え%JV_YOU。>
		Msg1_1 <>
		CMsg1_1 <ifNPCSociable Accept>
		Msg1_2 <>
		CMsg1_2 <ifNPCShy Accept>
		Msg1_3 <>
		CMsg1_3 <ifNPCEasygoing Accept>
		Msg1_4 <>
		CMsg1_4 <ifNPCPassionate Accept>
		Msg1_5 <>
		CMsg1_5 <ifNPCCheerful Accept>
		Msg1_6 <>
		CMsg1_6 <ifNPCMelancholy Accept>
		Msg2 <\SCENE NPCSCene %2% の %name2% は、\EXACT_SCENE %3% にいる %name4% の船を捕獲するためにあなたを雇った。>
		Prompt1 <任務を達成したら戻ってくる%JV_F_WA。>
		Prompt1_1 <分かった、やる%JG_YO。>
		Prompt1_2 <大丈夫%JV_M_DA、船は%JF2のものになる%JV_F_WA！>
		Prompt2 <遠慮する%JG_YO。関わりたいと思わない%JV_F_WA。>
		CPrompt2 <if# PCFac ChatNPCFac Accept>
		Prompt2_1 <他の誰かを当たって%JG_R。>
		Prompt2_2 <悪い%JG_GA、やめておく%JG_YO。>
	end

