Scene 0
% The bomb shelter
CityMap
Param <Fill 14 0 Wall 23>
Special <NoExit>

	% V1 = Initialization Counter
	% V2 = Set V2=1 if you want the introductory text fron NPC -1
	% V101 = ID of final enemy

	nu1 <if= T1 0 Exit 1>

	Start <if# V2 0 if= V1 0 V= 1 1 ForceChat -1>

sub
	Team 1

	Team 2
	SetAlly 1

	rect
	name <WayUp>
	width 5
	height 5
	FloorType 14
	sub
		StairsUp
		Destination -1
		use <ifYesNo 101 102 103 Goto GoUse>
		GoUse <Print 1 LoadD .UpScene SeekGate -1 PassVar 101 L101>
		.UpScene <TS_XRAN_SCENE_GetMecha.txt>
		Msg101 <Are you certain that you want to go up the stairs now? You will not be able to return.>
		Msg102 <I'm ready to go.>
		Msg103 <I'll stay here.>

	end

	room 5 5
	sub
		StairsDown
		Destination 1
		use <ifYesNo 101 102 103 Goto GoUse>
		GoUse <Print 1 LoadD .DownScene SeekGate -1 PassVar 101 L101 PassVar 2 45 PassVar 3 5 PassVar 4 7>
		.DownScene <TS_XRAN_SCENE_BigDefDungeon.txt>
		Msg101 <Are you certain that you want to go up the stairs now? You will not be able to return.>
		Msg102 <I'm ready to go.>
		Msg103 <I'll stay here.>
	end

	Persona -1
	greeting <NewChat if= L2 0 else GoIntro SayAnything>
	GoIntro <L= 2 0 Say 1 AddChat 1 AddChat 2>
	result1 <NewChat Reputation 3  d10 Say 2 AddChat 3 AddChat 4>
	result2 <NewChat Reputation 3 -d10 Say 3 AddChat 3 AddChat 4>
	result3 <NewChat Say 4 AddChat 5 AddChat 6>
	result4 <NewChat Say 5 AddChat 5 AddChat 6>
	result5 <NewChat Say 6 if= V1 0 AddChat 6 V= 1 1>
	result6 <NewChat Say 7 if= V1 0 AddChat 5 V= 1 1>
	Msg1 <It's a good thing you reached the shelter in time... we're about to seal the door. I heard that someone named \PERSONA L101 is invading the city. The defense force has already been defeated... City hall has probably fallen as well.>
	Msg2 <If the city actually has fallen to \PERSONA L101 , we may be in trouble... Hopefully they'll treat us well, but from what I've heard I wouldn't count on it... We're surrounded by mecha. There's no way out of here at all.>
	Msg3 <Why, so you can get away from here? I wouldn't do that. This shelter is the safest place to be, for now... that may change once we're discovered by the invaders, though... They said the city is surrouned. There's absolutely no way out.>
	Msg4 <Go in? I see... Behead the dragon to slay the beast. But, they've already defeated the defense force; I hear that \PERSONA L101 is unbeatable in combat! What chance do you have to fight them alone?>
	Msg5 <First you'd have to reach \PERSONA L101 , and that's no easy matter. I've heard that the invaders released Hunter-Killers into the city. It's far too dangerous to go back out there.>
	Msg6 <There's a bunker just outside of this shelter. Maybe if the invaders captured your mecha, they would have brought it there for storage. You could go out again, but we're going to lock the door and you wouldn't be able to come back in.>
	Msg7 <I've heard that under this shelter is a cave. It might lead you to the sewers, and from there to city hall, but it's infested with monsters.>
	Prompt1 <So what do we do now?>
	Prompt2 <I need to get out of this shelter.>
	Prompt3 <If I can't get out, I'll have to go in!>
	Prompt4 <I just want to fight \PERSONA L101 .>
	Prompt5 <I need to get my mecha...>
	Prompt6 <Is there any other way to reach City Hall?>

	Persona -2
	greeting <NewChat Say d3 AddChat 1>
	result1 <EndChat Say 4 Shop .wares Say 5>
	.wares <17>
	Msg1 <Are you injured? I'm a doctor, I can help.>
	Msg2 <If you're hurt, I should take a look at you.>
	Msg3 <How are you feeling? Did you get injured in the explosion?>
	Msg4 <Fortunately this shelter is very well stocked, so we have enough medicene to treat all the wounded.>
	Msg5 <Good luck!>
	Prompt1 <I need medical aid.>

	Persona -3
	greeting <NewChat Say d3 AddChat 1>
	result1 <EndChat Say 4 Shop .wares Say 5>
	.wares <4 5 10 11 14>
	Msg1 <I heard you were planning to go back out there. I've got a shop in town, I have a few supplies here, if there's anything you need...>
	Msg2 <Someone said that you were going to fight \PERSONA L101 . I have a shop in town, I brought a few things with me if there's anything you need...>
	Msg3 <I didn't want to be robbed during the evacuation, so I grabbed some of the stuff from my store and brought it with me. Say, you wouldn't need to do any shopping while you're here, would you?>
	Msg4 <Take a look. It's not much, but hopefully it'll be enough.>
	Msg5 <Good luck.>
	Prompt1 <Let me see what you have.>


end
inv
	NPC Citizen
	home <WayUp>
	SetPersona -1
	SetTeam 2

	NPC Doctor
	SetPersona -2
	SetTeam 2

	NPC Shopkeeper
	SetPersona -3
	SetTeam 2

	NPC Citizen
	SetTeam 2
	SetPersona -4

	NPC Citizen
	SetTeam 2
	SetPersona -5

	NPC Citizen
	SetTeam 2
	SetPersona -6

	NPC Citizen
	SetTeam 2
	SetPersona -7

	NPC Citizen
	SetTeam 2
	SetPersona -8

	NPC Citizen
	SetTeam 2
	SetPersona -9

	NPC Citizen
	SetTeam 2
	SetPersona -10

	NPC Citizen
	SetTeam 2
	SetPersona -11

	NPC Citizen
	SetTeam 2
	SetPersona -12

end

