Plot 0
	name <Drug Investigator>

	% This plot contains the monk who will be investigating
	% the artifact. The PC can always come back to this monk
	% to learn the results of the investigation.

	element1 <Grab 1>
	element2 <Character Guardian Lawful Passionate>

	% V101 = Email phase thing

	Init_Start <ifNPCOK E2 else GoCleanDelete>
	start <ifNPCOK E2 else GoCleanDelete>

	% If the master of this plot has died, better load a new
	% investigative plot.
	GoCleanDelete <S= 204 0 AdvancePlot 0>

	% At cleanup, delete this plot. If the PC has been given the
	% mission advance to the plot which will tell him it's over.
	cleanup <if# S103 0 else GoRealDelete if# S104 0 else GoTimeOver AdvancePlot 2>
	GoTimeOver <AdvancePlot 1>
	GoRealDelete <AdvancePlot 0>

	% Every 5 minutes, check for email.
	% 5Min <if= d30 1 if= S103 0 else GoCheckUpdate if= PCFac E1 Email 1 S= 103 1 P= 101 S202>
	5Min <if= d30 1 if= S103 0 else GoCheckUpdate if= PCFac E1 SetNPC E2 Email 1 S= 103 1 P= 101 S202>
	% GoCheckUpdate <if# P101 S203 ifG ComTime S205 Email 2 P= 101 S203 if# S202 S203 S= 203 S202>
	GoCheckUpdate <if# P101 S203 ifG ComTime S205 SetNPC E2 Email 2 P= 101 S203 if# S202 S203 S= 203 S202>

	% Msg1 : Initial message
	% Msg1 <\ELEMENT 2 @ \SCENE EScene 2 :// Got an important mission for you. Come see me for the details.>
	Msg1 <\ELEMENT 2 @ \SCENE EScene 2 :// ʤ˽פʻŻޤܺ٤ʹƤ>
	% Msg1_1 <\ELEMENT 2 @ \SCENE EScene 2 :// The "Pump Pushers" are selling their dirty garbage in \NARRATIVE 2 . Gather evidence, then report to me.>
	Msg1_1 <\ELEMENT 2 @ \SCENE EScene 2 :// ֥ѥ̩ġפ \NARRATIVE 2 Ǳ֥ĤäƤޤڵ򽸤ơ𤷤Ƥ>
	% Msg1_2 <\ELEMENT 2 @ \SCENE EScene 2 :// There's been trouble with "Pump" in \NARRATIVE 2 . You've been assigned the task of investigation.>
	Msg1_2 <\ELEMENT 2 @ \SCENE EScene 2 :// \NARRATIVE 2 ǡ֥ѥספߤ꤬Ƥ褦ǤʤĴǤ̳Ƥޤ>
	% Msg1_3 <\ELEMENT 2 @ \SCENE EScene 2 :// I have a case for you.>
	Msg1_3 <\ELEMENT 2 @ \SCENE EScene 2 :// ʤ˻Żޤ>
	CMsg1_3 <ifG 0 NPCRep E2 3 Accept>

	% Msg2 : Reminder message
	% Msg2_1 <\ELEMENT 2 @ \SCENE EScene 2 :// The lab boys say that the "Pump" came from \NARRATIVE 2 . Follow the trail, see where it leads.>
	Msg2_1 <\ELEMENT 2 @ \SCENE EScene 2 :// Ĵɤˤȡ֥ѥספ \NARRATIVE 2 ήƤƤ뤽Ǥ꤬ɤɤéĤΤƤ>
	% Msg2_2 <\ELEMENT 2 @ \SCENE EScene 2 :// Our clues point to \NARRATIVE 2 ... continue your investigation there.>
	Msg2_2 <\ELEMENT 2 @ \SCENE EScene 2 :// 桹꤬ \NARRATIVE 2 򼨤ƤޤĤعԤĴ³Ƥ>
	% Msg2_3 <\ELEMENT 2 @ \SCENE EScene 2 :// Just got word in that the "Pump" dealers are operating out of \NARRATIVE 2 . Go sniff them out.>
	Msg2_3 <\ELEMENT 2 @ \SCENE EScene 2 :// ֥ѥספ̩ȼԤ \NARRATIVE 2 ǰƤȤޤ򤫤ĤƤ>
	% Msg2_4 <\ELEMENT 2 @ \SCENE EScene 2 :// The "Pump" lab could be in \NARRATIVE 2 . See what you can find, then report to me.>
	Msg2_4 <\ELEMENT 2 @ \SCENE EScene 2 :// ֥ѥס¤ \NARRATIVE 2 ˤ뤫⤷ޤ󡣤Ǥ¤Ĵ٤ơ𤷤Ƥ>
	% Msg2_5 <\ELEMENT 2 @ \SCENE EScene 2 :// Your next stop is gonna be \NARRATIVE 2 . We've got to put these "Pump Pushers" out of business.>
	Msg2_5 <\ELEMENT 2 @ \SCENE EScene 2 :// ʤ˹ԤΤ \NARRATIVE 2 Ǥ桹ϤΡ֥ѥ̩ġפѶȤ褦ȤƤޤ>
	% Msg2_6 <\ELEMENT 2 @ \SCENE EScene 2 :// Investigate \NARRATIVE 2 next.>
	Msg2_6 <\ELEMENT 2 @ \SCENE EScene 2 ://  \NARRATIVE 2 Ĵ٤Ƥ>
	CMsg2_6 <ifG 0 NPCRep E2 3 Accept>


sub
	Persona 2
	% rumor <!2 has been investigating the "Pump Pushers".>
	rumor <!2 ϡ֥ѥ̩ġפܺƤ>
	% To start with, check to see whether or not the PC has already
	% been given this mission.
	greeting <NewChat if= V1 0 else GoCheckMission if= PCFac E1 else GoNoChance Say 1 AddChat 1>
	GoCheckMission <if= S103 0 else GoStartWithCase Goto GoNoChance>
	GoNoChance <Say 3>

	% If the number of clues equals the number of wins, then E2
	% can tell the PC where to head next.
	GoStartWithCase <NewChat if= S202 S203 else GoCheckClue  Say 5>

	% If the clue timer has run its course, tell the PC the next
	% place to go now.
	GoCheckClue <ifG ComTime S205 else GoMustWait S= 203 S202 Say 6 AddChat 3>

	% If the PC must wait, then there's not much else to do
	% but wait. Bummer.
	GoMustWait <Say 7>

	result1 <NewChat S= 103 1 V= 1 1 Goto GoStartWithCase>

	result2 <NewChat Say 4 Reputation 4 -d8>

	result3 <NewChat Say 5>

	%  01 :  PC is faction member; automatically offered job.
	% Msg1 <I have a case for you, \RANK \PC . There are "Pump Pushers" operating in the FedTer... Pump is a synthetic narcotic, they must have a lab hidden somewhere. We have to track it down but it won't be easy.>
	Msg1 <%JS˻Żޤ \RANK \PC Ϣˮǡ֥ѥ̩ġפƤޤġ֥ѥספϹǡϤɤ̩¤äƤϤǤͤߤ᤿ΤǤñˤϤʤǤ礦>
	% Msg1_2 <"Pump Pushers" are selling illegal drugs. They have to be stopped. I have chosen you to lead the investigation.>
	Msg1_2 <֥ѥ̩ġפˡɥåäƤޤߤʤФʤޤ󡣤ǻϤʤܺӤޤ>
	CMsg1_2 <ifG 0 NPCRep E2 3 Accept>

	%  03 :  PC is denied mission; NPC will just imply it.
	% Msg3 <Remember, winners don't do drugs.>
	Msg3 <ǤԤϥɥåʤΤǤ衣>
	% Msg3_1 <I don't understand all the crazy drugs some people take... Why can't they just drink Xozu like someone normal?>
	Msg3_1 <ɤ͡ʴʤɥåͤΤˤʬޤġʤ̤οͤΤ褦˥ˤǤʤΤǤ礦>
	% Msg3_2 <I'm busy.>
	Msg3_2 <˻ΤǤ>
	CMsg3_2 <ifG 0 NPCRep E2 3 Accept>

	%  4 :  PC doesn't want the job.
	% Msg4 <I won't stand by while drug-running ghouls make money off the desperation of others. I must do something about it!>
	Msg4 <%JFϥɥåήɤ⤬¾ͤ˾Τ򸫲ᤴޤ󡣲ǤʤС>
	% Msg4_1 <Pump is a dangerous substance... especially the street version. The impurities alone have been known to kill people.>
	Msg4_1 <ѥפϴʥ֥ĤǤĤȤ櫓ƤΤϡԽʪǤʹ֤ϻǤޤǤ>
	% Msg4_2 <Suit yourself.>
	Msg4_2 <ˤʤ>
	CMsg4_2 <ifG 0 NPCRep E2 3 Accept>

	%  5 :  General clue reminder.
	% Msg5 <So far our clues have pointed to \NARRATIVE 2 . That's where you should start working.>
	Msg5 <ޤǲ桹꤬ \NARRATIVE 2 򼨤ƤޤʤĴϤ٤ϤǤ>
	% Msg5_1 <According to our evidence, the pushers are working out of \NARRATIVE 2 . Of course that doesn't mean the lab is there. Go see what you can find.>
	Msg5_1 <桹ڵˤС̩ȼԤ \NARRATIVE 2 ǰƤ褦Ǥ󡢤ȤäƤ¤꤬뤫ʬޤ󤬡Ǥ¤Ĵ٤Ƥ>
	% Msg5_2 <We've learned that the drugs have been coming out of \NARRATIVE 2 . That's probably just a distribution point... but it's the best place to go search for clues right now.>
	Msg5_2 <Υɥå \NARRATIVE 2 ήƤƤ뤳ȤʬäƤޤϤ餯̩Ǥ礦ĺ˼꤬õ˹Ԥˤϰ֤ξǤ礦>
	% Msg5_3 <The clues lead to \NARRATIVE 2 . That's where you should go.>
	Msg5_3 <꤬ \NARRATIVE 2 򼨤ƤޤʤԤ٤ϤǤ>
	CMsg5_3 <ifG 0 NPCRep E2 3 Accept>

	%  6 :  The next clue has been discovered! Yay!
	% Msg6 <The lab reports are in. We're one step closer to shutting down the drug ring.>
	Msg6 <Ĵ𤬽Фޤ桹ϥɥå̩佸ĤŹޤΤ˰Ťޤ>
	% Msg6_1 <I've got the latest forensics report in the "Pump Pusher" case. Want to hear what we've found out?>
	Msg6_1 <֥ѥ̩ġ׻κǿĴϤޤ桹ʬäȤʹǤ>

	%  07 :  PC must wait for the lab report.
	% Msg7 <We're still waiting on the lab report. I'll let you know when I learn something.>
	Msg7 <ޤĴԤäƤȤǤʬä餪Τ餻ޤ礦>
	% Msg7_1 <Forensics is still working on the evidence.>
	Msg7_1 <ĴɤޤڵĴ٤ƤȤǤ>

	%  01 :  PC is interested in taking the case.
	% Prompt1 <Where should I start investigating?>
	Prompt1 <ɤĴϤФ>
	% Prompt1_2 <Any clue where to start looking?>
	Prompt1_2 <ĴϤ٤򼨤꤬Ϥ롩>

	%  02 :  PC won't take the case.
	% Prompt2 <Sorry, this isn't my kind of case.>
	Prompt2 <%JF褦ʻ露ʤ>
	% Prompt2_1 <I don't believe in criminalizing drugs.>
	Prompt2_1 <ɥåˡȤΤϴְ㤤衣>

	%  03 :  Next clue has been discovered.
	% Prompt3 <What did you find out?>
	Prompt3 <ʬä>
	% Prompt3_1 <Tell me what was in the report.>
	Prompt3_1 <Ƥ򶵤Ƥ졣>
	% Prompt3_2 <Where should I head next?>
	Prompt3_2 <ϤɤظФ>



	Plot 1
	% This plot exists only to tell the PC that the time is up.
	% start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 Email 1>
	Init_Start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 SetNPC E2 Email 1>
	start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 SetNPC E2 Email 1>
	GoCheckTime <ifG ComTime V1 AdvancePlot 0>
	% Msg1 <\ELEMENT 2 @ \SCENE EScene 2 :// The kingpin of the "Pump Pushers" has fled the area. The case has been closed.>
	Msg1 <\ELEMENT 2 @ \SCENE EScene 2 :// ֥ѥ̩ġפ濴ʪϰ褫ƨ褦ǤܺǤڤޤ>
	% Msg1_1 <\ELEMENT 2 @ \SCENE EScene 2 :// The "Pump Pusher" gang has gotten out of town. Hopefully they won't be back.>
	Msg1_1 <\ELEMENT 2 @ \SCENE EScene 2 :// ֥ѥ̩ġפĮФƹԤޤ֤⤦äƤʤǤ礦>
	% Msg1_2 <\ELEMENT 2 @ \SCENE EScene 2 :// Case closed.>
	Msg1_2 <\ELEMENT 2 @ \SCENE EScene 2 :// ܺϽλޤ>
	CMsg1_2 <ifG 0 NPCRep E2 3 Accept>
	sub
		Persona 2
		greeting <NewChat Say 1 AdvancePlot 0>
		% Msg1 <We caught a lot of the dealers, but the dealers got away. We'll have to try harder next time.>
		Msg1 <桹¿̩ͤ館ޤĤ̩ͤˤƨƤޤޤϤäȴĥʤС>
		% Msg1_1 <I guess we were getting close to their boss, and the "Pump Pushers" fled town. They won't see justice but at least they're gone.>
		Msg1_1 <桹̩ȼԤ濴ʪ˶ŤƤȤϻפΤǤ֥ѥ̩ġפĮƨƤޤȽˤ뤳ȤϤǤޤǤʤȤϵޤ>
	end

	Plot 2
	% This plot exists to reward the PC for solving the case.
	% start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 Email 1>
	Init_Start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 SetNPC E2 Email 1>
	start <if= V1 0 else GoCheckTime V= 1 ComTime V+ 1 86400 SetNPC E2 Email 1>
	GoCheckTime <ifG ComTime V1 AdvancePlot 0>
	% Msg1 <\ELEMENT 2 @ \SCENE EScene 2 :// The "Pump Pushers" have been locked away. Come see me.>
	Msg1 <\ELEMENT 2 @ \SCENE EScene 2 :// ֥ѥ̩ġפ館ޤ˲񤤤Ƥ>
	% Msg1_1 <\ELEMENT 2 @ \SCENE EScene 2 :// The drug ring has been broken. Come here for your reward.>
	Msg1_1 <\ELEMENT 2 @ \SCENE EScene 2 :// ɥå̩佸ĤϲǤޤ󽷤Ƥ>
	% Msg1_2 <\ELEMENT 2 @ \SCENE EScene 2 :// Case closed.>
	Msg1_2 <\ELEMENT 2 @ \SCENE EScene 2 :// ܺϽλޤ>
	CMsg1_2 <ifG 0 NPCRep E2 3 Accept>
	sub
		Persona 2
		greeting <NewChat Say 1 CashPrize Reward Threat PCRep 6 100 500 XPV 100 FacXP+ E1 5 AdvancePlot 0>
		% Msg1 <We did it! The lab has been shut down, and there'll be no more "Pump" on our streets. Now all we have to worry about are all those other illegal drugs...>
		Msg1 <ޤ͡ ¤ĺ졢ʾ峹ˡ֥ѥספв뤳ȤϤޤ󡣺桹ˤ٤Ȥ͡¾ΰˡɥåǤġ>
		% Msg1_1 <You really handled this investigation well. I'll be mentioning you to the brass for a promotion. Here's your reward.>
		Msg1_1 <ʤϤĴ¤ˤޤ¹ԤƤޤⴱˤʤ򾺿ʤ褦äƤޤ礦餬󽷤Ǥ>
		CMsg1_1 <if= PCFac E1 Accept>
		% Msg1_2 <The drug pushers have been sent up the river. You did a fine job, \RANK .>
		Msg1_2 <ɥå̩ȼԤϷ̳ޤʤϤ褯äƤޤ͡ \RANK >
		CMsg1_2 <if= PCFac E1 Accept>
		% Msg1_3 <Good job on the case. The pushers have been sent to jail, where they belong. Here's your reward.>
		Msg1_3 <ܺǤϤ褯äƤޤ̩͡ȼԤϴɳη̳ޤ餬󽷤Ǥ>
	end

end
