SCene 0
% Meeting Path Scene

% This is an infinite dungeon. Once the specified level is reached,
% the NPC requested will be inserted on TEAM 3. Unlike the meeting
% dungeon the NPC here won't walk towards the PC or do anything else
% civilized like that.

% V1 = *Persona to insert
% V2 = *Depth at which to insert
% V3 = *Current Depth
% V5 =  Initialization Counter

	special <NoExit>
	NU1 <if= T1 0 Return>
	MountainMap

	start <if= V5 0 V= 5 1 MonsterUp 2 WMThreat V3>

sub
	Team 1
	SetEnemy 2

	Team 2
	SetEnemy 1
	type <Mountain Earth Air Animal Exotic>

	Team 3
	home <Down SPot>

	rect
	width 3
	height 3
	sub
		Sign
		Destination -1
		use <ifYesNo 1 2 3 Return>
		% Msg1 <This sign points the way back to civilization. Do you want to leave?>
		Msg1 <この標識は町への道を示している。ここを出るか？>
		% Msg2 <Go back to town.>
		Msg2 <町へ戻る。>
		% Msg3 <Stay here.>
		Msg3 <留まる。>
	end

	rect
	width 3
	height 3
	% name <Down SPot>
	name_org <Down SPot>
	name <標識の近辺>
	sub
		Sign
		% use <ifYesNo 1 2 3 Print 4 L+ 3 10 L+ 3 d10 LoadD .sitename PassVar 1 L1 PassVar 2 L2 PassVar 3 L3 SeekGate -1 ifG L3 L2 DynaNPC L1 3>
		use <ifYesNo 1 2 3 Print 4 L+ 3 10 L+ 3 d10 LoadD .sitename PassVar 1 L1 PassVar 2 L2 PassVar 3 L3 SeekGate -1 if# L1 0 ifG L3 L2 ifPersona L1 DynaNPC L1 3>
		.sitename <SCENE_MeetingPath.txt>
		% update <if# L1 0 ifNPCinPlay L1 GrabSource DeleteGG>
		update <if# L1 0 ifPersona L1 else NPCWasLost ifNPCinPlay L1 GrabSource DeleteGG>
		NPCWasLost <GrabSource DeleteGG>
		% Msg1 <This sign indicates the continuation of the trail. Do you want to go on?>
		Msg1 <この標識は山道の続きを示している。行ってみるか？>
		% Msg1_1 <It seems to be a terminal of the trail. Do you want to go on?>
		Msg1_1 <ここで山道の終点らしい。先に行ってみるか？>
		CMsg1_1 <ifG L3 L2 Accept>
		% Msg2 <Keep going.>
		Msg2 <行く。>
		% Msg3 <Turn back.>
		Msg3 <やめておく。>
		% Msg4 <You follow the trail.>
		Msg4 <山道をたどった。>
	end

end
