%%
%% Disaster Plots
%%
%%  Something bad has happened, like an earthquake or a typhoon. Various
%%  rescue and rebuilding efforts may be underway.
%%
%% Mood Spec:
%%  - No Elements
%%

Plot
	name <Go Beat Looters>
	% desc <In any disaster you're going to get looters. Go blow them up.>
	desc <どんな災害にも必ず略奪者は現れる。奴らを吹っ飛ばしてしまえ。>
	requires <*Disaster>

	% E1 is the town itself
	% E2 is a police or military character aligned with the town
	% E3 is the urban scene where the looters are
	Element1 <Scene Town>
	Element2 <Character (POLIC|MILIT) !Ally 1>
	Element3 <Scene Urban>

	% V1 = Time Limit
	% V2 = Memo Counter

	% There's a 24-hour time limit.
	start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400>
	GoCheckTime <ifG ComTime V1 EndPlot>
	end <if= PlotStatus %plotid1% 0 ifNPCDead %2% EndPlot>

	% Winning the battle against the looters will automatically end the plot.
	update <if= V2 0 ifSubPlotWon %plotid1% else GoCheckLoss  V= 2 1  AddHeroic 1  EndPlot>
	GoCheckLoss <ifSubPlotLost %plotid1%  V= 2 1  EndPlot>

	% SubPlot1 is the mecha encounter task
	SubPlot1 <*:TASK_DefeatLooters 3>

	sub
		Persona 2
		% rumor0 <%name2% has been trying to control the looters in %name3%.>
		rumor0 <%name2% は %name3% で起きている略奪を取り締まろうとしている>
		greeting <if= PlotStatus %plotid1% 0 else GoRemind Goto GoCheckEnemy>
		GoRemind <NewChat Say 1>
		*GoCheckEnemy <*ENEMY_CHECK GoCheckOffer ChatNPCFac GoEnd>
		GoEnd <EndPlot>
		GoCheckOffer <ifPCLawful else GoNoOffer NewChat Say 2 AddChat 1 AddChat 2>
		GoNoOffer <NewChat Say 3 EndPlot>
		result1 <NewChat Say 4 Memo 5 SetPlotStatus %plotid% %id% SetPlotStatus %plotid1% %id1% AddReact d4>
		result2 <NewChat Say 6 EndPlot>
		% Msg1 <There are still looters active in %name3%.>
		% Msg1_1 <The looters are still active in %name3%.>
		% Msg2 <There are looters active in %name3%. In the current state of emergency, we don't have the manpower or the funds to deal with them.>
		% Msg2_1 <We've got a looting situation going on in %name3%. Unfortunately, we can't hire more pilots to deal with it because all funds are tied up in disaster relief.>
		% CMsg2_1 <ifNPCSociable Accept>
		% Msg2_2 <Sorry, I can't talk. We have an emergency on our hands and no money to hire more pilots.>
		% CMsg2_2 <ifNPCShy Accept>
		% Msg2_3 <I was going to tell you about a mission to stop looters in %name3%, but we don't have enough money to hire you so I guess you get the day off.>
		% CMsg2_3 <ifNPCEasygoing Accept>
		% Msg2_4 <This is madness! %name1% is being stripped bare by looters, and we don't have enough pilots or money to deal with it effectively.>
		% CMsg2_4 <ifNPCPassionate Accept>
		% Msg2_5 <As these things go, I think %name1% has weathered the disaster pretty well. The biggest problem right now is the looters... maybe later we can hire a pilot to deal with them.>
		% CMsg2_5 <ifNPCCheerful Accept>
		% Msg2_6 <Hasn't our city suffered enough? On top of everything else, now there are criminals looting %name3%. We can't even divert funds from disaster relief to deal with them.>
		% CMsg2_6 <ifNPCMelancholy Accept>
		% Msg3 <You are advised to stay out of %name3% until the situation improves.>
		% Msg3_1 <There's a security breach in %name3%. We can't assume any responsibility for your wellbeing until the situation improves.>
		% Msg3_2 <Only you can stop looting. No, seriously, I'd like you to stop looting.>
		% CMsg3_2 <ifPCCriminal Accept>
		% Msg4 <That's very noble of you. Here are the coordinates of the hardest fighting... please help us to return peace to %name1%.>
		% Msg4_1 <Thanks for the offer... You can find the looters in %name3%. I really appreciate your help.>
		% Msg4_2 <If you're willing to do this for free, then I'm willing to let you. I'll upload the latest reports to your navcomp. Be careful out there.>
		% Msg5 <You volunteered to fight some looters in %name3%. There is no reward for this mission.>
		% Msg6 <Please be careful while traveling through the area.>
		% Msg6_1 <Understood. Be careful out there.>
		% Prompt1 <I'd like to volunteer for service.>
		% Prompt1_1 <Given the situation, I'll waive my regular pay.>
		% Prompt2 <That's not my problem.>
		% Prompt2_1 <Good luck with that.>
		Msg1 <%name3% での略奪行為はまだ収束していない%JV_F_WA……。>
		Msg1_1 <%name3% ではまだ略奪が多発している%JV_F_WA。>
		Msg2 <%name3% で略奪行為が多発している%JV_F_WA。この緊急事態の状況下では、これに対処するための予算も人員も足りていない%JG_NDA。>
		Msg2_1 <%name3% は略奪の横行する状況下にある%JV_F_WA。無念だ%JG_GA、災害からの復旧だけで予算が手一杯で、そちらに対応するためのパイロットを雇えない%JG_NDA。>
		CMsg2_1 <ifNPCSociable Accept>
		Msg2_2 <悪い%JG_GA、お喋りしてる場合じゃない%JG_NDA。今こっちは緊急事態で、パイロットを雇う予算もない%JG_SK。>
		CMsg2_2 <ifNPCShy Accept>
		Msg2_3 <%name3% での略奪を止めてほしい……って仕事を与えたかったところなんだ%JG_GA、%JS2を雇える予算がない%JG_SK。だから%JS2も休業ってことで。>
		CMsg2_3 <ifNPCEasygoing Accept>
		Msg2_4 <まったく狂ってる%JV_ZO！ このままじゃ略奪で %name1% が裸にされかねないのに、対処するためのパイロットもそれを雇う金も無いだなんて。>
		CMsg2_4 <ifNPCPassionate Accept>
		Msg2_5 <この調子じゃ、%name1% の天気予報はずっと『災害』のまま%JG_DANE%JV_SIL_R。一番の問題は略奪なんだ%JG_GA、余裕ができるのを待ってからパイロットを雇うしかない%JG_NE。>
		CMsg2_5 <ifNPCCheerful Accept>
		Msg2_6 <この街はもう十分に苦しんだんじゃないの%JV_KA_Q……？ 災害に加えて、今度は犯罪者どもが %name3% で略奪を繰り返してる%JV_F_NO%JV_F_YO。対処するパイロットを雇うのに、災害復旧の予算を削るなんてできる筈もないし……。>
		CMsg2_6 <ifNPCMelancholy Accept>
		Msg3 <状況が改善するまで、%JS2も %name3% から離れていたほうがいい%JV_ZO。>
		Msg3_1 <%JR_NO、現在の %name3% は治安が崩壊してしまっている%JG_NDA。状況が改善するまで、%JS2の行動の無事も保証はしてやれない%JV_F_WA。>
		Msg3_2 <%JS2なら略奪を止められる%JV_DAROU。%JR_NO、本気で言ってる%JV_ZO%JV_F_YO……%JS2のような奴なら、略奪者に遠慮なんてしない%JV_DAROU？>
		CMsg3_2 <ifPCCriminal Accept>
		Msg4 <それは願ってもない立派な申し出%JG_DANE。激しい戦闘が起こりそうな場所の座標がここ%JG_DA%JV_SIL_R頼んだ%JV_ZO、どうか %name1% に平和を取り戻すのに力を貸して%JG_R。>
		Msg4_1 <本当にありがたい申し出%JG_DANE%JV_SIL_R略奪の現場は %name3% %JG_DA。%JS2の助力に感謝する%JV_ZO。>
		Msg4_2 <もし無償で協力してくれるというのであれば、是非お願いしたい%JV_F_WA。最新の報告を%JS2の端末に送るから、どうか気を付けて行ってきて%JG_R。>
		Msg5 <%name3% で起きている略奪を止めるために無償で戦うことになった。この仕事には報酬は出ない。>
		Msg6 <%JS2も、この周辺での移動には十分に注意して%JG_R。>
		Msg6_1 <もちろん%JG_DA。%JS2も気を付けて。>
		Prompt1 <無償で力を貸%JV_SOU。>
		Prompt1_1 <この状況なら、報酬は辞退で構わない%JG_YO。>
		Prompt2 <%JF2には関係ない%JG_NE。>
		Prompt2_1 <対応、頑張って。>
	end

Plot
	name <Donation Drive>
	% desc <Donations are beging solicited for the town.>
	desc <街のために寄付が求められている。>
	requires <*Disaster>

	% E1 is the town itself
	% E2 is a businessperson or politician
	Element1 <Scene Town>
	Element2 <Character (POLIT|TRADE|CRAFT|CORPO) -Villainous !Okay 1 Recharged>

	% V1 = Time Limit

	% There's a 24-hour time limit.
	start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400>
	GoCheckTime <ifG ComTime V1 EndPlot>
	end <ifNPCDead %2% EndPlot>

	sub
		Persona 2
		% rumor <%name2% has been collecting donations to help %name1%.>
		rumor <%name2% は %name1% のために寄付を募っている>
		&HighPledge <Reward PCHeroism 300>
		&MediumPledge <Reward PCHeroism 100>
		&LowPledge <500>
		greeting <NewChat Say 1 AddChat 1 AddChat 2 AddChat 3 AddChat 4 EndPlot>
		GoGive <EndChat Say 2 AddChat 5>
		result1 <Cash+ -&HighPledge    AddHeroic 1 AddReact d10 { FacXP+ ChatNPCFac 2 }   Goto GoGive>
		result2 <Cash+ -&MediumPledge  AddReact d8  { FacXP+ ChatNPCFac 1 }   Goto GoGive>
		result3 <Cash+ -&LowPledge     AddReact d2  Goto GoGive>
		result4 <RevertPersona>
		result5 <RevertPersona>
		% Msg1 <I'm collecting donations to help rebuild %name1%. Are you willing to give?>
		% Msg1_1 <Hello \PC . As you know, there's been a lot of damage done to %name1%. Can you donate anything to help in the rebuilding?>
		% CMsg1_1 <ifG React 25 Accept>
		% Msg1_2 <It's going to take a lot of money to rebuild %name1%. I'm collection donations to go towards emergency relief... Can you give anything?>
		% CMsg1_2 <ifG React 0 Accept>
		% Msg2 <Thank you!>
		% Msg2_1 <Thank you so much.>
		% Prompt1 <I'll give $ \VAL &HighPledge .>
		% CPrompt1 <ifG PC$ &HighPledge Accept>
		% Prompt2 <I'll give $ \VAL &MediumPledge .>
		% CPrompt2 <ifG PC$ &MediumPledge Accept>
		% Prompt3 <I'll give $ \VAL &LowPledge .>
		% CPrompt3 <ifG PC$ &LowPledge Accept>
		% Prompt4 <Sorry, I can't.>
		% Prompt4_1 <Maybe some other time.>
		% Prompt5 <[Continue]>
		Msg1 <%name1% の再建のために寄付を募っている%JG_NDA。%JS2も協力していただけない%JG_KANA？>
		Msg1_1 <ああ、\PC ……見ての通り、%name1% は大きな被害を受けてしまった%JG_YO。再建のために、%JS2からも協力の募金をお願いできない%JV_DAROUか？>
		CMsg1_1 <ifG React 25 Accept>
		Msg1_2 <%name1% の再建のためには多額の資金が必要になる%JV_F_WA。%JF2は災害復旧のために寄付を募って回っている%JG_NDA%JV_SIL_R%JS2も何か協力してはもらえない%JV_DAROUか？>
		CMsg1_2 <ifG React 0 Accept>
		Msg2 <ありがとう！>
		Msg2_1 <本当にありがとう。>
		Prompt1 <$ \VAL &HighPledge 出%JV_SOU。>
		CPrompt1 <ifG PC$ &HighPledge Accept>
		Prompt2 <$ \VAL &MediumPledge 出%JV_SOU。>
		CPrompt2 <ifG PC$ &MediumPledge Accept>
		Prompt3 <$ \VAL &LowPledge 出%JV_SOU。>
		CPrompt3 <ifG PC$ &LowPledge Accept>
		Prompt4 <悪い%JG_GA、無理%JG_DA。>
		Prompt4_1 <また機会があれば。>
		Prompt5 <[続ける]>
	end

Plot
	name <Blood Drive>
	% desc <In the wake of the disaster, blood donations are needed.>
	desc <災害の只中で、献血が必要になっている。>
	requires <*Disaster>

	% E1 is a medical professional- a nurse, doctor, etc
	Element1 <Character MEDIC Recharged -Villainous>

	% V1 = Time Limit

	% There's a 24-hour time limit.
	start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400>
	GoCheckTime <ifG ComTime V1 EndPlot>
	end <ifNPCDead %1% EndPlot>

	sub
		Persona 1
		% rumor <%name1% has been running a blood drive for victims of the disaster.>
		rumor <%name1% は被災者のために献血事業を進めている>
		greeting <ifChatNPCinPlay else GoNotHere NewChat Say 1 AddChat 1 AddChat 2 AddChat 3>
		GoNotHere <NewChat Say 6>
		%% Being a blood donor abuses vitality, just a little- this is the price for the point of heroism.
		%% Note that it can't actually reduce your vitality skill, it'll just delay your next vitality
		%% boost.
		%% Donating blood will contribute to faction XP for the government faction.
		result1 <EndChat Say 2 Print 3 AddReact d10 AddHeroic 1 SkillXP NAS_Vitality -10 Time 3600 FacXP+ RootSceneFac 2 GrabPCPilot GAddNAtt NAG_Condition NAS_StaminaDown 30 GiveSTC .desc EndPlot Print 4>
		.desc <FOOD-1>
		result2 <RevertPersona>
		result3 <NewChat Say 5 EndPlot>
		% Msg1 <Hi. We're running a blood drive for victims of the disaster. Volunteers get a free lunch.>
		% Msg1_1 <Hi \PC , how would you like to help me out? We've got a blood shortage in \SCENE RootSceneID because of all the accident victims. Donate some of your own and I'll buy you lunch.>
		% CMsg1_1 <ifG React 25 Accept>
		% Msg1_2 <\SCENE RootSceneID has run out of synthetic blood. I'm sure that a brave young adventurer such as yourself has no problem with needles. How about being a blood donor?>
		% CMsg1_2 <ifG React 0 Accept>
		% Msg1_3 <\SCENE RootSceneID is currently hosting a blood drive. How would you like to be a donor? You'll get a free lunch in exchange for your time.>
		% Msg2_1 <Just lie back and watch TV while I put the needle in. Thank you for giving.>
		% Msg2_2 <You're doing a good thing for the community. Here, just lie back and relax. This won't take too long.>
		% Msg2_3 <Lie back and relax. You can watch TV or listen to music if you like. Thank you very much for giving.>
		% Msg3 <\PC donates blood.>
		% Msg4 <\PC gets a free lunch from %name1%.>
		% Msg5_1 <That's fine. You should really consider donating when you're able to.>
		% Msg5_2 <You should consider making a blood donation sometime when you're able, then.>
		% Msg5_3 <Fine.>
		% Msg6 <I'm running a blood drive for \SCENE RootSceneID . Why not drop by \SCENE NPCScene %1% and donate?>
		% Prompt1 <Alright, I'll do that.>
		% Prompt1_1 <Sure. No problem.>
		% Prompt2 <Sorry, I need medical help myself.>
		% Prompt2_1 <Wait a minute, I need help myself.>
		% Prompt3 <No way. I need all the blood I can get.>
		% Prompt3_1 <This isn't a good time for that.>
		Msg1 <どうも。%JF2は被災者のために献血の事業を運営している%JG_NDA。協力してくれた方には昼食を用意している%JG_YO。>
		Msg1_1 <ああ \PC、ちょっと手助けをしてもらえない%JG_KANA？ 災害で怪我人が大勢出たせいで、\SCENE RootSceneID では輸血用の血液が不足してる%JG_NDA。%JS2の血を少し分けてもらえれば、昼食をご馳走する%JG_YO。>
		CMsg1_1 <ifG React 25 Accept>
		Msg1_2 <\SCENE RootSceneID では人工血液の備蓄が底を突いてしまった%JV_N%JV_M_DA。%JS2のような若くて勇敢な冒険者なら、針なんて平気%JV_M_DAよ%JV_NA？ 献血に協力してもらえない%JV_Q？>
		CMsg1_2 <ifG React 0 Accept>
		Msg1_3 <\SCENE RootSceneID では献血キャンペーンを開催中%JG_DAYO。%JS2もドナーになってもらえない%JG_KANA？ 協力のお礼に昼食を無料提供している%JG_YO。>
		Msg2_1 <では、針を入れている間テレビでも見て横になってて%JG_R。協力に感謝する%JG_YO。>
		Msg2_2 <%JS2の行いが皆の助けになる%JG_YO。さあ、横になって楽にして%JV_F_NE、すぐに終わるから。>
		Msg2_3 <そこに横になって楽にして%JG_R。お望みであればテレビか音楽でも流すから%JV_NA。協力に本当に感謝する%JG_YO。>
		Msg3 <\PC は献血した。>
		Msg4 <%name1% から昼食の提供を受けた。>
		Msg5_1 <なら仕方ない%JV_F_WA%JV_NA。余裕ができたらぜひ協力をお願いしたい%JV_F_WA%JV_NA。>
		Msg5_2 <じゃあ、余裕ができた時にでもぜひ協力をお願いしたい%JV_F_WA%JV_NA。>
		Msg5_3 <そう%JV_KA_Q。>
		Msg6 <今、\SCENE RootSceneID のために献血事業をしている%JG_NDA。ぜひ \SCENE NPCScene %1% に寄って協力してもらえない%JG_KANA？>
		Prompt1 <分かった、協力し%JV_YOU。>
		Prompt1_1 <もちろん。問題ない%JV_F_WA。>
		Prompt2 <悪い%JG_GA、病院にお世話になりたい身な%JG_NDA。>
		Prompt2_1 <%JR_NO、助けてほしいのは%JF2もな%JG_NDA。>
		Prompt3 <まさか。他人に分けられる血の余裕なんかない%JV_F_WA。>
		Prompt3_1 <今はちょっと間が悪い%JV_F_WA%JV_NA。>
	end

