%%
%% Fungal Infestation Plots
%%
%%  The colony has been infested with fungus; plenty of SF:0 jobs to go root them out.
%%
%% Mood Spec:
%%  - No Elements
%%

Plot
	name <Crawlspace Cleaner>
	% desc <You'll get hired to go clean out a service tunnel.>
	desc <地下通路の掃除に雇われる。>
	requires <*FUNFESTATION>
	PayRate 300

	% E1 is the character offering the mission.
	Element1 <Character (CRAFT|LABOR|TRADE|CORPO|POLIT) -ArchEnemy Recharged>

	% V1 = Timer

	% FAIL CONDITIONS-
	% - E1 dies
	% - Time runs out before the scene is entered
	end <ifNPCDead %1% EndPlot>

	start <if= PlotStatus %plotid1% 0 else GoCheckWin ifG ComTime V1 EndPlot>
	GoCheckWin <ifSubPlotWon %plotid1% else GoCheckLoss   PMemo %plotid% 1   SetPlotStatus %plotid2% %id2%>
	GoCheckLoss <ifSubPlotLost %plotid1%                  PMemo %plotid% 2   SetPlotStatus %plotid3% %id3%>

	update <if= V1 0 V= 1 ComTime V+ 1 80000 V+ 1 d12000>

	% Msg1 <You have cleared out the vermin for %name1%. You should go collect your reward.>
	% Msg2 <You failed to clear out the vermin. You should report to %name1%.>
	Msg1 <%name1% の依頼の害菌駆除が完了した。報酬を受け取りに戻ろう。>
	Msg2 <害菌駆除に失敗した。%name1% に報告しなければならない。>

	% SubPlot1 is the fungus-cleaning task.
	% SubPlot2 is the victory condition
	% SubPlot3 is the failure condition
	SubPlot1 <*:TASK_KillFungus 1>
	SubPlot2 <*UTIL_WinMission&Chara 1>
	SubPlot3 <*UTIL_LoseMission&Chara 1>

	sub
		Persona 1
		% rumor0 <%name1% has a bit of a fungus problem.>
		rumor0 <%name1% はちょっとキノコ的な問題を抱えてる>
		% if PlotStatus = PlotID then the PC has been informed of the job, and can get it
		%  automatically until timeout.
		greeting <if= PlotStatus %plotid1% 0 else GoRemind if= PlotStatus %plotid% %id% else GoCheckEnemy Goto GoMissionBriefing>
		*GoRemind <*GenericMissionReminder>
		*GoCheckEnemy <*ENEMY_CHECK GoCheckAuto ChatNPCFac GoEnd>
		GoEnd <EndPlot>
		*GoCheckAuto <*AutoMissionTest&Chara GoMissionBriefing GoRejectMission GoCheckSkill ChatNPCFac na>
		GoRejectMission <ENdPlot RevertPersona>
		*GoCheckSkill <*GenericMissionTest&Chara&Extermination GoMissionBriefing GoEnd GoRejectMission ChatNPCFac na %threat%>
		GoMissionBriefing <SetPlotStatus %plotid% %id% PMemo %plotid% %id%02 NewChat Say %id%01 AddChat %id%01 AddChat %id%02 AddChat %id%03>
		GoNotHere <NewChat Say %id%03>
		result%id%01 <ifChatNPCInPlay Else GoNotHere EndChat Say %id%04 SetPlotStatus %plotid1% %id1%>
		*result%id%02 <*RejectMission GoEnd>
		result%id%03 <RevertPersona>
		% Msg%id%01 <There's a fungal infestation underneath this building. If you could help clear out some of the more dangerous ones, it'd be safe for the workers to go down and finish the job. I can offer you $ \VAL Reward %threat% PayRate for the mission.>
		% Msg%id%01_1 <You've probably heard about the problems we've been having with fungus. There's an infestation right under this building, and I could use your help to clear it out. Go down there and exterminate the bugs and you'll earn $ \VAL Reward %threat% PayRate .>
		% CMsg%id%01_1 <ifNPCSociable Accept>
		% Msg%id%01_2 <There's a fungal infestation in this building. I can offer you $ \VAL Reward %threat% PayRate to make it go away.>
		% CMsg%id%01_2 <ifNPCShy Accept>
		% Msg%id%01_3 <>
		% CMsg%id%01_3 <ifNPCCheerful Accept>
		% Msg%id%01_4 <The station's biodefense has failed, and mutant fungi have established themselves on the inside. If you clear out the infestation beneath this complex I can pay you $ \VAL Reward %threat% PayRate .>
		% CMsg%id%01_4 <ifNPCMelancholy Accept>
		% Msg%id%01_5 <>
		% CMsg%id%01_5 <ifNPCEasygoing Accept>
		% Msg%id%01_6 <>
		% CMsg%id%01_6 <ifNPCPassionate Accept>
		% Msg%id%02 <%name1% asked you to help clear out a fungal infestation beneath \SCENE NPCScene %1% .>
		% Msg%id%03 <In that case, come on over to \SCENE NPCScene %1% and I'll let you into the crawlspace.>
		% Msg%id%03_1 <Come to \SCENE NPCScene %1% , then. You can't exterminate fungus over the phone.>
		% Msg%id%04_1 <Good luck down there. Come back and talk to me once all the fungus have been eliminated.>
		% Msg%id%04_2 <Great! Here, I'll show you to the passageway... Come back after you've exterminated the fungus.>
		% Msg%id%04_3 <The crawlspace is right behind this panel. Good luck down there.>
		% Msg%id%04_4 <Exterminate all the fungus, then come back to me for your reward.>
		% Msg%id%04_5 <It's just down this tunnel. Kill all the fungus, then come see me about the reward.>
		% Prompt%id%01 <I'm ready to do that now.>
		% Prompt%id%01_1 <I might as well get started right away.>
		% Prompt%id%01_2 <Alright, I'm ready to go.>
		% Prompt%id%02 <Sorry, but I don't think I can help you.>
		% Prompt%id%02_1 <On second thought, I don't want this job.>
		% Prompt%id%02_2 <Upon further reflection, I don't want this job.>
		% Prompt%id%03 <Why don't we talk about something else first?>
		% Prompt%id%03_1 <Before we do that, I'd like to talk about something else.>
		% Prompt%id%03_2 <Wait a minute, I have other things to talk about.>
		Msg%id%01 <この建物の地下でキノコの汚染が広がってる%JG_NDA。危険な種類だけでも駆除してもらえれば、残りはここの作業員だけでも片付けられるんだ%JG_GA……。達成してくれれば、$ \VAL Reward %threat% PayRate の報酬を払%JV_OU。>
		Msg%id%01_1 <%JF2%JF_TACHIが抱えているキノコの問題のこと、もう聞いてるかも知れない%JV_F_WA%JV_NA。この建物の地下で汚染が広がっていて、これを駆除するために%JS2の力を借りたい%JG_SK。下に行ってあの虫たちを全滅させてくれたら、$ \VAL Reward %threat% PayRate の報酬を出%JV_SOU。>
		CMsg%id%01_1 <ifNPCSociable Accept>
		Msg%id%01_2 <この建物の地下でキノコが大発生してる%JG_NDA。退治してくれたら、$ \VAL Reward %threat% PayRate を出す%JG_YO。>
		CMsg%id%01_2 <ifNPCShy Accept>
		Msg%id%01_3 <>
		CMsg%id%01_3 <ifNPCCheerful Accept>
		Msg%id%01_4 <ここの防疫システムがダメになって、キノコのミュータントがこの下に住み着いた%JG_NDA。地下の汚染を処理してくれれば、$ \VAL Reward %threat% PayRate の報酬を払%JV_OU。>
		CMsg%id%01_4 <ifNPCMelancholy Accept>
		Msg%id%01_5 <>
		CMsg%id%01_5 <ifNPCEasygoing Accept>
		Msg%id%01_6 <>
		CMsg%id%01_6 <ifNPCPassionate Accept>
		Msg%id%02 <%name1% から、\SCENE NPCScene %1% の地下で起きているキノコ汚染の駆除を頼まれた。>
		Msg%id%03 <それなら、\SCENE NPCScene %1% に来てくれれば地下に案内する%JG_YO。>
		Msg%id%03_1 <それなら、\SCENE NPCScene %1% に来て%JG_R。電話越しには駆除はできない%JV_DAROU？>
		Msg%id%04_1 <下では気をつけて%JV_NA。キノコを全部片付けたら報告に戻って%JG_R。>
		Msg%id%04_2 <やった！ それじゃあ案内し%JV_YOU……キノコを絶滅させたら戻ってきて%JG_R。>
		Msg%id%04_3 <地下はこのパネルのすぐ向こう側%JG_DAYO。下では気をつけて%JV_NA。>
		Msg%id%04_4 <キノコを全滅させて、そしたら報酬を受け取りに戻ってきて%JG_R。>
		Msg%id%04_5 <地下はこのトンネルのすぐ向こう%JG_DAYO。キノコを全部殺して、それから報酬を受け取りに戻って%JG_R。>
		Prompt%id%01 <それならすぐに始められる%JG_YO。>
		Prompt%id%01_1 <すぐに始めさせてもらう%JG_YO。>
		Prompt%id%01_2 <分かった、いつでも始められる%JG_YO。>
		Prompt%id%02 <残念だ%JG_GA、力にはなれないと思う%JV_F_WA。>
		Prompt%id%02_1 <やっぱりこの仕事はやりたくない%JV_F_WA。>
		Prompt%id%02_2 <もっとよく考えてみたら、この仕事はやりたくない%JV_F_WA。>
		Prompt%id%03 <その前に、他の事を聞きたいんだ%JG_GA。>
		Prompt%id%03_1 <それをやる前に、少し他の話をしたい%JV_F_WA。>
		Prompt%id%03_2 <ちょっと待って%JG_R。他にも聞きたいことがある%JG_NDA。>
	end

