% Federated Territories Campaign  "Second Empire"
% Remember, if you don't want spoilers, don't read this file...
% but if you do want spoilers, come on in!
Adventure

% GLOBAL VARIABLES
%  2 -> Hogye Mine
% 21 -> Mecha Sporch Rank
% 22 -> Warhammer Arena Rank
% 23 -> Colosseum Rank
% 24 -> Robot Warriors Rank

% V1000 - V1999 -> Reserved for use by Entry_* stories

% Set the item key just to protect the standard key items.
SetKeyItem 100

sub

Scene 2 0
	name <Hogye>
	type <Target Town Village>
	wildmap
	SetFaction 11

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% 1 -> Message first time entering town
	% 10 -> First time opening locked mine door
	% 101 -> Use SURVIVAL
	% 102 -> Use SCIENCE
	% 103 -> Use MYSTICISM

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	START <if= V1 0 else GoSecondTime V= 1 1>
	GoSecondTime <Print 2>
	MSG2 <You enter Hogye.>
	rumor <Hogye used to be an important mining town, until the ore dried up and the raiders moved in.>

	CLUE14 <Print 101 V= 101 1>
	CLUE29 <Print 102 if= V102 0 Reputation 7 d3 V= 102 1>
	CLUE34 <Print 103 if= V103 0 Reputation 7 -d3 V= 103 1>
	Msg101 <The ground in this village seems quite rich. A person would have no trouble farming here.>
	Msg102 <Natural signs indicate that there may be rich mineral deposits in this area.>
	Msg103 <There is a sense of peace in this community. You feel that it has a good aura.>

	sub
		% Sub components. Add teams & stuff here.

		rect
		width 30
		height 30
		name <Town Center>
		special <ShowAll>
		sub
			rect
			name <Entry Grid>
			special <StartHere>
			width 5
			height 5
			sub
				% This is a hidden exit to the world map!
				% Why include it? So that when entering from the world map,
				% the PC will always appear at this same point.
				StairsDown
				Destination 1
				stat 5 1
			end

			room 7 5
			name <Hogye Clinic>
			BorderType 18

			room 6 6
			name <Ki Rin MegaMart>
			FloorType 14
			BorderType 27
			rumor <KiRin MegaMart is the best place to buy things around here.>

			room 5 7
			name <Mecha Sporch>
			FloorType 26
			BorderType 27

			room 5 5
			name <Mayor's House>
			FloorType 25
			BorderType 23

			room 3 3
			name <Bus Terminal>
			BorderType 27

			room 3 3
			FloorType 16
			BorderType 27
		end

		team 1
		% Player team

		room 5 5
		name <Hogye Mine>
		rumor <when the mine closed a lot of heavy machinery got left behind.>
		FloorType 26
		BorderType 15
		sub
			StairsDown
			destination 3

			door
			USE <ifG -99 MetaPass else GoCloseDoor  if= L10 0 else GoBeenBefore ifYesNo 3 4 5 else GoBeenBefore Print 6>
			GoBeenBefore <L= 10 1  Print 1  SetStat STAT_Pass 0  Transform 1>
			GoCloseDoor <Print 2 SetStat STAT_Pass -100  Transform 2>
			NPCOpenDoor <SetStat STAT_Pass 0  Transform 2>
			roguechar <+>
			roguechar1 <->
			roguechar2 <+>
			Msg1 <You open the door.>
			Msg2 <You close the door.>
			Msg3 <A sign has been posted to this door. "DANGER! KEEP OUT!">
			Msg4 <Leave this door alone.>
			Msg5 <Open it anyways.>
			Msg6 <That was probably a wise decision.>
		end

		team 2
		% Town Citizens
		SetAlly 1 3
		% Set this team's default orders to PASSIVE
		Stat 1 3
		SDL_COLORS <88 113 86 255 212 195 150 112 89>
		home <Town Center>

		team 3
		% Town Militia
		SetAlly 1 2
		rumor <the mines were closed because of all the dangerous creatures which live there.>
		SDL_COLORS <88 113 86 255 212 195 150 112 89>
		home <Town Center>

		% ******************************
		% ***  PERSONA  DEFINITIONS  ***
		% ******************************
		Persona 1
		% Professor HyoLee
		% Var 1 -> Journal Quest Status
		greeting <NewChat ifG React 25 else GoMediumReact if= V1 0 else GoAfterJournal V= 1 1 Say 2 StoryLine .JournalArc>
		goMediumReact <ifG React 3 else GoLowReact Say 1>
		goLowReact <SayAnything>
		.JournalArc <ARC_TS_Hyolee.txt>
		GoAfterJournal <Say 3  AddChat 1>
		result1 <EndChat Say 4  School SkillList  Say 5>
		SkillList <22 29 15 16 24>
		msg1 <I can't talk right now. I'm working on a new model of genome reconstruction. I hope to have some results worth publishing soon.>
		msg2 <Hello. I seem to remember having forgotten something, but I can't remember what it was...>
		msg3 <I've been entering the journal data into my computer.>
		msg4 <Sure, I can show you a few things. It might be a bit advanced, though... I hope you can keep up.>
		msg5 <There. Now wasn't that easier than we thought it was going to be?>
		Prompt1 <Can you explain your research?>

		Persona 2
		% Nurse
		greeting <NewChat Say 1>
		msg1 <Welcome to the grounds of \SCENE 2 Hospital. I'm sure \PERSONA 3 is around here someplace.>

		Persona 3
		% Doctor
		greeting <NewChat Say 1 AddChat 1 AddChat 2>
		result1 <Say 2 Shop Wares EndChat Say 4>
		result2 <Say 3 NewChat AddChat 3>
		result3 <Say 5 Shop NoWares EndChat Say 4>
		prompt1 <I'm in a lot of pain...>
		prompt2 <No problem, doctor.>
		prompt3 <Actually, I think I may have a cold.>
		Msg1 <Hello there. What seems to be the problem today?>
		Msg2 <Let me take a look at you.>
		Msg3 <Really? That's a shame... healthy patients are bad for business...>
		Msg4 <Remember, don't lift any heavy objects until those stitches come out...>
		Msg5 <Well why didn't you say so? Come on, I'll have you patched up in no time!>

		Persona 4
		% Shopkeeper
		greeting <NewChat Say 1 AddChat 1 AddChat 2 AddChat 3>
		result1 <Say 2 NewChat AddChat 2 AddChat 3>
		result2 <Say 4 Shop Wares EndChat Say 3>
		result3 <Say 5 NewChat AddChat 2 AddChat 4 AddChat 5 AddChat 6 AddChat 7 AddChat 8 AddChat 9 AddChat 10 AddChat 12 AddChat 13 ifG 2 SkRoll 29 AddChat 11>
		result4 <Say 6>
		result5 <Say 7>
		result6 <Say 8>
		result7 <Say 9>
		result8 <Say 10>
		result9 <Say 11>
		result10 <Say 12>
		result11 <Say 13>
		result12 <Say 15>
		result13 <Say 16>
		Wares <4 5 10 11 14 17 MECHA>
		prompt1 <What shop? This is just an empty room!>
		prompt2 <Let me see what you've got.>
		prompt3 <Maybe you can explain some things.>
		prompt4 <What does "DC" mean?>
		prompt5 <What does "DP" mean?>
		prompt6 <What does "ACC" mean?>
		prompt7 <What does "RNG" mean?>
		prompt8 <What does "SPD" mean?>
		prompt9 <What does "BV" mean?>
		prompt10 <What is "10/10a"?>
		prompt11 <What is "$", and what's that number for?>
		prompt12 <What does "AC" mean?>
		prompt13 <What does "SF" mean?>
		MSG1 <Welcome to my shop. It's not particularly impressive, I know, but I think you'll be pleased with our selection.>
		MSG2 <Look, I already told you it isn't very impressive! I'm gonna spruce it up once I've decided on a paint scheme! You wanna see what I've got or not?>
		MSG3 <Come back once you've earned some more money, okay?>
		MSG4 <Take a look around, let me know if you see anything you like.>
		MSG5 <It would be my pleasure. Its hard to be a smart consumer when you don't know what you're buying, and modern technology can be very confusing on times. What do you want to know about?>
		MSG6 <DC means Damage Class. The higher it is, the more damage a weapon will do. There are other things to consider when buying a weapon but for most people DC is the most important factor.>
		MSG7 <DP means Damage Points. It's a measure of how much punishment an object can take before it breaks down. If DP is preceded by a number in brackets, that's the armor rating of this item.>
		MSG8 <ACC refers to the accuracy of a weapon. A positive value means that you will hit more often. A negative value means you'll hit less often. Many weapons have ACC:0, meaning that they neither aid nor hinder your natural skill.>
		MSG9 <RNG refers to the range of a weapon. There are three range bands. It is easiest to hit a target at short range, slightly more difficult to hit at medium range, and much more difficult at long range.>
		MSG10 <SPD is short for speed. It measures the recharge time of a weapon. This is usually only important for fighters who have good initiative, since there's no point in having your weapon recharge faster than you are able to fire it.>
		MSG11 <BV is short for Burst Value. Some weapons can fire a large number of shots in a single action. If you use burst fire you are more likely to hit and will probably do better damage, but you'll also run out of ammunition much sooner.>
		MSG12 <This is the weapon's ammunition counter. The first value is the number of rounds currently in the magazine; the second value is the maximum number of rounds that the weapon can hold.>
		MSG13 <*sigh* You really don't get out much, do you? "$" means money. You can exchange money for goods and services. The number is how many pieces of money you need for the transaction. Understand now? Well, try not to think too hard.>
		MSG15 <AC means Armor Class. The higher your AC value, the less damage you'll take when struck by an attack.>
		MSG16 <SF means Scale Factor. Meks can have low-scale weapons installed for dealing with small enemies. There's a penalty for shooting at something smaller than yourself, so an antipersonnel weapon can be a good thing to have.>

		Persona 5
		% Mecha Sporch manager
		% V1 = Arena Registration / Current Fight PV
		% V2 = Recharge Time for battle.
		% V3 = Competition Rank
		greeting <NewChat ifG G21 V3 else GoOldGreet V= 3 G21 V+ 1 d3 CashPrize Reward Threat V1 100 250 if= V3 10 else GoSayReward Say 11 G+ 21 1 V+ 3 1 MechaPrize .MSPrize Reputation 6 3 History 13>
		.MSPrize <BuruBuru.txt>
		GoSayReward <Say 12>
		GoOldGreet <Say 1 if= V1 0 else GoAlreadyRegistered AddChat 1 AddChat 2>
		goAlreadyRegistered <ifG ComTime V2 else GoNotReady AddChat 1 AddChat 5>
		goNotReady <Say 10>
		result1 <NewChat Say 2>
		result2 <NewChat Say 3 AddChat 3 AddChat 4 V= 1 5>
		result3 <NewChat ifG PCMEKS 0 else goLiedAboutMecha Say 4 AddChat 5 AddChat 6>
		goLiedAboutMecha <Reputation 2 -1 Say 5>
		result4 <NewChat Say 9 StoryLine GoVikki>
		GoVikki <ARC_TS_VikkisTest.txt>
		result5 <ifG PCMEKS 0 else goNoMeks EndChat Say 8 SavePos Dynamic 2 Threat V1 75 FrzNU1 FrzNU2 V= 2 ComTime V+ 2 65000 SetMapType ArenaMap>
		FrzNU1 <if= T1 0 Return if= V1 0 V= 1 1 Reputation 6 -5>
		FrzNU2 <if= T2 0 Return if= V1 0 V= 1 1 G+ 21 1 Reputation 6 1>
		goNoMeks <NewChat Say 7>
		result6 <NewChat Say 6>
		Msg1 <Welcome to Mecha Sporch, where armored titans compete for prizes and glory! Are you interested in watching the games, or did you think you might take part?>
		Msg2 <Mecha Sporch can be seen on TV five nights a week. Check your local listings for time and channel.>
		Msg3 <Great! We're always on the lookout for fresh talent. First of all the most important question: do you already own a mecha?>
		Msg4 <That's good. We've got a fight ready to go right now... if you win, come see me for the prize money. You interested?>
		Msg5 <Bring your mecha to the arena, and we'll talk about getting you into your first battle.>
		Msg6 <Too bad. Well, come back when you feel like testing your mettle again.>
		Msg7 <I'm sorry, but it seems as though you don't currently have a mecha to pilot... Can't take part in the games without one.>
		Msg8 <Excellent... get yer battle-bot ready, it's time for some extreme destruction!>
		Msg9 <We could loan you one of the house meks, but I better warn you they're not in very good shape. Ask Vikki about that.>
		Msg10 <The next battle won't be taking place until tomorrow. Go get some rest, and fix up your machine.>
		Msg11 <Congratulations! You've won your tenth battle, making you one of our grand champions! In recognition of your efforts, I am proud to present you with this brand new BuruBuru mecha!>
		Msg12 <You did well out there. Here's the prize money you earned for winning the fight. Come back tomorrow for another round, okay?>
		Msg13 <You were crowned Mecha Sporch arena champion.>
		prompt1 <I'm just here to watch.>
		prompt2 <Tell me more about taking part...>
		prompt3 <Yes I do.>
		prompt4 <Nope. Got any loaners?>
		prompt5 <I'm ready to fight.>
		prompt6 <Maybe some other time.>

		Persona 6
		% Vikki the mecha gladiator
		greeting <NewChat ifG 0 PCRep 6 else GoNoWangtta if= V1 0 else GoNoWangtta Say 2 AddChat 2>
		GoNoWangtta <Say 1 ifG G21 0 AddChat 1>
		result1 <NewChat if= G21 1 else GoMultipleWins Say 7>
		GoMultipleWins <ifG G21 10 else GoStillWorking Say 8>
		GoStillWorking <Say 9>
		result2 <NewChat V= 2 1 AddReact 10 Say 3 AddChat 3 AddChat 4 AddChat 5>
		result3 <NewChat Say 4 AddChat 4 AddChat 5>
		result4 <NewChat Say 5 AddChat 3 AddChat 5>
		result5 <NewChat Say 6 Reputation 6 1>
		Msg1 <Hi.>
		Msg2 <Hi. You're looking a bit down today.>
		Msg3 <"Wangtta" means loser, outcast, reject... I guess you've done something to pick up that reputation.>
		Msg4 <That's a tough question. Find something you can succeed at, and do that. Only success can wash off the smell of failure that's lingering over you.>
		Msg5 <Usually you get the reputation by failing to complete missions, losing in the arena, that sort of thing. You can also become wangtta just by acting stupid in public.>
		Msg6 <Good attitude to have... But if you do care what other people thing, you'll work to get rid of your bad reputation before it sticks.>
		Msg7 <You've won your first fight at the arena. Congratulations! I hope to do that too, some day...>
		Msg8 <You have won ten battles in the arena and are now one of our reigning champions. Congratulations!>
		Msg9 <You have won \VAL G21 battles in the arena. If you can win ten, you'll get a special prize.>
		prompt1 <How's my arena score?>
		Prompt2 <Why do people say I'm "wangtta"?>
		Prompt3 <How can I change my reputation?>
		Prompt4 <How did I get this reputation?>
		Prompt5 <I don't care what others think.>


		Persona 201
		% Hogye Bus Terminal
		greeting <NewChat Say 1 AddChat 1>
		result1 <NewChat Say 2 AddChat 2 ifG PC$ 49 AddChat 3>
		result2 <NewChat Say 4>
		result3 <EndChat Say 3 Time 1800 Cash+ -50 Exit 1 SeekGate 10>
		Msg1 <This is Hogye Bus Terminal. From here you can take a bus to Snake Lake, and from there you can get buses to most cities.>
		Msg2 <The ride from here to Snake Lake is about a half hour, and costs $50. Do you want to go?>
		Msg3 <Here's your ticket. The bus will drop you off on the outskirts of Snake Lake; from there it's a short walk to downtown.>
		Msg4 <If you have a vehicle of your own, it's just a short trip.>
		Prompt1 <I'd like to go to Snake Lake.>
		Prompt2 <No thanks.>
		Prompt3 <I'll have one ticket, please.>

	end
	inv

		% Inv components. Add NPCs & contents here.
		NPC Scientist
		name <Hyolee>
		home <Entry Grid>
		SetTeam 2
		SetPersona 1
		stat 8 15
		chardesc Female Heroic Cheerful
		rumor <Hyolee is always working on something or another.>

		NPC Shopkeeper
		name <Quentin>
		rumor <Quentin is very helpful.>
		home <Ki Rin MegaMart>
		chardesc Male Easygoing Sociable Cheerful
		SetTeam 2
		SetPersona 4
		Skill 21 1
		Skill 15 5
		Stat 6 8
		Stat 7 14

		Prop 3
		name <Video Terminal>
		roguechar <&>
		home <Ki Rin MegaMart>
		use <ifYesNo 1 2 3 MoreMemo News>
		Msg1 <This is a video info terminal. Would you like to check the news to see what's happening in the world?>
		Msg2 <Yes I would.>
		Msg3 <No, not really.>

		NPC Doctor
		name <Doctor Kim>
		home <Hogye Clinic>
		SetTeam 2
		SetPersona 3

		NPC Nurse
		name <Nurse Park>
		home <Hogye Clinic>
		SetTeam 2
		SetPersona 2

		NPC Citizen
		home <Mecha Sporch>
		job <Arena Manager>
		chardesc Cheerful Passionate Renowned
		SetTeam 2
		SetPersona 5

		NPC Mecha Pilot
		name <Vikki>
		mecha <Thorshammer.txt>
		SDL_PORTRAIT <por_f_vikki.png>
		SDL_COLORS <201 205 229 255 212 195 245 213 160>
		rumor <Vikki is one of the unluckiest mecha pilots ever.>
		home <Mecha Sporch>
		chardesc Female Young Cheerful Shy Wangtta
		SetTeam 2
		SetPersona 6

		NPC Leader
		name <Megi>
		home <Mayor's House>
		rumor <Megi is well known for her wisdom and compassion.>
		chardesc Female Old Lawful Heroic Renowned
		SetTeam 2
		SetPersona 17

		NPC Citizen
		SetTeam 2
		SetPersona 7

		NPC Citizen
		SetTeam 2
		SetPersona 8

		NPC Citizen
		SetTeam 2
		SetPersona 9

		NPC Guardian
		SetTeam 3
		SetPersona 12

		NPC Shopkeeper
		SetTeam 2
		SetPersona 201
		job <Ticket vendor>
		home <Bus Terminal>
	end


Scene 1 5
	% V1 = d80 + Survival Roll
	% V2 = Encounter Value Percent
	% V3 = Encounter Modified Rep

	name <World Map>
	type <World>
	WildMap
	special <NoExit>
	NU1 <if= T1 0 Exit 1>
	start <if= G1 0  G= 1 1  G= 2 10>

	FloorType 17
	MarbleType 11
	GapFill <-5 -5 -5 -9 -13 -13>


	% Check for random encounters on the world map.
	TM1 <IfG d100 97 V= 1 d50 V+ 1 SkRoll 14  ifG V1 70 else GoConvoy  ifNoObjections ENC 3 ifYesNo 51 52 53  ifG d4 1 else GoRaiders  Say 55  CashPrize 25000>
	Msg51 <Sensors indicate a large deposit of metal somewhere nearby.>
	Msg52 <Investigate the matter.>
	Msg53 <Leave it alone.>
	Msg55 <You discover a sizable chunk of valuable ore!>

	GoConvoy <ifG V1 55 else GoCheckRaiders  ifNoObjections ENC 2  ifYesNo 21 22 23  SavePos  Staged .convoy Threat PCRep 6 85>
	.convoy <TS_Scene_Convoy*.txt>
	Msg21 <In the distance you can see a convoy of trucks protected by several mecha.>
	Msg22 <Approach the convoy.>
	Msg23 <Leave them alone.>

	GoCheckRaiders <ifNoObjections ENC 1 ifG V1 40 else GoRaiders  ifYesNo 31 32 33  Goto GoRealRaiders>
	GoRaiders <ifG PCScale 0 else GoSmallAttack print 1 Goto GoRealRaiders>
	GoRealRaiders <SavePos V= 2 10 V+ 2 d65 V= 3 PCRep 6 V+ 3 -d15 Dynamic 2 Threat V3 V2 FrzNU1 FrzNU2 Encounter 3 1 .encdata>
	Msg1 <You are attacked by raiders!>
	Msg31 <You spot a group of well armed mecha in the distance. They appear to be raiders.>
	Msg32 <Approach them.>
	Msg33 <Leave them alone.>
	FrzNU1 <if= T1 0 Exit 1  ifG T2 d6 Reputation 6 -1>
	FrzNU2 <if= T2 0 Salvage>
	.encdata <ArchEnemy +PCRA +ECRA>

	GoSmallAttack <Print 41  SavePos  MDynamic 0 d30 .monstertype FrzMU1 FrzMU2>
	Msg41 <You are attacked by monsters!>
	.monstertype <Animal Plains Forest>
	FrzMU1 <if= T1 0 Exit 1>
	FrzMU2 <if= T2 0>

	sub

		rect
		Height 40
		Width 40
		MarbleType 17
		gapfill <-4 -5 -9 -4 -5 -4 -13>
		sub

		rect
		Height 25
		Width 25
		gapfill <-4 -5 -9 -4 -5 -4 -4>
		sub
			rect
			Height 13
			width 15
			sub
				Lake
				Height 5
				Width 7

				rect
				Height 2
				Width 2
				FloorType 1
				sub
					Village
					name <Hogye Village>
					Destination 2
				end

				rect
				Height 2
				Width 2
				FloorType 1
				sub
					City
					name <Snake Lake City>
					Destination 10
				end
			end

			rect
			Height 1
			Width 1
			FloorType 1
			sub
				Town
				name <Gyori Village>
				destination 11
			end

			rect
			Height 1
			Width 1
			FloorType 1
			sub

				City
				name <Wujung City>
				Destination 17
			end

			rect
			Height 1
			Width 1
			FloorType 1
			sub
				Town
				name <Ipshil Village>
				Destination 13
			end

			rect
			Height 1
			Width 1
			FloorType 1
			sub
				City
				name <Namok City>
				Destination 16
			end

			rect
			Height 3
			Width 3
			FloorType 8
			sub
				Cave
				name <A dark cave>
				Destination 9
			end
		end

		rect
		Height 1
		Width 1
		FloorType 1
		sub
			Village
			name <Kist Village>
			Destination 14
		end

		rect
		Height 1
		Width 1
		FloorType 1
		sub
			Temple
			name <Hwang-Sa Temple>
			Destination 15
		end

		end
		% End of Dead-Zone border

	end

Scene 3 0
	name <Hogye Mines L1>
	special <NoExit>
	Type <Dungeon Mine Open>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter Hogye Mines, level one.>
	CaveMap
	BorderType 31

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 2
		end

		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 4
		end

		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Cave Earth Animal>
		setenemy 1
		stat 2 3
	end

Scene 4 0
	name <Hogye Mines L2>
	Type <Dungeon Mine Open>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter Hogye Mines, level two.>

	CaveMap
	BorderType 31

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 3
		end

		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 5
		end

		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Cave Earth Animal>
		setenemy 1
		stat 2 4
	end

Scene 5 0
	name <Hogye Mines L3>
	Type <Dungeon Mine Open>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter Hogye Mines, level three.>

	CaveMap
	BorderType 31

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 4
		end

		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 6
		end

		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Cave Earth Animal>
		setenemy 1
		stat 2 5
	end
	inv
		gear 4 0 5
		name <Pick>
		scale 0
		mass 2
		stat 3 1
	end

Scene 6 0
	name <Hogye Mines L4>
	Type <Dungeon Mine Open>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter Hogye Mines, level four.>

	CaveMap
	BorderType 31

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 5
		end

		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 7
		end

		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Cave Earth Animal>
		setenemy 1
		stat 2 7
	end
	inv
		gear 4 0 5
		name <Pick>
		scale 0
		mass 2
		stat 3 1

		gear 4 0 5
		name <Pick>
		scale 0
		mass 2
		stat 3 1

		gear 4 1 19
		name <Laser Drill>
		scale 0
		stat 2 -2
		stat 3 1

		rubble 10
		Clue29 <if= G2 0 else GoAlreadyKnow ifG ComTime V1 else GoNoFind Reputation 7 1 V= 1 ComTime V+ 1 172800 V+ 1 d172800 ifG SkRoll 29 15 else GoNoFind StartStory .orestory else GoNoFind G= 2 1 Print 3 XPV 150>
		.orestory <TS_Story_HogyeMine.txt>
		GoNoFind <Print 2>
		GoAlreadyKnow <Print 4>
		Msg3 <These rocks appear to contain Impervium ore. This metal wasn't usable when the mine was closed many years ago, but advances in technology have made it quite valuable. Maybe you should tell someone about this discovery.>
		Msg4 <These rocks contain valuable ore! Still, they are in the way...>

		rubble 10
		Clue29 <if= G2 0 else GoAlreadyKnow ifG ComTime V1 else GoNoFind Reputation 7 1 V= 1 ComTime V+ 1 172800 V+ 1 d172800 ifG SkRoll 29 15 else GoNoFind StartStory .orestory else GoNoFind G= 2 1 Print 3 XPV 150>
		.orestory <TS_Story_HogyeMine.txt>
		GoNoFind <Print 2>
		GoAlreadyKnow <Print 4>
		Msg3 <These rocks appear to contain Impervium ore. This metal wasn't usable when the mine was closed many years ago, but advances in technology have made it quite valuable. Maybe you should tell someone about this discovery.>
		Msg4 <These rocks contain valuable ore! Still, they are in the way...>
	end

Scene 7 0
	name <Hogye Mines L5>
	Type <Dungeon Mine Open>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 3>
	Msg3 <You enter Hogye Mines, level five.>

	CaveMap
	BorderType 31

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 6
		end

		Rect
		Width 3
		Height 3
		sub
			Elevator
			use <if= V1 0 else GoUseElevator V= 1 1 MechaPrize LoadThisMecha Print 1 XPV 100 Exit 1 SeekGate 2>
			LoadThisMecha <Wolfram.txt>
			GoUseElevator <Print 2 Exit 1 SeekGate 2>
			Msg1 <You find an old cargo elevator, and an abandoned mining robot inside... Hey! Someone left the keys in the ignition!>
			Msg2 <You ride the cargo elevator back to the surface.>
		end


		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Cave Earth Animal>
		setenemy 1
		stat 2 9
	end
	inv
		gear 4 0 5
		name <Pick>
		scale 0
		mass 2
		stat 3 1

		rubble 10
		Clue29 <if= G2 0 else GoAlreadyKnow ifG ComTime V1 else GoNoFind Reputation 7 1 V= 1 ComTime V+ 1 172800 V+ 1 d172800 ifG SkRoll 29 15 else GoNoFind StartStory .orestory else GoNoFind G= 2 1 Print 3 XPV 150>
		.orestory <TS_Story_HogyeMine.txt>
		GoNoFind <Print 2>
		GoAlreadyKnow <Print 4>
		Msg3 <These rocks appear to contain Impervium ore. This metal wasn't usable when the mine was closed many years ago, but advances in technology have made it quite valuable. Maybe you should tell someone about this discovery.>
		Msg4 <These rocks contain valuable ore! Still, they are in the way...>

		rubble 10
		Clue29 <if= G2 0 else GoAlreadyKnow ifG ComTime V1 else GoNoFind Reputation 7 1 V= 1 ComTime V+ 1 172800 V+ 1 d172800 ifG SkRoll 29 15 else GoNoFind StartStory .orestory else GoNoFind G= 2 1 Print 3 XPV 150>
		.orestory <TS_Story_HogyeMine.txt>
		GoNoFind <Print 2>
		GoAlreadyKnow <Print 4>
		Msg3 <These rocks appear to contain Impervium ore. This metal wasn't usable when the mine was closed many years ago, but advances in technology have made it quite valuable. Maybe you should tell someone about this discovery.>
		Msg4 <These rocks contain valuable ore! Still, they are in the way...>

		rubble 10
		Clue29 <if= G2 0 else GoAlreadyKnow ifG ComTime V1 else GoNoFind Reputation 7 1 V= 1 ComTime V+ 1 172800 V+ 1 d172800 ifG SkRoll 29 15 else GoNoFind StartStory .orestory else GoNoFind G= 2 1 Print 3 XPV 150>
		.orestory <TS_Story_HogyeMine.txt>
		GoNoFind <Print 2>
		GoAlreadyKnow <Print 4>
		Msg3 <These rocks appear to contain Impervium ore. This metal wasn't usable when the mine was closed many years ago, but advances in technology have made it quite valuable. Maybe you should tell someone about this discovery.>
		Msg4 <These rocks contain valuable ore! Still, they are in the way...>
	end

scene 8 0
	name <Calmegie Research Station>
	NU1 <if= T1 0 Exit 1>
	Type <Dungeon Closed>
	start <print 1>
	msg1 <You have entered the Calmegie Genetic Research Station.>
	special <NoExit>

	WildMap

	CLUE14 <Print 101>
	Msg101 <This level is a man-made garden, fed by hydroponic nutrients and flourescent lights. Many of the plants here are completely unfamiliar to you.>

	sub
		room 7 7
		name <Lab>
		special <ShowAll>
		sub
			StairsUp
			Destination 9
		end

		rect
		Width 7
		Height 5
		name <Meadow>
		FloorType 1

		team 1
		setenemy 2

		team 2
		name <Dinosaurs>
		setenemy 1
		type <Forest Exotic Animal>
		stat 2 5

	end
	inv
		Prop 10
		name <Computer>
		home <Lab>
		roguechar <&>
		use <Print 1>
		Clue29 <Print 6 ifYesNo 2 3 4 else GoNoRead if= V1 0 else GoBeenBefore V= 1 1 Time 1700 Time d3600 Reputation 7 d8 ifG SkRoll 29 8 else GoNoSci Print 9 XPV 50>
		GoNoRead <Print 5>
		GoBeenBefore <Print 7>
		GoNoSci <Print 8>
		Msg1 <It's a computer.>
		Msg2 <Do you want to read the computer's research logs?>
		Msg3 <Definitely!>
		Msg4 <Sounds boring.>
		Msg5 <You shut down the computer.>
		Msg6 <You activate the computer.>
		Msg7 <It's all just the same stuff as you read before.>
		Msg8 <It's a lot of information about genomes and splicers and other things which you don't fully understand.>
		Msg9 <The logs tell of Hyolee's work cloning animals from fossilized DNA. She has made some exciting new advances in the field of gene sequencing.>
	end
Scene 9 0
	name <Dark Cave>
	Type <Dungeon Open>
	% V102 -> Use SCIENCE
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	Start <if= V1 0 V= 1 1 Print 1>
	Msg1 <You enter a small, dimly lit cave.>

	CaveMap

	CLUE14 <Print 101>
	CLUE29 <Print 101 if= V102 0 Reputation 7 d3 V= 102 1>
	Msg101 <This cave seems to be the inner core of an exitnct volcano.>


	sub
		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 8
		end

		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 1
		end

		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		setenemy 1
		type <Cave Exotic Mutant>
		stat 2 8
	end

Scene 10 0
	name <Downtown Snake Lake>
	type <City Town Target>
	SetFaction 11

	CityMap
	special <ShowAll>

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% V1 = First time entry counter
	% V102 = Use SCIENCE
	% V103 = Use MYSTICISM

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	rumor <there aren't really any snakes in the water. They were all eaten by the giant spike-toads.>
	start <Print 1 if= V1 0 startstory .urbstory V= 1 1>
	.UrbStory <TS_Story_Urb_Kidnapped.txt>
	Msg1 <You enter the city of Snake Lake.>

	CLUE14 <Print 101>
	CLUE29 <Print 102 if= V102 0 Reputation 7 d3 V= 102 1>
	CLUE34 <Print 103 if= V103 0 Reputation 7 -d3 V= 103 1>
	Msg101 <The conditions in this area would be perfect for raising Spike-Toads.>
	Msg102 <The ground beneath this city is solid. It was likely formed by a sludge-slide in the dark years following the night of fire. There are no ruins near here, as they all would have been swept away at that time.>
	Msg103 <You meditate for a few moments on the bustling energy of the city.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 1 3
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Town Militia
		SetAlly 1 2

		rect
		name <Entry Grid>
		width 7
		height 12
		sub
			% This is another hidden exit to the world map!
			StairsDown
			Destination 1
			stat 5 1

			Sign
			name <Bus Stop: City Park>
			Destination 23

			Sign
			name <Bus Stop: Corp Sector>
			Destination 24

			Sign
			name <Bus Stop: Waterfront>
			Destination 25
		end

		rect
		height 3
		width 3
		MarbleType 17
		sub
			TrapDoor
			name <Manhole>
			Destination 32
			Msg1 <You go down the manhole.>
		end

		room 12 8
		name <Snake Lake Mall>
		FloorType 28
		BorderType 32

		room 5 7
		name <Monkey Wrench>
		FloorType 14

		room 5 5
		name <Snake Lake Clinic>
		rumor <Doctor Wiseman was killed when a rataan tree fell on his head. Very strange.>
		FloorType 28
		BorderType 18

		room 8 7
		name <Robot Warriors>
		rumor <Robot Warriors is the most prestigious mecha competition in all the federated territories.>
		FloorType 28
		BorderType 24

		room 9 5
		name <Guardians HQ>
		FloorType 28

		Complex
		Height 8
		Width 6
		name <Federation Hall>

		Complex
		Height 5
		Width 7
		BorderType 13
		FloorType 20
		name <Mansion>
		sub
			Door
			Lock 12
		end

		room 5 5
		name <Honest Weasel>
		FloorType 28

		room 7 6
		name <Hunter's Guild>
		FloorType 25

		room 6 6
		name <Soju Haus>
		FloorType 26
		BorderType 36

		room 5 7
		name <Bus Terminal>

		Persona 18
		% Mechanic
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 3 Shop Wares EndChat Say 2>
		Msg1 <This is Monkey Wrench. You got a problem? I can help you with that. Let's take a look at it.>
		Msg2 <Remember, keep out of trouble. I don't want to see you messing up my fine work.>
		Msg3 <Let me see the damage.>
		Wares <17>
		prompt1 <My mecha is damaged.>

		Persona 19
		% Elric, of Elric's House of Hurt
		greeting <NewChat AddChat 1 if= V1 0 else goWelcomeBack V= 1 1 Say 1>
		goWelcomeBack <if= V1 1 else GoWelcome2 ifG React 45 else GoWelcome2  ifG PCRep 6 d90 else GoWelcome2  V= 1 2 Say 5  AddChat 2>
		GoWelcome2 <Say 2 if= V1 2 AddCHat 2>
		result1 <Say 3 Shop Wares EndChat Say 4>
		Wares <4 5 MEXTRA>
		result2 <Say 6 School .sklist EndChat Say 7>
		.sklist <5 6 7 8 10>
		Msg1 <Greetings and salutations! I'm Elric, and this is Evil Elric's House of Hurt! What implements of destruction can I interest you lot in, eh?>
		Msg2 <Welcome back! It's good to see you again. Looking for something big and spiky? Of course you are, can't get enough stuff like that. Take a look around, let me know what you like.>
		Msg3 <There's something in my shop for everyone. I pride myself on quality and variety. And firepower, of course.>
		Msg4 <Enjoy your new toys... and remember to never point that thing at your face or your crotch.>
		Msg5 <Good to see you! You've seen all the toys in my shop before, but today old Elric's got an offer for you. You've got lots of potential, that's obvious. What you need right now is an experienced teacher. How about it?>
		Msg6 <Let's get down to tacks. This is just some of what I've learned over a long lifetime of not dying...>
		Msg7 <Keep up the training and you'll get it eventually!>
		Prompt1 <Let me see your goods.>
		Prompt2 <Teach me about fighting.>

		Persona 20
		% Shopkeeper
		greeting <Say 1 NewChat AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		Wares <4 5 10 12 14 16 17>
		Msg1 <Welcome to my shop. I specialize in adventuring goods. Would you like to take a look around?>
		Msg2 <Take your time browsing, I'll be over here if you need any assistance.>
		Msg3 <Have a nice day!>
		prompt1 <Okay, I'll have a look.>

		Persona 21
		% Shopkeeper
		greeting <Say 1 NewChat AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		Wares <11>
		Msg1 <Good day to you. Feel free to look around at our clothing... I believe we may even have a few items in your size.>
		Msg2 <If you need to try on anything, the changing room is in the back. Don't mind the security cameras.>
		Msg3 <Goodbye.>
		prompt1 <Let me see what you have.>


		Persona 25
		greeting <Say 1 NewChat AddChat 1 AddChat 2>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		result2 <Say 4 NewChat AddChat 1>
		Msg1 <Hello, this is the Snake Lake Hospital. Are you in need of help?>
		Msg2 <Let me take a look at you, see if anything's wrong.>
		Msg3 <Take care, and safe journeys.>
		Msg4 <Doctor Wiseman passed away a short while ago. I've had to try and keep this hospital running by myself since then.>
		prompt1 <I need medical aid...>
		prompt2 <Not much of a hospital, is it?>

		Persona 26
		% Craig, of Robot Warriors.
		greeting <NewChat Say 1 AddChat 1 AddChat 2>
		result1 <NewChat ifG G21 9 else GoNoTitles ifG G22 9 else GoNoTitles ifG G23 9 else GoNoTitles StartStory .RWArc else GoNoLoad Say 5>
		.RWArc <TS_Story_RobotWarriors.txt>
		GoNoLoad <Say 6>
		GoNoTitles <ifG PCRep 6 35 else GoNotFamous Say 2>
		GoNotFamous <Say 4>
		result2 <NewChat Say 3>
		Msg1 <It's a good day to bend some metal! This is Robot Warriors, where the brightest and the strongest come to settle once and for all which one of 'em has the biggest actuators!>
		Msg2 <There are certain strict rules about who can compete in Robot Warriors... while I know your reputation speaks for itself, you don't have enough experience in the dueling circuit to take part here.>
		Msg3 <Robot Warriors can be seen on ETV and on trideo pay-per-view every Tuesday and Wednesday at 10:30PM.>
		Msg4 <Only the best of the best get to compete at Robot Warriors. If you dream of winning glory in our arena, first you should get some practice in amateur dueling.>
		Msg5 <Excellent! You're exactly the kind of pilot we're looking for. I'll sign you up for the competition... Go get your mecha ready, it's time for some MASSIVE DESTRUCTION!!!>
		Msg6 <I'd like to let you compete, but there seems to be a problem with the script. Go fire off an angry letter to Pyrrho12@yahoo.ca and come back here later.>
		prompt1 <I'm here to compete.>
		prompt2 <Neat! What time is it on?>

		Persona 27
		% Philippa, of Robot Warriors.
		Greeting <NewChat Say 1>
		Msg1 <Are you planning to enter the competition? Tell me about your mecha.>

		Persona 45
		% Weasely Crusher, used mecha dealer.
		Greeting <NewChat Say 1 AddChat 1 AddChat 2>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		Wares <MECHA>
		result2 <NewChat Say 4 AddChat 1>
		Msg1 <Welcome friend... Are you interested in power machines? I have a wide selection of almost new and slightly used mecha available for sale. I'm also in the business of buying salvage parts, if you happen to have any.>
		Msg2 <Take a look around. Make me an offer.>
		Msg3 <Keep on truckin'!>
		Msg4 <Well, it's a dangerous world out there, you know. Many of these machines were parted from their previous owners under most unfortunate circumstances... But their loss can be your gain! I have the best selection in Snake Lake City!>
		Prompt1 <Let me see what you have.>
		Prompt2 <Where did you get all these robots?>

		Persona 1012
		% V1 = Destination
		% V2 = Fare
		% V3 = Time
		greeting <NewChat Say 1 AddChat 1 AddChat 4 AddChat 5>
		result1 <NewChat V= 1 2 V= 2 50 V= 3 1800 Say 2 AddChat 2 ifG PC$ V2 AddChat 3>
		result2 <NewChat Say 4>
		result3 <EndChat if= SCeneFaction V1 11 else GoR3NoBus Say 3 Time V3 Cash+ -V2 Exit 1 SeekGate V1>
		GoR3NoBus <Say 5>
		result4 <NewChat V= 1 17 V= 2 75 V= 3 3600 Say 2 AddChat 2 ifG PC$ V2 AddChat 3>
		result5 <NewChat V= 1 16 V= 2 80 V= 3 3600 Say 2 AddChat 2 ifG PC$ V2 AddChat 3>
		Msg1 <This is Snake Lake Bus Terminal. We have buses travelling to Namok, Wujung, and Hogye.>
		Msg2 <The ride from here to \SCENE V1 costs $ \VAL V2 . Do you want to go?>
		Msg3 <Here's your ticket. The bus will drop you off on the outskirts of town.>
		Msg4 <Have a nice day.>
		Msg5 <Oh... all buses on the \SCENE V1 line have been cancelled for today.>
		Prompt1 <I'd like to go to Hogye.>
		Prompt2 <No thanks.>
		Prompt3 <I'll have one ticket, please.>
		Prompt4 <I'd like to go to Wujung.>
		Prompt5 <I'd like to go to Namok.>

	end
	inv
		NPC Mechanic
		SetTeam 2
		SetPersona 18
		home <Monkey Wrench>

		NPC Bandit
		name <Weasely Crusher>
		mecha <>
		chardesc Male Pragmatic Wangtta
		SetTeam 2
		SetPersona 45
		home <Honest Weasel>
		Skill 21 12

		NPC Soldier
		name <Elric>
		mecha <>
		home <Snake Lake Mall>
		rumor <Elric used to live in Nara, but had to move shop when that town was destroyed by troglodytes.>
		chardesc Male Old Passionate Cheerful Sociable Chaotic Renowned
		SetTeam 2
		SetPersona 19
		stat 6 13
		Skill 21 11
		Skill 23 1
		Skill 28 11

		NPC Shopkeeper
		home <Snake Lake Mall>
		chardesc Cheerful
		SetPersona 20
		SetTeam 2

		NPC Shopkeeper
		home <Snake Lake Mall>
		chardesc Melancholy
		SetPersona 21
		SetTeam 2

		NPC Citizen
		SetPersona 22
		SetTeam 2

		NPC Citizen
		SetPersona 23
		SetTeam 2

		NPC Citizen
		SetPersona 24
		SetTeam 2

		NPC Doctor
 		home <Snake Lake Clinic>
		SetPersona 25
		SetTeam 2

		NPC Celebrity
		home <Robot Warriors>
		name <Craig>
		chardesc Male Chaotic Sociable
		SetPersona 26
		SetTeam 2

		NPC Celebrity
		home <Robot Warriors>
		name <Philippa>
		chardesc Female Easygoing Cheerful
		SetPersona 27
		SetTeam 2
		Skill 15 10
		skill 21 11

		NPC Celebrity
		home <Robot Warriors>
		name <Johnathan>
		chardesc Male Passionate Pragmatic
		SetPersona 28
		SetTeam 2

		NPC Guardian
		chardesc Old Female Heroic
		job <Guardian Chief>
		home <Guardians HQ>
		SetTeam 2
		SetPersona 14
		SetFaction 3

		NPC Guardian
		SetTeam 3
		SetPersona 15

		NPC Guardian
		SetTeam 3
		SetPersona 16

		NPC Leader
		SetTeam 2
		SetPersona 1001
		home <Federation Hall>


		NPC Bounty Hunter
		SetTeam 2
		SetPersona 1004
		home <Hunter's Guild>

		NPC Bounty Hunter
		SetTeam 2
		SetPersona 1005
		home <Hunter's Guild>

		NPC Scientist
		SetTeam 2
		SetPersona 1006
		home <Federation Hall>


		NPC Bandit
		SetTeam 2
		SetPersona 1009
		Mecha <Radcliff.txt>

		NPC Guardian
		SetTeam 3
		SetPersona 1010

		NPC Bartender
		SetTeam 2
		SetPersona 1011
		home <Soju Haus>

		NPC Shopkeeper
		SetTeam 2
		SetPersona 1012
		home <Bus Terminal>
		job <Ticket Vendor>

		Prop 3
		name <Video Terminal>
		roguechar <&>
		home <Soju Haus>
		use <ifYesNo 1 2 3 MoreMemo News>
		Msg1 <This is a video info terminal. Would you like to check the news to see what's happening in the world?>
		Msg2 <Yes I would.>
		Msg3 <No, not really.>


		Treasure 500
		name <Amythest Geode>
		mass 20
		type <STOLEN>
		home <Mansion>

		Treasure 1000
		name <Golden Statue>
		mass 8
		type <STOLEN>
		home <Mansion>

	end

Scene 11 0
	name <Gyori>
	type <Town Target>
	SetFaction 11

	CityMap
	special <ShowAll>
	FloorType 17
	GapFill <-7 -7 -14 -14 -13 -1 -13>

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% 1 -> Message first time entering town.

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	rumor <the Kettel family runs this town.>
	start <if= V1 0 else GoSecondTime Print 1 V= 1 1>
	GoSecondTime <Print 2>
	Msg1 <You enter a small but noisy town. The air is thick with the black smoke of industry.>
	Msg2 <You enter Gyori.>

	CLUE14 <Print 101>
	Msg101 <There's not a lot of nature left in this town for you to use this skill on.>


	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 1 3
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Town Militia
		SetAlly 1 2

		rect
		FloorType 17
		MarbleType 1
		width 6
		height 5
		sub
			% This is another hidden exit to the world map!
			StairsDown
			Destination 1
			stat 5 1
		end

		% The stairs down to the factory.
		room 3 3
		name <Factory>
		FloorType 14
		BorderType 35
		sub
			StairsDown
			Destination 12
		end

		room 12 7
		name <Warhammer Arena>
		FloorType 28

		room 20 5
		name <Warehouse>
		FloorType 14
		BorderType 29

		room 6 9
		name <Trading Post>
		BorderType 29

		room 15 5
		name <Stuckey's Truck Stop>
		FloorType 14
		BorderType 29

		room 9 5
		name <Hospital>
		FloorType 30
		BorderType 18

		Persona 42
		% Warhammer Arena manager
		% V1 = First time seeing player, will ask if they work at Factory.
		%      Also used as Enemy PV
		% V2 = Arena Recharge
		% V3 = Arena Rank
		greeting <NewChat ifG G22 V3 else GoOldGreet V= 3 G22 V+ 1 d4 CashPrize Reward Threat V1 100 100 if= V3 10 else GoSayReward Say 10 G+ 22 1 V+ 3 1 CashPrize 250000 Reputation 6 3 History 12>
		GoSayReward <Say 11>
		goOldGreet <if= V1 0 else GoSeenBefore V= 1 15 Say 1 AddChat 1 AddChat 2>
		goSeenBefore <ifG ComTime V2 else GoNotReady Say 7 AddChat 3 AddChat 5>
		goNotReady <NewChat Say 9>
		result1 <NewChat Say 2 Reputation 2 1 AddChat 3 AddChat 4>
		result2 <NewChat Say 3 Reputation 2 -1 AddChat 3 AddChat 4>
		result3 <ifG PCMEKS 0 else goNoMeks EndChat Say 4 SavePos Dynamic 2 Threat V1 75 FrzNU1 FrzNU2 V= 2 ComTime V+ 2 65000 SetMapType ArenaMap>
		FrzNU1 <if= T1 0 Return if= V1 0 V= 1 1 Reputation 6 -5>
		FrzNU2 <if= T2 0 Salvage Return if= V1 0 V= 1 1 G+ 22 1 Reputation 6 1>
		goNoMeks <NewChat Say 6>
		result4 <Say 5 NewChat>
		result5 <Say 8 NewChat>
		Msg1 <Welcome to Warhammer Arena. After a long day at the factory, there's nothing like some mecha combat to release all that pent-up stress. Are you an employee of Kettel Industries?>
		Msg2 <Well, it doesn't really matter. The arena was built as a company facility but it's not like anyone ever followed that rule. You interested in taking part in a match?>
		Msg3 <Strange, I don't recall seeing you around here before... So what do you say to taking part in a mecha battle?>
		Msg4 <Great! Today's big contest is about to begin. Suit up and head over to the starting position.>
		Msg5 <It takes all kinds, I guess. If you change your mind come on back.>
		msg6 <Great! Now, if only you had a mek, I could give you a waiver to sign...>
		Msg7 <Welcome back to Warhammer Arena. We've got another battle lined up this afternoon... are you interested in joining the match?>
		Msg8 <Too bad. Well, I'm sure there'll still be plenty of competitors to trash when you're ready to play again.>
		Msg9 <There'll be another fight tomorrow. It's going to take us that long to clear the wreckage out of the arena.>
		Msg10 <Congratulations on winning your tenth battle at the Warhammer Arena! This allows you entry into our Winner's Club! Here is your prize, a cheque for $250,000!>
		Msg11 <You did really well out there! Here's your prize money.>
		Msg12 <You were crowned Warhammer Arena champion.>
		prompt1 <No, I'm not.>
		prompt2 <Yes I am.>
		prompt3 <Just show me to the arena!>
		prompt4 <No thanks, I don't want to die.>
		prompt5 <Maybe some other time.>

		Persona 47
		% The shopkeeper at the trading post.
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		Wares <11 12 14 16 17>
		Msg1 <Welcome to the Gyori Trading Post.>
		Msg2 <Take a look around. If you see something you like I'll tell you how much it is.>
		Msg3 <Good bye.>
		prompt1 <I'd like to buy something.>

		Persona 49
		% The doctor
		Greeting <NewChat Say 1 AddChat 1 AddChat 2>
		Result1 <Say 2 Shop NoWares Say 3 EndChat>
		Result2 <Say 4 NewChat>
		Msg1 <This is Gyori Hospital. Are you in need of assistance?>
		Msg2 <Hop up on the bench and let me examine you.>
		Msg3 <Don't you feel better now? Here, have a lollipop.>
		Msg4 <Well, that's fortunate. Try to keep in good shape.>
		Prompt1 <Yes I am.>
		Prompt2 <Not right now.>

		Persona 1105
		% Truck stop mechanic
		greeting <NewChat Say 1 AddChat 1 AddCHat 2>
		result1 <EndChat Say 2 Shop NoWares Say 3>
		result2 <NewChat Say 4>
		Msg1 <Welcome to the Gyori truck stop. What can I do for you today?>
		Msg2 <Let me take a look at your mecha, see if I can fix what's wrong with her.>
		Msg3 <Keep her rolling!>
		Msg4 <Well, you know where to come if you ever have any mechanical troubles!>
		Prompt1 <I need to get my stuff repaired.>
		Prompt2 <Nothing, thanks.>

		Persona 1106
		greeting <NewChat if= G22 0 else GoWonSomething SayAnything>
		GoWonSomething <if= G22 1 else GoMultipleWins Say 1>
		GoMultipleWins <ifG G22 10 else GoStillWorking Say 3>
		GoStillWorking <Say 2>
		Msg1 <Congratulations on your arena victory! Win 9 more times and you'll become our region champion.>
		Msg2 <Wow, you've already won \VAL G22 times in the arena! If you win ten times, you'll win a fabulous Kettel Industries shopping spree.>
		Msg3 <You're a great pilot!>

	end
	inv

		NPC Mecha Pilot
		SetPersona 42
		home <Warhammer Arena>
		mecha <>
		SetTeam 2

		NPC Shopkeeper
		home <Trading Post>
		SetPersona 47
		SetTeam 2

		NPC Guardian
		SetPersona 46
		SetTeam 3

		NPC Guardian
		home <Warehouse>
		SetPersona 48
		SetTeam 3

		NPC Doctor
		home <Hospital>
		chardesc Cheerful Easygoing
		SetPersona 49
		SetTeam 2

		NPC Citizen
		SetPersona 44
		SetTeam 2

		NPC Citizen
		SetPersona 1101
		SetTeam 2

		NPC Trucker
		SetPersona 1103
		SetTeam 2
		home <Stuckey's Truck Stop>

		Prop 3
		name <Video Terminal>
		roguechar <&>
		home <Stuckey's Truck Stop>
		use <ifYesNo 1 2 3 MoreMemo News>
		Msg1 <This is a video info terminal. Would you like to check the news to see what's happening in the world?>
		Msg2 <Yes I would.>
		Msg3 <No, not really.>

		NPC Trucker
		SetPersona 1104
		SetTeam 2
		home <Stuckey's Truck Stop>

		NPC Mechanic
		SetPersona 1105
		SetTeam 2
		home <Stuckey's Truck Stop>
		chardesc Passionate

		NPC Citizen
		SetPersona 1106
		SetTeam 2
		home <Warhammer Arena>


	end

Scene 12 0
	name <The Factory>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	Start <Print 1>
	Msg1 <You enter the factory.>

	CaveMap
	FloorType 17

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 1 3
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Town Militia
		SetAlly 1 2

		rect
		width 30
		height 30
		FloorType 17
		sub
			Room 7 7
			name <Workroom 1>
			FloorType 28
			BorderType 29

			Room 7 7
			name <Workroom 2>
			FloorType 28
			BorderType 29

			Room 6 12
			name <The Showroom>
			FloorType 28

			Room 9 6
			FloorType 20
			name <The Office>

			rect
			name <Way Up>
			FloorType 17
			width 3
			height 3
			sub
				StairsUp
				Destination 11
			end
		end

		Persona 41
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares EndChat Say 3>
		wares <4 5 10 MECHA>
		Msg1 <The machines produced by our factory are of a high quality not seen since before the great war. Take a look around, admire our work!>
		Msg2 <I'm glad you asked! Here is our current catalogue. Be sure to check back often, since we are always introducing exciting new products!>
		Msg3 <Enjoy your stay in Gyori!>
		prompt1 <What do you have for sale?>


		Persona 43
		% Shop mechanic.
		Greeting <NewChat Say 1 AddChat 1 AddChat 2>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		result2 <Say 4 NewChat AddChat 3>
		result3 <Goto Result1>
		wares <MECHA MEXTRA 8 6>
		Msg1 <Gyori Factory is the most advanced industrial complex in the world. It's an honor to work in a place like this. Do you require a demonstration of our technical wizardry?>
		Msg2 <We are proud to offer repair services for all machines up to "Giga" class, and a wide selection of manufactured items.>
		Msg3 <Pleasant journeys!>
		Msg4 <Not at all; in fact I admire the brilliance of it! Geothermal heat supplies 90% of our electricity, and we've trained the local fruit bats to deliver interoffice memos...>
		prompt1 <Sure, I could use one of those.>
		prompt2 <You don't mind that it's in a cave?>
		prompt3 <I'll take a look at your shop now.>
	end
	inv
		% There's a strong bend towards Lawful Cheerfulness in this
		% organization.
		NPC Leader
		name <Eli Kettel>
		rumor <Eli is looked up to by all those who work here.>
		home <The Office>
		chardesc Lawful Lawful Lawful Sociable Passionate
		SetPersona 32
		SetTeam 2
		SetFaction 4

		NPC Corporate Executive
		home <The Showroom>
		chardesc Lawful Lawful
		SetPersona 41
		SetTeam 2
		SetFaction 4

		NPC Mechanic
		home <WorkRoom 1>
		chardesc Lawful Lawful Cheerful Passionate
		SetPersona 43
		SetTeam 2
		SetFaction 4

		NPC Corporate Executive
		home <WorkRoom 2>
		chardesc Lawful Lawful Cheerful Passionate
		SetPersona 33
		SetTeam 2
		SetFaction 4

		NPC Mechanic
		home <WorkRoom 2>
		chardesc Lawful Lawful Cheerful Passionate
		SetPersona 34
		SetTeam 2
		SetFaction 4

		NPC Guardian
		home <Way Up>
		chardesc Cheerful Passionate
		SetPersona 30
		SetTeam 3
	end

Scene 13 0
	name <Ipshil>
	type <Town Target>
	special <ShowAll>
	SetFaction 11

	CityMap

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% 1 -> Message first time entering town.
	% 2 -> Enter Wine Cellar

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	start <if= V1 0 else GoSecondTime Print 1 V= 1 1 StartStory .urbstory>
	GoSecondTime <Print 2>
	.urbstory <TS_Story_Urb_RatAttack.txt>
	Msg1 <You enter a small but brightly lit town. Neon lights illuminate many of the shops and businesses.>
	Msg2 <You enter Ipshil.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 3
		% Set this team's default orders to PASSIVE
		Stat 1 3
		rumor <the MacGuffins run the town, and also the underworld.>

		team 3
		% Town Militia
		SetAlly 2

		Team 4
		% Gang at pub.
		Stat 1 3

		Room 6 6
		name <Guns and Stuff>
		BorderType 36
		FloorType 16

		room 7 5
		name <Denomolos>
		BorderType 36
		FloorType 25

		room 7 7
		name <Metal Psychosis>
		BorderType 33
		FloorType 16

		room 5 5
		name <Skip Tracer>
		FloorType 25
		BorderType 24

		Room 11 8
		name <Wayward Pub>
		FloorType 26
		BorderType 15
		sub
			StairsDown
			Destination 20
			stat 5 1
			update <ifG L2 0 SetStat 5 0>
		end

		room 7 8
		name <Extropia Health>
		BorderType 32
		FloorType 25

		complex
		width 8
		height 8
		name <City Hall>

		rect
		width 2
		height 2
		sub
			% This is a hidden exit to the world map!
			StairsDown
			Destination 1
			stat 5 1
		end


		Persona 55
		% Shopkeeper - Guns and Stuff
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		wares <4 5 10>
		Msg1 <It's a dangerous world out there. You looking for some personal protection? I have just the stuff you need.>
		Msg2 <Take a look through the wares. Take your time, I've got all day.>
		Msg3 <Remember, if you find that you don't have enough firepower, come back here and get some more.>
		prompt1 <I'd like to buy a weapon.>

		Persona 56
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares EndChat Say 3>
		wares <10 11>
		Msg1 <This is Denomolos, the new vision clothing store for the modern future warrior. Our lines are clean, stark but lush, exotic with a dangerous hint of savage brutality.>
		Msg2 <Certainly. Demonolos clothing is created with both fashion and utility in mind. Our motto is "Better, Stronger, Faster, Style".>
		Msg3 <Remember, fashion is but an outward mirror of the inward truth. Shop Denomolos.>
		prompt1 <Uh, do you sell armor here?>

		Persona 59
		% Brock, of the Wayward Inn
		% V1 = Visited Dungeon Before
		greeting <NewChat Say 11  AddChat 1  AddChat 2  ifG V1 0 AddChat 10>
		result1 <NewChat  Say 12  AddChat 3  AddChat 4  AddChat 5  AddChat 6  AddChat 7  AddChat 8  AddChat 9>
		result2 <NewChat  Say 13  Time 29800>
		result3 <NewChat  Say 14  AddChat 11  AddChat 12>
		result4 <NewChat  Say 15  Print d10>
		result5 <Goto result4>
		result6 <Goto result4>
		result7 <Goto result4>
		result8 <Goto result4>
		result9 <Goto result4>
		result10 <EndChat  Say 16  L= 2 1 UpdateProps Exit 20>
		result11 <V= 1 1 Goto result10>
		result12 <NewChat  Say 17  AddChat 14  AddChat 13>
		result13 <NewChat  Say 18  AddChat 3  AddChat 4  AddChat 5  AddChat 6  AddChat 7  AddChat 8  AddChat 9>
		result14 <V= 1 1 Goto result10>
		Msg1 <It tastes good!>
		Msg2 <It tastes great!>
		Msg3 <Ugh... That's horrible!>
		Msg4 <You hear someone snickering at you.>
		Msg5 <The drink fizzes like cherry cola.>
		Msg6 <The room starts spinning about your head.>
		Msg7 <The smell of the drink nearly knocks you off the barstool.>
		Msg8 <The drink smells like paint thinner. You down it in one gulp.>
		Msg9 <That was really tasty!>
		Msg10 <It's an okay drink.>
		Msg11 <Hruh... What'll you be having?>
		Msg12 <What kind of a drink? We've got all kinds here.>
		Msg13 <I suppose you could stay on the floor all night if you wanted that... We're planning on upgrading the accommodations sometime soon.>
		Msg14 <Certainly... Just head on down to the wine cellar and pick yerself out a bottle.>
		Msg15 <Here ya go, enjoy your drink.>
		Msg16 <Just through the trap door and down the staircase... Be careful, we've got some awful big rats down there.>
		Msg17 <Why? Er, well, um... I have to stay here and wipe these glasses, that's why. Now will you be wanting some wine or not!?>
		Msg18 <Makes no difference to me. So, what's your pleasure, then?>
		Prompt1 <I'll have a drink.>
		Prompt2 <I need a place to stay.>
		Prompt3 <Wine.>
		Prompt4 <Foul Spirits.>
		Prompt5 <Whiskey.>
		Prompt6 <Ale.>
		Prompt7 <Zima.>
		Prompt8 <Root Beer.>
		Prompt9 <Mead.>
		Prompt10 <I'd like to see the Wine Cellar, please.>
		Prompt11 <I'll be right back.>
		Prompt12 <Why don't you go get it yourself?>
		Prompt13 <I'll just have something else.>
		Prompt14 <Okay, I'll go.>

		Persona 60
		% The bandit leader... PC can get into a fight!
		greeting <ifG React 30 else GoStartFight Say 1 NewChat>
		% The player might get into a fight here, might lose face, or something.
		GoStartFight <EndChat Say 2 AddChat 1 AddChat 2>
		result1 <EndChat Say 3 Reputation 6 -2>
		result2 <ifG Skroll 28 12 else GoNoDice Say 4 XPV 75 NewChat AddChat 3 AddChat 4>
		GoNoDice <EndChat Say 6 ATTACK 4 1>
		result3 <Say 5 NewChat>
		result4 <Reputation 6 1 goto GoNoDice>
		Msg1 <If you're into the game then you're smokin'. Everything is going down in Ipshil.>
		Msg2 <You're breathing my air, wastesucker. Get out of here before I have to smash that ugly face in.>
		Msg3 <That's right... go on home to mommy. Count yourself lucky that you didn't piss me off too badly.>
		msg4 <Don't be harsh... No need to escalate the tension, you're cool on our turf. Let's be buds, okay?>
		Msg5 <This town is owned by the MacGuffins. They're the only game around here. If you want to live long you'll get on their good side.>
		Msg6 <You know what? Your sorry carcass is going to smell even worse when you're lying face down in a puddle of your own blood... NOW YOU DIE!!!>
		prompt1 <Sorry, didn't mean to offend.>
		prompt2 <Don't insult me unless you want to die.>
		prompt3 <Sure, we're buds now.>
		prompt4 <No, you're going to apologize...>

		Persona 61
		greeting <Say 1 ifG React 30 else GoNoChat NewChat>
		GoNoChat <EndChat>
		Msg1 <Splooge monkey snackpants!>

		Persona 63
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		Wares <17>
		Msg1 <Welcome to Extropia Health Clinic. Are you in need of any aid, or perhaps augmentation?>
		Msg2 <I'll do what I can for you, but I'm afraid that the latest bundle of parts that I've been expecting hasn't arrived yet.>
		Msg3 <May the future bring you interesting times.>
		prompt1 <Yeah, I could use some of that.>

		Persona 1304
		% Metal Psychosis shopkeeper
		greeting <NewChat AddChat 1 ifG PCMeks 5 else GoFewMeks Say 1>
		GoFewMeks <ifG PCMeks 1 else GoOneMek Say 2>
		GoOneMek <ifG PCMeks 0 else GoNoMeks Say 3>
		GoNoMeks <Say 4>
		result1 <EndChat Say 5 Shop Wares Say 6>
		wares <Mecha MEXTRA 8 6>
		Msg1 <Ah, it's nice to see someone who's into mecha almost as much as I am. Are you here for some upgrade parts, to sell one of your used machines, or maybe to pick up a new one?>
		Msg2 <You must really enjoy power machines. Take a look around our showroom, see if there's anything you like.>
		Msg3 <One mecha is never enough. Have you thought about upgrading your current unit or perhaps purchasing a second model?>
		Msg4 <Here at Metal Psychosis we cater to the true mecha enthusiast. You should really have a look around our showroom, there might be something you like.>
		Msg5 <These are the models we currently have available. If you don't see what you're looking for, check back again later.>
		Msg6 <Ride the wind, baby.>
		Prompt1 <Let me see what you have.>

		Persona 1305
		% Metal Psychosis mechanic
		greeting <NewChat ifG PCMeks 0 else GoNoMeks Say 1 AddChat 1 AddCHat 2>
		GoNoMeks <Say 5>
		result1 <EndChat Say 2 Shop NoWares Say 3>
		result2 <NewChat Say 4>
		Msg1 <Any problem with any mecha, I can fix it. These machines need to be kept in top shape for when you push them to their limits.>
		Msg2 <Let me take a look...>
		Msg3 <If you take care of your gear you can play as rough as you need to.>
		Msg4 <Take good care of your machine and she'll take good care of you.>
		Msg5 <This here is a pro shop for extreme pilots. The mecha magazines are over that way, if that's what you're looking for.>
		Prompt1 <I've got some damage to fix.>
		Prompt2 <No problems right now.>

		Persona 1306
		greeting <NewChat ifG React 50 else GoMedReact Say 1>
		GoMedReact <ifG React d49 else GoLowReact Say 2>
		GoLowReact <SayAnything>
		Msg1 <I don't have any bounty notices at the moment. Actually, I kind of like it when there's nothing to do.>
		Msg2 <This is such a nice lazy job... Especially when there's no work to be done...>
	end
	inv
		NPC Bandit
		SetPersona 60
		home <Wayward Pub>
		rumor <the Wayward Pub isn't a safe place to hang out.>
		chardesc Villainous Villainous Villainous Chaotic 
		SetTeam 4

		NPC Bandit
		SetPersona 61
		home <Wayward Pub>
		SetTeam 4

		NPC Cyberdoc
		SetPersona 63
		home <Extropia Health>
		SetTeam 2

		NPC Bartender
		SetPersona 59
		name <Brock>
		home <Wayward Pub>
		rumor <Brock is always wiping glasses.>
		SetTeam 2
		chardesc Male Old Shy Easygoing Renowned

		Prop 3
		name <Video Terminal>
		roguechar <&>
		home <Wayward Pub>
		use <ifYesNo 1 2 3 MoreMemo News>
		Msg1 <This is a video info terminal. Would you like to check the news to see what's happening in the world?>
		Msg2 <Yes I would.>
		Msg3 <No, not really.>

		NPC Shopkeeper
		SetPersona 55
		SetTeam 2
		home <Guns and Stuff>
		skill 15 1

		NPC Shopkeeper
		SetPersona 56
		SetTeam 2
		home <Denomolos>

		NPC Guardian
		SetPersona 54
		chardesc Chaotic
		SetTeam 3

		NPC Bandit
		SetPersona 51
		SetTeam 3

		NPC Bandit
		SetPersona 52
		SetTeam 3

		NPC Citizen
		SetPersona 1301
		SetTeam 2

		NPC Citizen
		SetPersona 1302
		SetTeam 2

		NPC Citizen
		SetPersona 1303
		SetTeam 2
		chardesc Chaotic Chaotic Chaotic

		NPC Shopkeeper
		SetPersona 1304
		home <Metal Psychosis>
		SetTeam 2
		chardesc Chaotic Chaotic Chaotic Cheerful Passionate

		NPC Mechanic
		SetPersona 1305
		home <Metal Psychosis>
		SetTeam 2
		chardesc Passionate Passionate Passionate Passionate Passionate Chaotic Chaotic Chaotic Chaotic Chaotic

		NPC Bounty Hunter
		SetPersona 1306
		home <Skip Tracer>
		name <Skippy>
		chardesc Male Cheerful Easygoing Chaotic
		SetTeam 2

		NPC Leader
		SetPersona 1307
		SetTeam 2
		home <City Hall>

	end

Scene 14 0
	name <Kist>
	type <Village Town Target>
	WildMap
	SetFaction 10

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% 1 -> Message first time entering town.

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	start <if= V1 0 else GoSecondTime V= 1 1 if= SceneFaction 14 10 else GoSecondTime Print 1>
	GoSecondTime <Print 2>
	Msg1 <This village is strangely quiet. You notice a lot of men with automatic rifles walking around.>
	Msg2 <You enter Kist.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 1
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Occupying Force
		name <Bone Devils>
		SetAlly 2

		rect
		width 40
		height 30
		special <SHOWALL>
		MarbleType 17
		gapfill <-14 -10 -4 -1 -8 -1 -8>
		sub
			rect
			width 10
			height 6
			name <Town Square>
			FloorType 17
			MarbleType 1
			sub
				% This is a hidden exit to the world map!
				StairsDown
				Destination 1
				stat 5 1
			end

			room 8 5
			name <General Store>
			FloorType 26
			BorderType 15

			room 5 8
			name <Kist Hospital>
			FloorType 28
			BorderType 18

			room 7 7
			rumor <Kist was built on top of an ancient pre-Zero ruin.>
			FloorType 14
			BorderType 15
			sub
				Trapdoor
				Destination 18
			end

			room 5 5
			FloorType 14
			BorderType 15

			room 5 5
			FloorType 14
			BorderType 15

		end

		Persona 1406
		% Honest bandit
		greeting <NewChat ifG React 25 else GoNoFriend Say 1>
		GoNoFriend <SayAnything>
		Msg1 <You know, with all these bandits keeping an iron grip on the town, it's tough for an honest thief like me to make a living.>

		Persona 1407
		greeting <NewChat if= SceneFaction 14 10 else GoBanditsGone ifG React 50 else GoMedReact Say 5 AddChat 1>
		GoMedReact <ifG React 25 else GoLowReact Say 6 AddChat 2>
		GoLowReact <Say 1 AddChat 3>
		GoBanditsGone <Say 2 AddChat 1>
		result1 <Say 3 Shop Wares Say 4 EndCHat>
		Wares <4 5 10 11 17 MECHA>
		result2 <Say 7 Shop PithyWares Say 4 EndChat>
		PithyWares <5 11 17>
		result3 <ifG PCRep 1 5 else GoNoHero Say 8 Shop NoWares Say 4 EndChat>
		GoNoHero <ifG React 15 else GoNotLiked Say 9 Shop NoWares Say 4 EndChat>
		GoNotLiked <NewChat Say 10>
		Prompt1 <Let me see your wares.>
		Prompt2 <Let me see what you have.>
		Prompt3 <Can I get my stuff repaired?>
		Msg1 <Sorry... this store is closed.>
		Msg2 <With the bandits gone, my store can once again open for business.>
		Msg3 <Here's what I have for sale. Since this is the only shop in town, I try to keep a little bit of everything on hand.>
		Msg4 <Have a good expedition.>
		Msg5 <Those bandits don't much like for us in town to do business with outsiders, but seeing as who you are I'll show you what I have.>
		Msg6 <It's tough keeping the store running when the town has been over-run by bandits. I don't have much in stock, but you can take a look at it.>
		Msg7 <Take a look through, let me know if you see anything you like.>
		Msg8 <I'm not supposed to do this, but you seem like a good sort. I'll take a look at your gear.>
		Msg9 <Eh, I guess I could do that. Let me take a look at it.>
		Msg10 <Nope, the shop's closed, there's nothing I can do for you. Good day.>

		Persona 1408
		greeting <NewChat Say 1 AddChat 1 AddChat 2>
		result1 <Say 2 Shop NoWares Say 3 EndChat>
		result2 <NewChat Say 4>
		Msg1 <Our hospital hasn't been able to get new supplies in a long time, but we do our best to keep things running. Are you in need of any help?>
		Msg2 <Tell me where it hurts and I'll do what I can.>
		Msg3 <Be careful, it's a dangerous world out there.>
		Msg4 <That's good. I hope you remain in good health.>
		Prompt1 <Yes I am.>
		Prompt2 <No, not today.>

	end
	inv
		NPC Bandit
		SetTeam 3
		SetPersona 1401
		SetFaction 10
		home <Town Square>

		NPC Bandit
		SetTeam 3
		SetPersona 1402
		SetFaction 10
		stat 2 19
		stat 5 5
		stat 7 2
		home <Town Square>

		NPC Bandit
		SetTeam 3
		SetFaction 10
		SetPersona 1403
		home <Town Square>

		NPC Bandit
		SetTeam 3
		SetFaction 10
		SetPersona 1404
		home <Town Square>

		NPC Bandit
		SetTeam 3
		SetFaction 10
		home <Town Square>
		SetPersona 1405

		NPC Bandit
		SetTeam 2
		SetPersona 1406
		chardesc Lawful Heroic

		NPC Shopkeeper
		SetTeam 2
		home <General Store>
		SetPersona 1407
		Skill 15 1
		chardesc Old Easygoing

		NPC Doctor
		SetTeam 2
		home <Kist Hospital>
		SetPersona 1408

		NPC Citizen
		SetPersona 1409
		SetTeam 2
		chardesc heroic

		NPC Citizen
		SetPersona 1410
		SetTeam 2

		NPC Citizen
		SetPersona 1411
		SetTeam 2
		chardesc heroic

		NPC Citizen
		SetPersona 1412
		SetTeam 2

	end

Scene 15 0
	name <Hwang-Sa Temple>
	type <Town Temple>
	special <ShowAll>

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% 1 -> Message first time entering town.
	% 2 -> Asked Kaema about martial arts.
	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	start <if= V1 0 else GoSecondTime Print 1 V= 1 1>
	GoSecondTime <Print 2>
	Msg1 <You discover a peaceful temple complex. All the buildings are carved from yellow sandstone. You hear the sound of a bell somewhere in the distance.>
	Msg2 <You enter Hwang-Sa Temple.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 3 1
		name <The Monks>
		% Set this team's default orders to PASSIVE
		Stat 1 3
		SDL_COLORS <163 63 0 250 212 177 166 47 32>

		team 3
		% Town Militia
		SetAlly 2 1
		name <Monk Warriors>
		SDL_COLORS <163 63 0 250 212 177 152 61 97>

		room 9 12
		name <Enlightenment Hall>
		stat 5 26
		stat 7 24

		room 9 12
		name <Legacy Hall>
		stat 5 26
		stat 7 24

		room 9 12
		name <Practice Hall>
		stat 5 26
		stat 7 24

		room 5 6
		name <Gift Shop>
		stat 5 14
		stat 7 24

		room 10 5
		name <Zen Mechanics>
		stat 5 30
		stat 7 24

		rect
		width 2
		height 2
		sub
			% This is a hidden exit to the world map!
			StairsDown
			Destination 1
			stat 5 1
		end


		Persona 1506
		% Kaema, the head monk of the temple
		greeting <NewChat AddChat 1 ifG 0 PCRep 7 else GoNoFaith Say d10 ifG -30 PCRep 7 AddChat 6>
		GoNoFaith <Say 101>
		result1 <NewChat Say 102 AddChat 2 AddChat 3 AddChat 4>
		result2 <NewChat Say 103 AddChat 3 AddChat 4 AddCHat 5>
		result3 <NewChat Say 104 AddChat 2 AddChat 4>
		result4 <NewChat Say 105 AddChat 2 AddChat 3>
		result5 <NewChat Say 106 AddChat 6 AddChat 3 AddChat 4 if= L2 0  L= 2 1>
		result6 <NewChat Say 107>
		Msg1 <Do not seek enlightenment, allow it to find you instead.>
		Msg2 <Our temple is not the path to enlightenment but instead the shoes.>
		Msg3 <Open your mind but do not allow your brains to fall out.>
		Msg4 <Be as the difference between a duck, when one of its legs are both the same.>
		Msg5 <Seek your wisdom in the ocean; just remember to listen.>
		Msg6 <Give your faith totally but cautiously. Not all prophets are false, nor all fortune cookies true.>
		Msg7 <It may be that I am speaking jibberish. It may be that jibberish is what you need.>
		Msg8 <Strive for a harmonious body, harmonious mind, and harmonious life.>
		Msg9 <All things are circular.>
		Msg10 <Embrace your destiny, whatever it may be.>
		Msg101 <Welcome to our temple, wanderer. I hope that you will find here that which you seek.>
		Msg102 <We do many things here. It is the place where our monks work, train, and pray. We support ourselves by selling crafts and metalwork. Our temple also has the great responsibility of preserving historic records from before the war.>
		Msg103 <This temple is not dedicated to any one particular faith, but instead to preserving all the religious traditions from before the night of fire. Our monks also study craftwork, history, and martial arts.>
		Msg104 <Prayer beads, statuettes, clay tiles... We make all kinds of things. There's a gift shop for tourists, if you're particularly interested in all that.>
		Msg105 <We maintain an extensive collection of print and electronic records from before the night of fire. Speak to \PERSONA 1507 in the Legacy Hall if you wish to examine the archives.>
		Msg106 <Well, \PERSONA 1512 can usually be found in the Practice Hall. Ask there about lessons.>
		Msg107 <It may be the desire of the creator of the world that you be able to do so,  but it is not currently within the range of earthly possibilities, if you understand what I am saying...>
		Prompt1 <What exactly do you do here?>
		Prompt2 <What religion do you follow?>
		Prompt3 <What kinds of things do you make?>
		Prompt4 <What are these records?>
		Prompt5 <Can you teach me to kick ass?>
		Prompt6 <How can I become a monk?>

		Persona 1507
		% Librarian
		greeting <NewChat Say 1 AddChat 1 AddChat 2>
		result1 <NewChat Say 2  AddChat 2  AddChat 3>
		result2 <NewChat Say 3  AddChat 1 AddChat 4 AddChat 5>
		result3 <NewChat Say 4  AddChat 6 AddChat 7>
		result4 <NewChat Say 5  AddChat 1 AddChat 5 AddChat 8>
		result5 <NewChat Say 6  AddChat 1 AddChat 9 AddChat 10>
		result6 <NewChat Say 7  AddChat 2>
		result7 <NewChat Say 8  AddChat 2>
		result8 <NewChat Say 9  AddChat 1 AddChat 5>
		result9 <NewChat Say 10  AddChat 1>
		result10 <NewChat Say 11 AddChat 1>
		Msg1 <This is the Hwang-Sa Legacy hall, perhaps the greatest depository of human culture currently on the planet. What sort of knowledge do you seek?>
		Msg2 <We have far more than books here, we have electronic media of all types, artworks, cultural artifacts... Our mission is to document and preserve all of human knowledge from before the night of fire.>
		Msg3 <As the master librarian, I have three main duties. The first is to catalogue all the materials we have. The second is to instruct my assistants in their duties, and the third is to assist visiting researchers.>
		Msg4 <You did graduate high school, right? Remember the nuclear conflict which devastated the world and ended the age of superpowers? Year zero of the newtype calendar? That was the night of fire...>
		Msg5 <Well, the primary task of my assistants is archiving. Usually this means copying archaic data from magnetic tapes and laser cubes to more permanent media. We are right now working through over 30,000 hours of old television programming.>
		Msg6 <Certainly. Researchers come here from all over the world, sometimes from beyond. We have the largest storehouse of pre-zero culture anywhere.>
		Msg7 <It's said that those who ignore history are doomed to repeat it. Factions are once again building weapons of mass destruction, and I fear that it may not be long before we are once again on the path to global war.>
		Msg8 <Sure. In any case, it's important to study history, to keep the same mistakes from happening over and over again.>
		Msg9 <You wouldn't believe how often I get asked that question... Yes, we have a large supply of historical television animation. No, none of it is for sale, though copies are available for educational institutions.>
		Msg10 <You really did just fall off the giant turnip, didn't you? No, not aliens... Explorers from the space colonies. Regular contact stopped after the war but a few private ships still go back and forth.>
		Msg11 <Your parents really should've given you a cup or two of coffee before sending you to kindergarten in the morning. Year zero of the newtype calendar was the night of fire, this year is NT157, so "pre-zero" means before the end of the war.>
		Prompt1 <What kind of books do you have?>
		Prompt2 <What exactly do you do?>
		Prompt3 <What's the "night of fire"?>
		Prompt4 <What do the others do?>
		Prompt5 <Do you get a lot of visitors?>
		Prompt6 <That's ancient history. Who cares about that now?>
		Prompt7 <Oh, now I remember...>
		Prompt8 <Have any cartoons?>
		Prompt9 <Aliens come here?>
		Prompt10 <What do you mean, "pre-zero"?>


		Persona 1508
		% Gift Shop storekeeper
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		Wares <4 10 11>
		Msg1 <Welcome to our gift shop. I hope you are enjoying your visit to Hwang-Sa Temple.>
		Msg2 <All of these items are either crafted by the monks themselves, or used by them in their daily martial arts practice.>
		Msg3 <Fortune go with you!>
		prompt1 <Let me see the stuff.>

		Persona 1509
		% Zen and the art of Mecha Maintenance
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop NoWares Say 3 EndChat>
		Msg1 <The mecha is an extension of self, the machine spirit an extension of personal karma, this is what I believe.>
		Msg2 <Certainly you can. That is what I am here for, to mend the twisted metal of this world in preparation for the next.>
		Msg3 <May the machine spirits honor you.>
		prompt1 <Can I get my stuff repaired here?>

		Persona 1510
		% Herbal doctor
		% V1 = Reputation bonus
		greeting <NewChat Say 1 AddChat 1 AddChat 2>
		result1 <ifG PCRep 7 0 else GoFaith if= V1 0 else GoFaith NewChat Say 4 AddChat 3 AddChat 4 AddChat 5>
		GoFaith <Say 2 Shop NoWares Say 3 EndChat>
		result2 <NewChat Say 5>
		result3 <Say 6 Shop NoWares Say 3 EndChat if= V1 0 V= 1 1 Reputation 4 1>
		result4 <Say 7 Shop NoWares Say 3 EndChat if= V1 0 V= 1 1 Reputation 4 -1>
		result5 <Say 8 AddReact -8 Shop NoWares Say 3 EndChat if= V1 0 V= 1 1 Reputation 7 1>
		Msg1 <This is a traditional healing shop. Are you in need of medical help?>
		Msg2 <My therapies will mend both your mind and your soul. Allow me to see your troubles.>
		Msg3 <May you live a long life.>
		Msg4 <I can tell that you don't really believe in the healing powers of nature. My arts will be unable to help you if you don't first believe in them.>
		Msg5 <That is good. Well, may you continue to enjoy good health.>
		Msg6 <It is always wise to keep an open mind. Come, allow me to see what your troubles are.>
		Msg7 <I always want to talk beliefs. It is our beliefs which define who we are. Here, allow me to see your troubles.>
		Msg8 <I most certainly am not! I may choose to prescribe only natural medicines, but all my practices are strictly in accordance with FTMA guidelines! Here, just let me see your wounds...>
		prompt1 <Yes I am.>
		prompt2 <Not today.>
		prompt3 <Alright, if it works I'll believe.>
		prompt4 <I'm injured and you want to talk beliefs!?>
		prompt5 <You're a quack.>

		Persona 1512
		% V1 = Conversation Randomizer
		greeting <NewChat if= L2 0 else GoReccomend SayAnything>
		GoReccomend <Say d6 AddChat 1>
		result1 <EndChat ifG PCRep 7 0 else GoR1Level1  Say 101 School .skill1 Goto GoEnd>
		GoR1Level1 <ifG PCRep 7 -25 else GoR1Level2 Say 102 School .skill1 Goto GoEnd>
		.skill1 <26 9>
		GoR1Level2 <ifG PCRep 7 -35 else GoR1Level3 Say 103 School .skill2 Goto GoEnd>
		.skill2 <26 8 9>
		GoR1Level3 <ifG PCRep 7 -45 else GoR1Level4 Say 104 School .skill3 Goto GoEnd>
		.skill3 <26 8 9 10>
		GoR1Level4 <ifG PCRep 7 -55 else GoR1Level5 Say 105 School .skill4 Goto GoEnd>
		.skill4 <26 6 7 8 9 10>
		GoR1Level5 <ifG PCRep 7 -65 else GoR1Level6 Say 106 School .skill5 Goto GoEnd>
		.skill5 <26 6 7 8 9 10 12>
		GoR1Level6 <ifG PCRep 7 -75 else GoR1Level7 Say 107 School .skill6 Goto GoEnd>
		.skill6 <26 6 7 8 9 10 12 18>
		GoR1Level7 <ifG PCRep 7 -85 else GoR1Level8 Say 108 School .skill7 Goto GoEnd>
		.skill7 <26 6 7 8 9 10 12 18 13>
		GoR1Level8 <ifG PCRep 7 -95 else GoR1Level9 Say 109 School .skill8 Goto GoEnd>
		.skill8 <26 6 7 8 9 10 12 18 13 25>
		GoR1Level9 <Say 110 School .skill9 Goto GoEnd>
		.skill9 <26 6 7 8 9 10 12 18 13 25 11 28 30 4 14>
		GoEnd <V= 1 150 V+ 1 d6 Say V1>
		Msg1 <Like a frog in the river of time, so are the days of our lives.>
		Msg2 <Ask not whether you have suffered one two many blows to the head, but whether you have suffered one two few.>
		Msg3 <Just between you and me, kicking stuff is my favorite part of the job.>
		Msg4 <Open the door, close the window. Close the window, open the door.>
		Msg5 <Remember, that which goes up must also go sideways.>
		Msg6 <Chicks really dig black belts.>
		Msg101 <I can tell that you don't really buy into mysticism so I'll skip the mumbo-jumbo. This is how we kick ass at my temple...>
		Msg102 <The path to martial perfection is a long and difficult one, requiring concentration and dedication. If you believe that crap then we can begin your training now.>
		Msg103 <You must not allow yourself to be distracted from what is truly important. If this crap makes any sense you'll figure it out eventually.>
		Msg104 <What the right hand gives the left hand takes away. If you meet your teacher on a deserted road I want you to kick him in the head.>
		Msg105 <I am full of nonsense, it's true, but it's only through the destruction of false thought that true reason can be attained.>
		Msg106 <Respect your teacher above all others, for teachers are the font of knowledge. Respect no person younger than twenty years, for wisdom only comes with age.>
		Msg107 <A good student seeks the path of enlightenment even when instructed not to do so. I am a good student, this is why I am the teacher at Hwang-Sa.>
		Msg108 <The secret to martial perfection is in destruction and creation, in creation and destruction. These are two names for the same truth.>
		Msg109 <Strive for excellence, but do not want it, for desire is the root of decay and vaporware.>
		Msg110 <I think there is nothing more I can teach you. Let's practice anyways!>
		Msg151 <May the road rise up to meet you.>
		Msg152 <Think about the things you've learned here today.>
		Msg153 <Keep practicing that spin kick, it needs some work.>
		Msg154 <Have an exciting adventure!>
		Msg155 <Practice, practice, practice.>
		Msg156 <Keep up your training.>
		prompt1 <I want to study martial arts.>

	end
	inv
		NPC Warrior Monk
		SetTeam 3
		SetPersona 1501

		NPC Warrior Monk
		SetTeam 3
		SetPersona 1502

		NPC Warrior Monk
		SetTeam 3
		SetPersona 1512
		home <Practice Hall>
		mecha <>
		chardesc young male cheerful spiritual spiritual spiritual spiritual spiritual

		NPC Monk
		SetTeam 2
		SetPersona 1503

		NPC Monk
		SetTeam 2
		SetPersona 1504

		NPC Monk
		SetTeam 2
		SetPersona 1505

		NPC Leader
		name <Kaema>
		home <Enlightenment Hall>
		job <Monk Leader>
		SetTeam 2
		SetPersona 1506
		chardesc old male heroic easygoing shy cheerful spiritual
		skill 4 20
		skill 5 20

		NPC Monk
		home <Legacy Hall>
		job <Monk Librarian>
		SetTeam 2
		SetPersona 1507

		NPC Monk
		home <Gift Shop>
		SetTeam 2
		SetPersona 1508

		NPC Mechanic
		home <Zen Mechanics>
		job <Tantric Mechanic>
		SetTeam 2
		SetPersona 1509

		NPC Doctor
		home <Zen Mechanics>
		job <Herbalist>
		chardesc spiritual old passionate
		SetTeam 2
		SetPersona 1510

		NPC Priest
		SetTeam 2
		SetPersona 1511
		SDL_COLORS <89 52 137 252 212 195 80 80 85>
	end

Scene 16 0
	name <Namok>
	type <City Town Target>
	special <ShowAll>

	CityMap

	SetFaction 11

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% 1 -> Message first time entering town.
	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	start <if= V1 0 else GoSecondTime Print 1 V= 1 1>
	GoSecondTime <Print 2>
	Msg1 <You enter a well-ordered and very clean city.>
	Msg2 <You enter Namok.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 3 1
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Town Militia
		SetAlly 2 1

		room 8 8
		name <Colosseum>
		FloorType 30

		room 10 6
		name <Duelist's Hall>
		FloorType 26
		BorderType 33

		room 8 12
		name <Red Fortress>
		FloorType 25
		BorderType 33

		room 6 5
		name <Namok Oil>
		FloorType 14
		BorderType 15

		room 8 5
		name <Mercy Hospital>
		FloorType 30
		BorderType 18

		room 5 5
		FloorType 25
		BorderType 27

		room 5 5
		FloorType 25
		BorderType 27

		room 5 5
		name <Bus Terminal>

		rect
		width 2
		height 2
		sub
			% This is a hidden exit to the world map!
			StairsDown
			Destination 1
			stat 5 1
		end

		Persona 1657
		% Manager of the Colosseum
		% V1 = Current Challenge Rating
		% V2 = Arena Recharge Time
		% V3 = Rank
		greeting <NewChat ifG G23 V3 else GoOldGreet V= 3 G23 V+ 1 d5 CashPrize Reward Threat V1 100 250 if= V3 10 else GoCashPrize Say 7 G+ 23 1 V+ 3 1 MechaPrize .tcmek Reputation 6 3 History 9>
		GoCashPrize <Say 8>
		.tcmek <Vadel.txt>
		GoOldGreet <ifG ComTime V2 else GoNotReady if= V1 0 else GoHereBefore V= 1 10 Say 1 AddChat 1 AddChat 2>
		GoNotReady <Say 2>
		GoHereBefore <Say 3 AddChat 1 AddChat 2>
		result1 <ifG PCMEKS 0 else goNoMeks EndChat Say 4 SavePos Dynamic 2 Threat V1 75 FrzNU1 FrzNU2 V= 2 ComTime V+ 2 65000 SetMapType ArenaMap>
		FrzNU1 <if= T1 0  if= V1 0 V= 1 1 Return Reputation 6 -5>
		FrzNU2 <if= T2 0  if= V1 0 V= 1 1 Return G+ 23 1 Reputation 6 1 XPV 50>
		goNoMeks <NewChat Say 5 L= 2 1>
		result2 <NewChat Say 6>
		Msg1 <This is the Colosseum, the largest recreational battleground in all the Federated Territories. Pilots come from all over to battle here. What's your interest, stranger?>
		Msg2 <Service crews are hosing down the arena now. The next fight won't be for another few hours, at least.>
		Msg3 <Welcome back to the Colosseum. What can I do for you today?>
		Msg4 <Very good. Gear up and head over to the starting position.>
		Msg5 <Sorry, but you need to have a functioning mecha in order to compete here. I hear \PERSONA 58 has an old junker he might not mind parting with. Ask him.>
		Msg6 <There's a direct cam TV in the Duelist's Hall. Most people watch from there. You could go out to the field, but that's not so popular ever since Russel lost his arm...>
		Msg7 <You have completed your tenth victory making you a gladiator champion! In recognition of your achievement, you have won a new top-of-the-line mecha. Congratulations.>
		Msg8 <That was a good fight! Here's your prize money for winning.>
		Msg9 <You were crowned Colosseum champion.>
		prompt1 <I want to compete.>
		prompt2 <I want to watch the games.>

		Persona 1670
		% Score Indicator
		greeting <NewChat if= G23 0 else GoWonSomething SayAnything>
		GoWonSomething <if= G23 1 else GoMultipleWins Say 1>
		GoMultipleWins <if= G23 10 else GoCheckChamp Say 4>
		GoCheckChamp <ifG G23 10 else GoStillWorking Say 3>
		GoStillWorking <Say 2>
		Msg1 <Well, you managed to win once, but they say anyone can do that. It'll take 9 more fights to reach the championship.>
		Msg2 <I love watching the games. You've had \VAL G23 wins so far. Think you can go all the way? If you can win ten fights, you'll be crowned arena champion.>
		Msg3 <You're a pretty good pilot. It's always fun to watch you in a match.>
		Msg4 <You did it! You won the championship! Go speak to \PERSONA 1657 because I think there's a prize involved...>

		Persona 1658
		% Maybe can get mecha from this pilot.
		% V1 -> Already gave away his mek.
		greeting <NewChat if= V1 0 else GoNormalGreeting ifG L2 0 else GoNoReccomend Say 2 AddChat 1>
		GoNoReccomend <ifG PCRep 1 45 else GoNormalGreeting Say 3 AddChat 2 AddChat 3>
		GoNormalGreeting <Say 1>
		result1 <NewChat ifG PCRep 1 -7 else GoVillain say 6 AddChat 4>
		GoVillain <Say 7>
		result2 <NewChat Say 5 AddChat 4>
		result3 <EndChat Say 4 Reputation 2 -3 V= 1 1>
		result4 <NewChat Say 8 V= 1 1 ifG PCRep 1 90 else GoNoSuper MechaPrize Mek_Super>
		GoNoSuper <ifG PCRep 1 50 else GoNoVery MechaPrize Mek_VeryGood>
		GoNoVery <ifG PCRep 1 25 else GoPlain MechaPrize Mek_Good>
		GoPlain <MechaPrize Mek_Plain>
		Mek_Super <Radcliff.txt>
		Mek_VeryGood <Vadel.txt>
		Mek_Good <BuruBuru.txt>
		Mek_Plain <Razer.txt>
		Msg1 <The old days are gone, and we shall never see their like again.>
		Msg2 <You seem as if you're looking for something... what business could you have with an old retired pilot like me?>
		Msg3 <I've heard tell of your exploits, young one. I have a favor to ask of you.>
		Msg4 <I see... well, pleasant journeys to you.>
		Msg5 <Well, you see, I retired a while back. My body's not in such good condition anymore... but my steed, well, she's as good as ever. I was wondering if you could take her off my hands... keep her useful.>
		Msg6 <I've got an old mecha, yes. It's well-worn and not very useful I thing. You want to take it off my hands?>
		Msg7 <Sorry, I don't own a mecha and I don't know where you can find one.>
		Msg8 <Here are the keys. Take good care of her.>
		prompt1 <I'm looking for a mecha.>
		prompt2 <How can I help you?>
		prompt3 <I'm too busy to do favors for old men.>
		prompt4 <I'd be glad to!>

		Persona 1609
		% Turing - Can train the player in personal or mecha combat
		% V1 -> Player has chosen whether to learn mecha or personal skills
		greeting <NewChat  if= V1 1 else GoNoMecha  ifG React 50 else GoNoChance  ifG PCRep 1 0 else GoNoChance  Say 11  AddChat 3  AddChat 2>
		GoNoMecha <if= V1 2 else GoNoTraining  ifG React 50 else GoNoChance  ifG PCRep 1 0 else GoNoChance  Say 6  AddChat 1  AddChat 2>
		GoNoTraining <ifG React 50 else GoNoChance  ifG PCRep 1 d100 else GoNotYet  ifG PCRep 6 d100 else GoNotYet  Say 14  AddChat 4  AddChat 5  AddCHat 6>
		GoNotYet <Say d5>
		GoNoChance <SayAnything>
		result1 <EndChat  Say 12  V= 1 2  School .comskills  Say 13>
		.comskills <6 7 8 10 13 18 26 12>
		result2 <NewChat  Say 6>
		result3 <EndChat  Say 12  V= 1 1  School .mekskills  Say 13>
		.mekskills <1 2 3 4 5 11 15>
		result4 <NewChat  Say 15  AddChat 3  V= 1 1>
		result5 <NewChat  Say 15  AddChat 1  V= 1 2>
		result6 <NewChat  Say 16  AddChat 1  AddChat 3>
		Msg1 <Bounty hunting has taught me a lot... It has also taken a lot from me.>
		Msg2 <I've been close to death more times than I care to remember. The main thing is to keep that fighting spirit.>
		Msg3 <A few years ago I thought I'd start looking for an apprentice, someone to pass all my skills on to.>
		Msg4 <You know, it wasn't the troglodytes which destroyed Nara... But maybe I shouldn't go dredging up old memories like that.>
		Msg5 <You can learn a thing or two from your elders. If I had followed that advice when I was young maybe I'd still have both of my own legs.>
		Msg6 <It's a pleasure to have you here. Tell me about all your latest exploits.>
		Msg11 <Good to see you again. You up for some more training, or just here to chat for a while?>
		Msg12 <Let's get to work. There are two ways to learn something... Go make the mistakes yourself, or listen to all the mistakes other people made.>
		Msg13 <Keep up the training and you'll be making progress in no time.>
		Msg14 <Tell me something... I know that you're an adventurer, you've got quite a reputation for yourself. Which do you prefer, piloting a mecha or up close personal fighting?>
		Msg15 <So I see. Well, I'll tell you why I asked. I want to help train you. I've learned quite a bit in my decades as a bounty hunter, and I figure you'd be a good one to pass my knowledge on to.>
		Msg16 <I'll tell you why I was asking. I want to train you. Which group of skills would you most like to brush up on?>
		Prompt1 <I want to study my combat skills.>
		Prompt2 <I'm just visiting.>
		Prompt3 <I want to study my mecha skills.>
		Prompt4 <I'm a mecha pilot.>
		Prompt5 <I prefer personal combat.>
		Prompt6 <I'm not a fighter at all.>

		Persona 1610
		% Shopkeeper - Guns
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		wares <4 5>
		Msg1 <Welcome to the Duelist's shop. We specialize in the best equipment for the modern professional warrior. Feel free to peruse our selection of blades and firearms.>
		Msg2 <I hope that we have something that you'll be interested in.>
		Msg3 <Come back again.>
		prompt1 <I'd like to look at your weapons.>

		Persona 1611
		% Shopkeeper - Armor
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares EndChat Say 3>
		wares <10 11>
		Msg1 <Welcome to the Duelist's shop. We provide arms and armaments for the modern professional warrior. Here you will find all the latest protective gear.>
		Msg2 <Remember, we custom fit all our armor for maximum comfort and flexibility.>
		Msg3 <Come back again.>
		prompt1 <I'd like to look at your armor.>

		Persona 1615
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares EndChat Say 3>
		wares <MECHA MEXTRA 17>
		Msg1 <This is Namok Oil. Are you in need of repair, or would you like to have a look at the new and used equipment we have here for sale?>
		Msg2 <Let me know what you need and I'll make sure that you get set up correctly.>
		Msg3 <Good luck out there.>
		prompt1 <Let me see what you've got.>

		Persona 1616
		greeting <NewChat Say 1  AddChat 1  AddChat 2>
		result1 <Say 2 Shop NoWares EndChat Say 3>
		result2 <NewChat Say 5>
		Msg1 <Welcome to Namok Hospital. Are you injured? Do you need any help?>
		Msg2 <I'll do what can be done for you.>
		Msg3 <Try not to get yourself killed, please.>
		Msg5 <That's a relief.>
		prompt1 <I need medical help!>
		prompt2 <I'm doing fine.>

		Persona 1619
		% V1 = Destination
		% V2 = Fare
		% V3 = Time
		greeting <NewChat Say 1 AddChat 1 AddChat 4>
		result1 <NewChat V= 1 10 V= 2 100 V= 3 3600 Say 2 AddChat 2 ifG PC$ V2 AddChat 3>
		result2 <NewChat Say 4>
		result3 <EndChat if= SCeneFaction V1 11 else GoR3NoBus Say 3 Time V3 Cash+ -V2 Exit 1 SeekGate V1>
		GoR3NoBus <Say 5>
		result4 <NewChat V= 1 17 V= 2 85 V= 3 3600 Say 2 AddChat 2 ifG PC$ V2 AddChat 3>
		Msg1 <This is Namok Bus Terminal. From here you can take a bus to Snake Lake or Wujung.>
		Msg2 <The ride from here to \SCENE V1 costs $ \VAL V2 . Do you want to go?>
		Msg3 <Here's your ticket. The bus will drop you off on the outskirts of Snake Lake; from there it's a short walk to downtown.>
		Msg4 <Have a nice day.>
		Msg5 <Oh... all buses on the \SCENE V1 line have been cancelled for today.>
		Prompt1 <I'd like to go to Snake Lake.>
		Prompt2 <No thanks.>
		Prompt3 <I'll have one ticket, please.>
		Prompt4 <I'd like to go to Wujung.>


	end
	inv
		NPC Leader
		SetPersona 1601
		SetTeam 2
		SetFaction 1
		home <Red Fortress>

		NPC Soldier
		SetPersona 1602
		chardesc Old Renowned
		SetTeam 2
		SetFaction 1
		home <Red Fortress>
		mecha <>

		NPC Soldier
		SetPersona 1603
		SetTeam 3
		SetFaction 1

		NPC Soldier
		SetPersona 1604
		SetTeam 3
		SetFaction 1

		NPC Mecha Pilot
		mecha <Vadel.txt>
		SetPersona 1605
		SetTeam 3
		SetFaction 1

		NPC Mecha Pilot
		mecha <Radcliff.txt>
		SetPersona 1606
		SetTeam 3
		SetFaction 1

		NPC Mecha Pilot
		mecha <IceWind.txt>
		SetPersona 1607
		SetTeam 3
		SetFaction 1

		Prop 3
		name <Video Terminal>
		roguechar <&>
		home <Duelist's Hall>
		use <ifYesNo 1 2 3 MoreMemo News>
		Msg1 <This is a widescreen flatvision video terminal. Very nice.>
		Msg2 <Check world news.>
		Msg3 <Leave it alone.>


		NPC Guardian
		SetPersona 1608
		SetTeam 3

		NPC Bounty Hunter
		name <Turing>
		rumor <Turing had an exciting career as a bounty hunter, and now has the cybernetic parts to prove it.>
		home <Duelist's Hall>
		mecha <Longman.txt>
		chardesc Old male Lawful Heroic Pragmatic Sociable
		SetPersona 1609
		SetTeam 2
		skill 2 15
		skill 5 15
		skill 10 15
		skill 13 19
		skill 12 17
		skill 26 19
		skill 30 16

		NPC Shopkeeper
		home <Duelist's Hall>
		SetPersona 1610
		SetTeam 2

		NPC Shopkeeper
		home <Duelist's Hall>
		SetPersona 1611
		SetTeam 2

		NPC Citizen
		SetPersona 1612
		SetTeam 2

		NPC Citizen
		SetPersona 1613
		SetTeam 2

		NPC Citizen
		SetPersona 1614
		SetTeam 2

		NPC Mechanic
		home <Namok Oil>
		SetPersona 1615
		SetTeam 2

		NPC Doctor
		home <Mercy Hospital>
		chardesc melancholy sociable passionate
		SetPersona 1616
		SetTeam 2

		NPC Nurse
		home <Mercy Hospital>
		SetPersona 1617
		SetTeam 2

		NPC Soldier
		SetPersona 1618
		SetTeam 3
		SetFaction 1
		mecha <Excel.txt>

		NPC Shopkeeper
		SetPersona 1619
		SettEAM 2
		home <Bus Terminal>
		job <Ticket Vendor>

		NPC Mecha Pilot
		SetPersona 1658
		SetTeam 2
		mecha <>
		chardesc Lawful Heroic Old Pragmatic Melancholy

		NPC Citizen
		SetPersona 1657
		SetTeam 2
		home <Colosseum>
		job <Arena Manager>

		NPC Citizen
		SetPersona 1670
		SetTeam 2
		home <Colosseum>

	end


Scene 17 0
	name <Wujung>
	type <Target City Town>

	CityMap
	special <ShowAll>

	SetFaction 11

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% 1 -> Message first time entering town.
	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 Exit 1>
	start <if= V1 0 else GoSecondTime Print 1 V= 1 1>
	GoSecondTime <Print 2>
	Msg1 <You enter an old and impressive city. New construction has been built atop the ruins of the past.>
	Msg2 <You enter Wujung.>

	rumor <Wujung was built on top of a ruined city.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 3 1
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Town Militia
		SetAlly 2 1

		room 14 6
		name <Wujung University>
		FloorType 30
		BorderType 24

		room 9 6
		name <Elite Armaments>
		FloorType 20

		room 10 12
		name <Blue Fortress>
		FloorType 20
		BorderType 29

		room 8 8
		name <Wujung Tires>
		FloorType 26

		room 8 5
		name <Wujung Hospital>
		FloorType 28

		room 5 5
		name <Allied Armor>
		FloorType 26
		BorderType 29

		room 7 7
		name <Black Isle Pub>
		FloorType 20
		BorderType 15

		room 5 5
		FloorType 20

		room 5 5
		name <Bus Terminal>

		room 5 5
		FloorType 20

		rect
		width 2
		height 2
		sub
			% This is a hidden exit to the world map!
			StairsDown
			Destination 1
			stat 5 1
		end

		Persona 1712
		% Shopkeeper - Guns
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares Say 3 EndChat>
		wares <4 5 MEXTRA MECHA>
		Msg1 <Welcome to Elite Armaments. This is the leading weapons shop in the Federated Territories. We stock all kinds of personal scale and mecha armaments.>
		Msg2 <Take a look through the showroom.>
		Msg3 <Please come again.>
		prompt1 <Show me what you've got.>

		Persona 1713
		% Shopkeeper - Armor
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop Wares EndChat Say 3>
		wares <10 11 17 MEXTRA>
		Msg1 <This is Allied Armor. Our shop maintains a connection between the greatest researchers and craftsmen working on armor today. We have protection for people, we have protection for mecha. We have everything you'll need.>
		Msg2 <Take a look through what we have. If you can't see what you want then chances are you don't really need it.>
		Msg3 <Keep it safe.>
		prompt1 <I'll take a look.>

		Persona 1714
		greeting <NewChat Say 1 AddChat 1>
		result1 <Say 2 Shop NoWares EndChat Say 3>
		Msg1 <Welcome to Wujung Tires, where the lowest price is a happy accident! We do service and repairs on all kinds of civilian and military mecha.>
		Msg2 <Really? I'll take a look at it and see what I can do.>
		Msg3 <Goodbye.>
		prompt1 <I've got damage to repair.>

		Persona 1715
		greeting <NewChat Say 1  AddChat 1  AddChat 2>
		result1 <Say 2 Shop NoWares EndChat Say 3>
		Msg1 <Welcome to Wujung Hospital. My name is Doctor \PERSONA 1715 and I'll be your medical health professional for today.>
		Msg2 <Please take off your clothes and I'll see how bad the damage is.>
		Msg3 <Stay healthy.>
		prompt1 <I'm injured.>

		Persona 1716
		greeting <NewChat  if= PCFac 0 else GoPCHasFaction  Goto GoStudy>
		GoPCHasFaction <ifG SceneFaction 17 0 else GoStudy  if= PCFac SceneFaction 17 else GoNoService  Goto GoStudy>
		GoStudy <Say 2  AddChat 1>
		GoNoService <Say 1>
		result1 <EndChat Say 3 School .sklist Say 4>
		.sklist <14 15 16 20 22 23 24 29 30>
		Msg1 <I'm sorry, but you are not currently eligible for training at this university. It's beyond my control.>
		Msg2 <Welcome to Wujung University. Here you may broaden your mind, expand your horizons, and maybe even improve your employment opportunities.>
		Msg3 <We'll start work right away. What subject would you like to study?>
		Msg4 <Remember, everything is a learning opportunity.>
		Prompt1 <I'd like to study.>

		Persona 1720
		% V1 = Destination
		% V2 = Fare
		% V3 = Time
		greeting <NewChat Say 1 AddChat 1 AddChat 4>
		result1 <NewChat V= 1 10 V= 2 80 V= 3 3600 Say 2 AddChat 2 ifG PC$ V2 AddChat 3>
		result2 <NewChat Say 4>
		result3 <EndChat if= SCeneFaction V1 11 else GoR3NoBus Say 3 Time V3 Cash+ -V2 Exit 1 SeekGate V1>
		GoR3NoBus <Say 5>
		result4 <NewChat V= 1 16 V= 2 80 V= 3 3600 Say 2 AddChat 2 ifG PC$ V2 AddChat 3>
		Msg1 <This is Wujung Bus Terminal. From here you can take a bus to Snake Lake or Namok.>
		Msg2 <The ride from here to \SCENE V1 costs $ \VAL V2 . Do you want to go?>
		Msg3 <Here's your ticket. The bus will drop you off on the outskirts of Snake Lake; from there it's a short walk to downtown.>
		Msg4 <Have a nice day.>
		Msg5 <Oh... all buses on the \SCENE V1 line have been cancelled for today.>
		Prompt1 <I'd like to go to Snake Lake.>
		Prompt2 <No thanks.>
		Prompt3 <I'll have one ticket, please.>
		Prompt4 <I'd like to go to Namok.>

	end
	inv
		NPC Leader
		SetPersona 1701
		SetTeam 2
		SetFaction 2
		home <Blue Fortress>

		NPC Soldier
		SetPersona 1702
		chardesc Old Renowned
		SetTeam 2
		SetFaction 2
		home <Blue Fortress>
		mecha <>

		NPC Soldier
		SetPersona 1703
		SetTeam 3
		SetFaction 2

		NPC Soldier
		SetPersona 1704
		SetTeam 3
		SetFaction 2

		NPC Mecha Pilot
		SetPersona 1705
		SetTeam 3
		SetFaction 2
		mecha <Zerosaiko.txt>

		NPC Mecha Pilot
		SetPersona 1706
		SetTeam 3
		SetFaction 2
		mecha <Excel.txt>

		NPC Mecha Pilot
		SetPersona 1707
		SetTeam 3
		SetFaction 2
		mecha <Puma.txt>

		NPC Guardian
		SetPersona 1708
		SetTeam 3

		NPC Citizen
		SetPersona 1709
		SetTeam 2

		NPC Citizen
		SetPersona 1710
		SetTeam 2

		NPC Citizen
		SetPersona 1711
		SetTeam 2

		NPC Shopkeeper
		SetPersona 1712
		SetTeam 2
		home <Elite Armaments>
		Skill 21 14

		NPC Shopkeeper
		SetPersona 1713
		SetTeam 2
		home <Allied Armor>

		NPC Mechanic
		SetPersona 1714
		SetTeam 2
		home <Wujung Tires>

		NPC Doctor
		SetPersona 1715
		SetTeam 2
		home <Wujung Hospital>

		NPC Scientist
		SetPersona 1716
		SetTeam 2
		home <Wujung University>
		chardesc old

		NPC Bandit
		SetPersona 1717
		SetTeam 2

		NPC Soldier
		SetPersona 1718
		SetTeam 3
		SetFaction 2
		home <Blue Fortress>

		NPC Bartender
		SetPersona 1719
		SetTeam 2
		home <Black Isle Pub>

		NPC Shopkeeper
		SetPersona 1720
		SetTeam 2
		home <Bus Terminal>
		job <Ticket Vendor>

		Prop 3
		name <Video Terminal>
		roguechar <&>
		home <Black Isle Pub>
		use <ifYesNo 1 2 3 MoreMemo News>
		Msg1 <This is a video info terminal. Would you like to check the news to see what's happening in the world?>
		Msg2 <Yes I would.>
		Msg3 <No, not really.>

	end

Scene 18 0
	name <Kist Ruins L1>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <if= V1 0 else GoBeenBefore V= 1 1 Print 2>
	GoBeenBefore <Print 1>
	Msg1 <You enter Kist Ruins, level one.>
	Msg2 <You find an ancient set of tunnels, apparently once part of an underground complex. In the distance you hear the humming of a very large machine.>

	CaveMap

	sub
		Rect
		name <Entrance>
		Width 3
		Height 3
		sub
			StairsUp
			Destination 14
		end

		rect
		width 8
		height 8
		name <Way Down>
		FloorType 16
		sub
			StairsDown
			Destination 19
		end

		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Robot Ruins Synth Earth Bug>
		setenemy 1
		stat 2 7
	end
	inv
		monster Sentinel
		SetTeam 2
		home <Way Down>

		Prop 10
		roguechar <%>
		home <Entrance>
		name <Skeleton>
		use <if= V1 0 else GoUBefore V= 1 1 Print 1>
		GoUBefore <Print 2>
		Msg1 <It's a skeleton. He looks like he's been here for quite a long time. A dusty fedora and tattered leather whip lie close to the body.>
		Msg2 <It's a skeleton.>
		CLUE14 <Print 101 V= 101 1>
		CLUE29 <Print 102 if= V102 0 Reputation 7 d3 V= 102 1>
		CLUE34 <if= V103 0 V= 103 1 else GoC34Again Reputation 7 -d6 ifG SkRoll 34 10 else GoC34NoWin Print 103 XPV 100>
		GoC34NoWin <Print 104>
		GoC34Again <Print 105>
		Msg101 <If you were really that concerned about survival, maybe you'd get out of this place.>
		Msg102 <The bones of this skeleton have been partially vaporized, and some of the joints were fused by heat. Looks like this explorer was killed by a very high powered plasma weapon.>
		Msg103 <You say a short prayer for the soul of the deceased.>
		Msg104 <You say a short prayer that you don't end up dead like this guy.>
		Msg105 <You've already prayed here.>

	end

Scene 19 0
	name <Kist Ruins L2>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	% V1 = Message Counter
	% V2 = Activate down stairway
	start <if= V1 0 else GoBeenBefore V= 1 1 ifG SkRoll 29 10 else GoNoScience Print 2>
	GoNoScience <Print 3>
	GoBeenBefore <Print 1>
	Msg1 <You enter Kist Ruins, level two.>
	Msg2 <As you descend into the second level, you realize that these ruins were once a factory.>
	Msg3 <The walls on this level appear to be made of rusted steel.>

	ComplexMap
	FloorType 14
	MarbleType 16
	BorderType 35

	sub
		CFiller
		BorderType 35
		Width 12
		Height 12
		sub
			rect
			FloorType 16
			sub
				StairsUp
				Destination 18
			end

			rect
			FloorType 16
			Special <Cell>
			sub
				Door
				Lock
			end
		end

		CFiller
		BorderType 35
		Width 7
		Height 5
		sub
			rect
			FloorType 16
			sub
				Sign
				% V1 = Found access port
				name <Machine>
				Use <Print 1>
				clue29 <ifG SkRoll 29 10 else GoNoSci Print 3 V= 1 1>
				GoNoSci <Print 2>
				clue32 <ifG V1 0 else GoNotFound ifG SkRoll 32 15 else GoNoCB L= 2 1 UpdateProps Print 5>
				GoNotFound <Print 4>
				GoNoCB <Print 6>
				msg1 <You find an old, broken down machine of some type.>
				msg2 <You don't learn anything from this rusted piece of junk.>
				msg3 <You discover an old keypad on this machine. The lights are flashing, so maybe it still does something.>
				msg4 <There's no obvious way to use that skill with this item.>
				msg5 <You play around with the keypad. You hear a grinding noise in the distance.>
				msg6 <You play around with the keypad.>
			end
		end

		CFiller
		BorderType 35
		Width 8
		Height 12
		sub
			rect
			FloorType 16
			sub
				StairsDown
				Destination 26
				stat 5 1
				update <ifG L2 0 SetStat 5 0>
			end
		end


		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Robot Bug Synth Factory>
		setenemy 1
		stat 2 25
	end
	inv
		Treasure 5000
		mass 15
		name <Data Cannister>

		Treasure 7500
		mass 24
		name <Fuel Rod>
	end

Scene 20 0
	name <Brock's Wine Cellar>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter the wine cellar.>

	CaveMap

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 13
		end

		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 21
		end

		team 1
		setenemy 2

		team 2
		name <Monsters>
		type <Dark Cave Swamp Animal Criminal>
		setenemy 1
		stat 2 8
	end
	inv
		Treasure 100
		name <Fine Wine>
		mass 1

		Treasure 100
		name <Fine Wine>
		mass 1

		Treasure 100
		name <Fine Wine>
		mass 1

		Treasure 50
		name <Nasty Wine>
		mass 1

		Treasure 80
		name <Golden Rum>
		mass 2
	end

Scene 21 0
	name <Ipshil Sewers>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter the Ipshil Sewers.>
	CaveMap
	FloorType 14
	MarbleType 7
	sub
		Rect
		Width 5
		Height 5
		FloorType 14
		sub
			StairsUp
			Destination 20
		end

		Rect
		Width 5
		Height 5
		FloorType 14
		sub
			StairsDown
			Destination 22
		end

		team 1
		setenemy 2

		team 2
		name <Monsters>
		type <Dark Water Swamp Criminal>
		setenemy 1
		stat 2 13
	end

Scene 22 0
	name <Ipshil Catacombs>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter the Ipshil Catacombs.>
	CaveMap
	FloorType 7
	MarbleType 14
	sub
		Rect
		Width 3
		Height 3
		FloorType 14
		sub
			StairsUp
			Destination 21
		end

		team 1
		setenemy 2

		team 2
		name <Monsters>
		type <Dark Ruins Criminal Devo>
		setenemy 1
		stat 2 19
	end
	inv
		Treasure 10000
		mass 10
		name <Crystal Shard>

		Prop 20
		name <Cryogenics Tank>
		roguechar <=>
		use <Print 1>
		Msg1 <This tank is filled with a viscous blue liqued. Through a small porthole you can see organic shapes floating around inside.>

		Prop 20
		name <Cryogenics Tank>
		roguechar <=>
		use <Print 1>
		Msg1 <This tank is filled with a viscous blue liqued. Through a small porthole you can see organic shapes floating around inside.>

		Prop 20
		name <Cryogenics Tank>
		roguechar <=>
		use <Print 1>
		Msg1 <This tank is filled with a viscous blue liqued. Through a small porthole you can see a large dark mass inside.>

	end

Scene 23 0
	name <Snake Lake Park>

	WildMap
	
	special <ShowAll>

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% V1 = First time entry counter

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 ifYesNo 2 3 4 else GoWorldMap Exit 10>
	GoWorldMap <Exit 1 SeekGate 10>
	start <Print 1>
	Msg1 <You enter Snake Lake Park.>
	Msg2 <Do you want to return to downtown, or exit the city altogether?>
	Msg3 <Go downtown.>
	Msg4 <Exit the city.>

	CLUE14 <Print 101>
	Msg101 <It's a well-landscaped park. Not nature, but a remarkable simulation.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 1 3
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Town Militia
		SetAlly 1 2

		rect
		name <Zoo>
		width 35
		height 25
		FloorType 1
		MarbleType 17
		sub
			rect
			name <Penguin Exhibit>
			width 6
			height 6
			PARAM <Fill 30 0 Ellipse 30 8 9 Wall 21>

			rect
			name <Marsh Exhibit>
			width 6
			height 6
			PARAM <Fill 7 2 Wall 21>

			rect
			name <Dragon Exhibit>
			width 5
			height 5
			PARAM <Fill 14 9 Wall 21>

			rect
			width 7
			height 7
			PARAM <Fill 1 0 Wall 21>

			rect
			name <Zoo Sign>
			width 5
			height 5
			FloorType 17
			MarbleType 1
			sub
				Sign
				Msg1 <Welcome to the Snake Lake zoo. Please enjoy our many exhibits from all over the world. Take your kids to see the penguins!>
			end
		end

		room 7 12
		name <Mecha Museum>
		WallType 13
		sub
			Sign
			name <Model Display>
			Use <ifYesNo 1 2 3 Print 4 moretext .signtext>
			.signtext <TS_Text_SLMM1.txt>
			Msg1 <You stand before a display of mecha models, lovingly crafted in 1/144 scale. Do you want to read the plaque?>
			Msg2 <Yes please.>
			Msg3 <No thank you.>
			Msg4 <You read the display.>

			Sign
			name <Model Display>
			Use <ifYesNo 1 2 3 Print 4 moretext .signtext>
			.signtext <TS_Text_SLMM2.txt>
			Msg1 <You stand before a model of a strangely organic flying mecha. Do you want to read the plaque?>
			Msg2 <Yes please.>
			Msg3 <No thank you.>
			Msg4 <You read the display.>

		end

		rect
		width 5
		height 5
		sub
			Sign
			Destination 10
		end

		rect
		name <Nature Trail>
		width 5
		height 5
		sub
			Sign
			name <Snake Lake Nature Trail>
			use <IfYesNo 1 2 3 Time d600 Exit StatVal 4>
			Msg1 <This sign points the way to the Snake Lake Nature Trail. At the bottom of the sign is a warning message, but the text has been gnawed off by some kind of animal.>
			Msg2 <Follow the trail.>
			Msg3 <Sounds dangerous.>
			Destination 27
		end

		Persona 2304
		% Curator of mecha museum.
		greeting <NewChat Say 1 ifKeyItem 2 AddChat 1>
		result1 <NewChat Say 2 AddChat 2 AddChat 3>
		result2 <NewChat CashPrize 1000000 DeleteKeyItem 2 AddReact d10 AddReact d10 Say 3>
		result3 <NewChat Say 4>
		Msg1 <This is the Snake Lake Mecha Museum. Please enjoy our exhibits.>
		Msg2 <Well, this is amazing... As far as I can tell, these are the original plans for an unreleased ITM-series mecha. Would you sell these to me for $1,000,000?>
		Msg3 <Thank you very much! These blueprints will provide a valuable historical reference, and a new attraction for the museum!>
		Msg4 <Well, if you should happen to change your mind, you can always come back.>
		prompt1 <Here, look at these blueprints I found.>
		prompt2 <Definitely!>
		Prompt3 <No, I wanna keep them.>

		Persona 2307
		greeting <EndChat Say d8 AddChat 1 AddChat -1>
		result1 <Say d8>
		Msg1 <Squaaaaak!!!>
		Msg2 <Broo? Bru Bru.>
		Msg3 <Squak! Squak!>
		Msg4 <Squak? Broo squak.>
		Msg5 <BROOO!!!!!>
		Msg6 <Broo Broo SQUAK!>
		Msg7 <Squak.>
		Msg8 <Broo.>
		Prompt1 <[Chat]>
		Prompt-1 <[Goodbye]>
	end
	inv
		Monster Electric Rat
		SetTeam 2
		home <Zoo>

		Monster Emperor Fire Penguin
		SetTeam 3
		home <Penguin Exhibit>
		SetPersona 2307

		Monster Fire Penguin
		SetTeam 2
		home <Penguin Exhibit>

		Monster Fire Penguin
		SetTeam 2
		home <Penguin Exhibit>

		Monster Dark Dragon
		SetTeam 3
		home <Dragon Exhibit>

		Monster Swamp Viper
		SetTeam 2
		home <Marsh Exhibit>

		Monster Spike Toad
		SetTeam 2
		home <Marsh Exhibit>

		NPC Citizen
		SetPersona 2301
		SetTeam 2
		home <Zoo Sign>

		NPC Citizen
		SetPersona 2302
		SetTeam 2
		home <Zoo Sign>

		NPC Citizen
		SetPersona 2303
		SetTeam 2
		home <Zoo Sign>

		NPC Citizen
		SetPersona 2304
		SetTeam 2
		home <Mecha Museum>
		job <Curator>
		chardesc old

		NPC Guardian
		home <Nature Trail>
		SetTeam 3
		SetPersona 2305
	end

Scene 24 0
	name <Snake Lake Corporate Zone>

	CityMap
	
	special <ShowAll>

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% V1 = First time entry counter
	% V2 = LifeCorp Labs quest given

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 ifYesNo 2 3 4 else GoWorldMap Exit 10>
	GoWorldMap <Exit 1 SeekGate 10>
	start <Print 1>
	.urbstory <TS_Story_Urb_*.txt>
	Msg1 <You enter the Snake Lake Corporate Zone.>
	Msg2 <Do you want to return to downtown, or exit the city altogether?>
	Msg3 <Go downtown.>
	Msg4 <Exit the city.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		SetAlly 1 3
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		% Town Militia
		SetAlly 1 2

		team 5
		% LifeCorp Monsters
		setenemy 1 2

		rect
		width 5
		height 5
		sub
			Sign
			Destination 10
		end

		Complex
		Height 10
		Width 10
		name <Factory>
		BorderType 35
		FloorType 14

		room 7 5
		name <BioCorp Building>
		BorderType 34
		FloorType 30

		complex
		name <BioCorp Labs>
		BorderType 34
		FloorType 30
		width 10
		height 12
		sub
			rect
			FloorType 14
			name <Holding Cell>
			special <Cell>
			sub
				Door
				Lock 20
				Update <ifG L2 0 SetStat 6 0>

				StairsDown
				Destination 30
				stat 5 -1
				Update <ifG L2 0 SetStat 5 0>
			end
		end


		room 7 5
		name <Regex Corporation>
		BorderType 35

		room 7 7
		name <Kettel Building>
		BorderType 29
		FloorType 28

		Persona 2407
		% V1 = Mission Cancel Counter
		greeting <NewChat if= V1 0 else GoNothing if= L2 1 else GoNoMission ifItemOK 4 else GoNotFinished Say 10>
		GoNotFinished <Say 11 CashPrize 23000 XPV 250 V= 1 1>
		GoNoMission <ifItemOK 3 else GoHunterDead ifG React 50 else GoCheckWangtta Say 3 AddChat 1 AddChat 2>
		GoCheckWangtta <ifG 0 PCRep 6 else GoNothing Say 2 AddChat 1 AddChat 2>
		GoHunterDead <Say 1 AddChat 1 AddChat 2>
		GoNothing <SayAnything>
		result1 <NewChat Say 4 V= 1 1 Reputation 4 -d6 Reputation 2 1 Reputation 7 -d6>
		result2 <NewChat Say 5 AddChat 3 AddChat 4 ifG SkRoll 29 7 AddChat 5>
		result3 <NewChat Say 6 Memo 7 L= 2 1 UpdateProps>
		result4 <NewChat Say 8 V= 1 1>
		result5 <NewChat Say 9 AddChat 3 AddChat 4>
		Msg1 <You shouldn't go poking around here. You aren't authorized for this lab. However, since you are the type to go poking around... I have a job you may be interested in.>
		Msg2 <You look like the type who doesn't have much to lose. I have a job avaliable for just such a person, if you're willing to stand a little danger in exchange for riches and glory.>
		Msg3 <I've got a problem. You could help me, if you're willing. It's a bit dangerous. Pay is good, though.>
		Msg4 <It's not very reasonable to refuse my offer before you've even heard the details.>
		Msg5 <BioCorp industries has a delicate problem. Beneath this lab is an old production complex, currently infested with bioweapons. If their spawning vat were destroyed, they could no longer reproduce. I'll pay $23000 it you can destroy it.>
		Msg6 <Yes. You can find the entrance to the complex in our storage cell. Be careful of the monsters... they are the most dangerous creatures technology can produce.>
		Msg7 <\PERSONA 2407 in \SCENE SCeneID wants you to destroy the spawning vat in the basement of BioCorp Labs.>
		Msg8 <It is.>
		Msg9 <We were obliged to, it is true, but deactivating the Hunter-X series has proved to be more difficult than was expected. In this case we have opted for containment instead.>
		Msg10 <Please put an end to these unwanted creatures once and for all.>
		Msg11 <Thank you for destroying the spawning vat. Here's your reward. I think we may all sleep a little easier tonight.>
		Prompt1 <I'm not interested in working for you.>
		Prompt2 <Tell me about it.>
		Prompt3 <I'll do it for you.>
		Prompt4 <That sounds too dangerous.>
		Prompt5 <Wasn't BioCorp ordered to destroy them?>

	end
	inv
		NPC Corporate Executive
		SetTeam 2
		SetPersona 2401
		home <Regex Corporation>
		SetFaction 6

		NPC Corporate Executive
		SetTeam 2
		SetPersona 2402
		home <Regex Corporation>
		Mecha <Renegade.txt>
		SetFaction 6

		NPC Corporate Executive
		SetTeam 2
		SetPersona 2403
		home <BioCorp Building>
		chardesc Villainous
		SetFaction 5

		NPC Corporate Executive
		SetTeam 2
		SetPersona 2404
		home <BioCorp Building>
		SetFaction 5

		NPC Corporate Executive
		SetTeam 2
		SetPersona 2405
		home <Kettel Building>
		SetFaction 4

		NPC Corporate Executive
		SetTeam 2
		SetPersona 2406
		home <Kettel Building>
		SetFaction 4

		NPC Scientist
		SetTeam 2
		SetPersona 2407
		home <BioCorp Labs>
		SetFaction 5

		NPC Guardian
		SetTeam 3
		SetPersona 2408

		NPC Guardian
		SetTeam 3
		SetPersona 2409

		NPC Citizen
		SetTeam 2
		SetPersona 2410

		NPC Citizen
		SetTeam 2
		SetPersona 2411

		NPC Journalist
		SetTeam 2
		SetPersona 2411

		NPC Leader
		job <Corporate President>
		SetTeam 2
		SetPersona 2412
		home <BioCorp Building>
		SetFaction 5

		NPC Leader
		job <Corporate President>
		SetTeam 2
		SetPersona 2413
		home <Regex Corporation>
		SetFaction 6


		Monster Hunter-Killer
		home <Holding Cell>
		SetTeam 5
		SetKeyItem 3

	end

Scene 25 0
	name <Snake Lake Waterfront>

	CityMap
	
	special <ShowAll>

	% ******************************************
	% ***  VARIABLES  USED  IN  THIS  SCENE  ***
	% ******************************************
	% V1 = First time entry counter

	% Add level scripts here.
	% If no player units on map, exit to WORLD MAP scene.
	NU1 <if= T1 0 ifYesNo 2 3 4 else GoWorldMap Exit 10>
	GoWorldMap <Exit 1 SeekGate 10>
	start <Print 1>
	.urbstory <TS_Story_Urb_*.txt>
	Msg1 <You enter the waterfront. It looks like a pretty dangerous area.>
	Msg2 <Do you want to return to downtown, or exit the city altogether?>
	Msg3 <Go downtown.>
	Msg4 <Exit the city.>

	sub
		% Sub components. Add teams & stuff here.
		team 1
		% Player team

		team 2
		% Town Citizens
		% Set this team's default orders to PASSIVE
		Stat 1 3

		team 3
		name <Delinquents>
		type <Criminal>
		setenemy 1
		stat 2 7

		room 8 5
		name <Guardian Station>
		BorderType 29

		room 5 5
		name <Lakeside Chapel>
		BorderType 15
		FloorType 30

		room 8 8
		name <Spaceport Authority>
		FloorType 26

		complex
		name <Boarding Party>
		Width 7
		Height 7
		BorderType 36
		FloorType 25

		rect
		width 5
		height 5
		sub
			Sign
			Destination 10
		end


	end
	inv
		NPC Trucker
		SetTeam 2
		SetPersona 2501

		NPC Mecha Pilot
		SetTeam 2
		SetPersona 2502
		SetFaction 3
		name <Britaine>
		job <Guardian Commander>
		home <Guardian Station>
		Skill 2 16
		Skill 5 17
		skill 6 23
		mecha <Monstrous.txt>
		chardesc Male Heroic Lawful Passionate Passionate Passionate Renowned Renowned Renowned

		NPC Citizen
		SetTeam 2
		SetPersona 2503
		chardesc villainous

		NPC Citizen
		SetTeam 2
		SetPersona 2504
		chardesc chaotic

		NPC Bandit
		SetTeam 2
		SetPersona 2505

		NPC Bandit
		SetTeam 2
		SetPersona 2506

		NPC Trucker
		SetTeam 2
		SetPersona 2507

		NPC Priest
		home <Lakeside Chapel>
		SetTeam 2
		SetPersona 2508
		chardesc chaotic heroic

		NPC Citizen
		home <Boarding Party>
		job <Hostess>
		SetTeam 2
		SetPersona 2509
		chardesc Young Chaotic Female

		NPC Journalist
		SetTeam 2
		SetPersona 2510

	end

Scene 26 0
	name <Kist Ruins L3>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter Kist Ruins, level three.>

	ComplexMap
	FloorType 14
	MarbleType 16
	BorderType 35

	sub
		CFiller
		BorderType 35
		Width 12
		Height 12
		sub
			rect
			FloorType 16
			special <Cell>
			sub
				StairsUp
				Destination 19

				Door
				Lock
			end
		end

		CFiller
		BorderType 35
		Width 17
		Height 17
		sub
			rect
			name <Storage Cell>
			special <Cell>
			FloorType 16
			sub
				Door 0
				Lock 30
		 	end
		end


		team 1
		setenemy 2

		team 2
		name <Cave Monsters>
		type <Robot Bug Synth Factory>
		setenemy 1
		stat 2 40
	end
	inv
		Treasure 10000
		name <Mecha Blueprints>
		SetKeyItem 2
		home <Storage Cell>

	end

Scene 27 0
	name <Snake Lake Nature Trail L1>
	NU1 <if= T1 0 Exit 1>
	start <Print 1>
	Msg1 <You follow the Snake Lake Nature Trail.>
	type <Dungeon>

	WildMap

	sub
		rect
		name <Nature Trail>
		width 5
		height 5
		sub
			Sign
			name <Snake Lake Nature Trail>
			use <IfYesNo 1 2 3 Time d600 Exit StatVal 4>
			Msg1 <This sign points the way back to Snake Lake Park.>
			Msg2 <Return to the park.>
			Msg3 <Stay here.>
			Destination 23
		end

		rect
		name <Nature Trail>
		width 5
		height 5
		sub
			Sign
			name <Snake Lake Nature Trail>
			use <IfYesNo 1 2 3 Time d600 Exit StatVal 4>
			Msg1 <This sign points the way to second part of the nature trail. The text is partly obscured by what appear to be blood stains.>
			Msg2 <Follow the trail.>
			Msg3 <Sounds dangerous.>
			Destination 28
		end


		team 1
		setenemy 2

		team 2
		name <Forest Monsters>
		type <Animal Forest City Criminal>
		setenemy 1
		stat 2 12
	end

Scene 28 0
	name <Snake Lake Nature Trail L2>
	NU1 <if= T1 0 Exit 1>
	start <Print 1>
	Msg1 <You follow the Snake Lake Nature Trail.>
	type <Dungeon>

	ForestMap

	sub
		rect
		name <Nature Trail>
		width 5
		height 5
		sub
			Sign
			name <Snake Lake Nature Trail>
			use <IfYesNo 1 2 3 Time d600 Exit StatVal 4>
			Msg1 <This sign points the way back to Snake Lake Park.>
			Msg2 <Return to the park.>
			Msg3 <Stay here.>
			Destination 27
		end

		rect
		name <Nature Trail>
		width 5
		height 5
		sub
			Sign
			name <Snake Lake Nature Trail>
			use <IfYesNo 1 2 3 Time d600 Exit StatVal 4>
			Msg1 <This sign indicates the continuation of the nature trail. A pile of skulls sits at the base.>
			Msg2 <Follow the trail.>
			Msg3 <Sounds very dangerous.>
			Destination 29
		end


		team 1
		setenemy 2

		team 2
		name <Forest Monsters>
		type <Animal Forest City>
		setenemy 1
		stat 2 24
	end

Scene 29 0
	name <Snake Lake Nature Trail L3>
	NU1 <if= T1 0 Exit 1>
	start <Print 1>
	Msg1 <You follow the Snake Lake Nature Trail.>
	type <Dungeon>

	HvForestMap

	sub
		rect
		name <Nature Trail>
		width 5
		height 5
		MarbleType 2
		sub
			Sign
			name <Snake Lake Nature Trail>
			use <IfYesNo 1 2 3 Time d600 Exit StatVal 4>
			Msg1 <This sign points the way back to Snake Lake Park.>
			Msg2 <Return to the park.>
			Msg3 <Stay here.>
			Destination 28
		end

		rect
		name <Nature Trail>
		width 5
		height 5
		MarbleType 2
		sub
			Sign
			% V1 = XP Award for completing the nature trail
			name <Snake Lake Nature Trail>
			use <IfYesNo 1 2 3 Time d600 Exit StatVal 4 SeekGate 27 if= V1 0 V= 1 1 Print 4 XPV 500>
			Msg1 <This sign indicates the end of the Snake Lake Nature Trail. You can follow it directly back to the park.>
			Msg2 <Return to the park.>
			Msg3 <Stay here.>
			Msg4 <You have completed the nature trail.>
			Destination 23
		end

		Clearing
		name <Clearning>
		width 8
		height 8

		team 1
		setenemy 2

		team 2
		name <Forest Monsters>
		type <Animal Forest>
		setenemy 1
		stat 2 36
	end
	inv
		Prop 8
		% V1 = Meditation Recharge
		% V2 = Number of meditations
		home <Clearning>
		roguechar <+>
		name <Forest Shrine>
		use <Print 1>
		clue34 <ifG ComTime V1 else GoAlreadyDone V= 1 ComTime V+ 1 86400 ifG SkRoll 34 10 else GoNoSkill if= V2 0 else GoMed2 V= 2 1 Print 4 XPV 100 Reputation 7 -d3>
		GoMed2 <if= V2 1 else GoMed3 V= 2 2 Print  5 XPV 100 Reputation 7 -d3>
		GoMed3 <if= V2 2 else GoMed4 V= 2 3 Print  6 XPV 150 Reputation 7 -d3>
		GoMed4 <if= V2 3 else GoMed5 V= 2 4 Print  7 XPV 200 Reputation 7 -d3>
		GoMed5 <if= V2 4 else GoMed6 V= 2 5 Print  8 XPV 300 Reputation 7 -d5>
		GoMed6 <if= V2 5 else GoMed7 V= 2 6 Print  9 XPV 400 Reputation 7 -d7>
		GoMed7 <if= V2 6 else GoMed8 V= 2 7 Print 10 XPV 500 Reputation 7 -d9>
		GoMed8 <Print 11 Reputation 7 -1>
		GoAlreadyDone <Print 2>
		GoNoSkill <Print 3>
		Msg1 <You discover a humble shrine in the middle of the forest.>
		Msg2 <You've already meditated here today.>
		Msg3 <You attempt to meditate at the shrine, but are unable to fully concentrate.>
		Msg4 <You meditate. The beauty and peace of the forest calms your spirit.>
		Msg5 <You meditate. So close to the city, yet so green and calm, this place is an enigma.>
		Msg6 <You meditate. At one time, all the Earth was as this place. The wars of man have scarred this green world.>
		Msg7 <You meditate. The world ends in winter but is born anew in spring. Fearing death, the grasshopper makes no preparation and perishes.>
		Msg8 <You meditate. All of nature is creation and destruction, peace and chaos. Man is against nature, Man is a part of nature.>
		Msg9 <You meditate. From its ashes the Phoenix is reborn. That which is alive must ever die, but life itself burns on.>
		Msg10 <You meditate. The world is moving. From the Night of Fire a new life has emerged. You realize that your actions will help direct its course, for good or ill.>
		Msg11 <You meditate.>

	end

Scene 30
	name <BioCorp Basement L1>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter the BioCorp Basement, level one.>
	CaveMap
	FloorType 28
	BorderType 23
	sub
		Rect
		Width 3
		Height 3
		FloorType 28
		sub
			StairsUp
			Destination 24
		end

		Rect
		Width 3
		Height 3
		FloorType 28
		sub
			StairsDown
			Destination 31
		end


		team 1
		setenemy 2

		team 2
		name <Monsters>
		type <Dark Synth Robot HUNTER-X>
		setenemy 1
		stat 2 16
	end

Scene 31
	name <BioCorp Basement L2>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 1>
	Msg1 <You enter the BioCorp Basement, level two.>
	CaveMap
	FloorType 28
	BorderType 23
	sub
		Rect
		Width 3
		Height 3
		FloorType 28
		sub
			StairsUp
			Destination 30
		end

		rect
		height 7
		width 7
		FloorType 28
		MarbleType 5
		name <Spawning Pit>

		team 1
		setenemy 2

		team 2
		name <Monsters>
		type <Dark Synth Robot HUNTER-X>
		setenemy 1
		stat 2 21
	end
	inv
		Prop 30
		name <Spawning Vat>
		home <Spawning Pit>
		SetTeam 2
		SetKeyItem 4

		Monster Hunter-Slayer
		SetTeam 2
		home <Spawning Pit>

	end

Scene 32 0
	name <Snake Lake Sewer L1>
	Type <Dungeon Sewer Open>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 3>
	Msg3 <You enter Snake Lake sewer, level one.>

	CaveMap
	BorderType 29
	FloorType 17
	MarbleType 7

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 10
		end

		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 33
		end

		team 1
		setenemy 2

		team 2
		name <Sewer Monsters>
		type <Swamp Water City Reptile>
		setenemy 1
		stat 2 11
	end

Scene 33 0
	name <Snake Lake Sewer L2>
	Type <Dungeon Sewer Open>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 3>
	Msg3 <You enter Snake Lake sewer, level two.>

	CaveMap
	BorderType 29
	FloorType 17
	MarbleType 7

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 32
		end

		Rect
		Width 3
		Height 3
		sub
			StairsDown
			Destination 34
		end

		rect
		width 15
		height 15
		FloorType 17
		sub
			Room 5 5
			name <Research Station>
		end

		team 1
		setenemy 2

		team 2
		name <Sewer Monsters>
		type <Swamp Water City Reptile>
		setenemy 1
		stat 2 15

		team 3
		% Set this team's default orders to PASSIVE
		Stat 1 3

		Persona 3301
		greeting <NewChat Say 1 AddChat 1 AddChat 6>
		result1 <NewChat Say 2 AddChat 2 AddChat 3 AddChat 5>
		result2 <NewChat Say 3 AddChat 4 AddChat 5>
		result3 <NewChat Say 4 AddChat 4 AddChat 5>
		result4 <NewChat Say 5>
		result5 <NewChat Say 6>
		result6 <EndChat Say 7 Shop .nowares Say 8>
		Msg1 <Hello! It's nice to see a new face down here... we don't get many visitors. Of course, I wouldn't trade my research for the world.>
		Msg2 <This sewer is the natural habitat of albino alligators. I've been tracking the movements of a particularly old male that we call "Bone-Cracker". His lair is somewhere below this research station.>
		Msg3 <Well, Bone-Cracker does seem to have a fondness for human flesh, but I've been here so long that I apparently smell like the environment, so I'm apparently safe.>
		Msg4 <If you're attacked by an albino alligator, run away. One bite can easily mean instant death. If you have to fight, aim for the belly where their scales are softest. They're good at hiding in water and vegetation, so be very cautious.>
		Msg5 <The Snake Lake department of sanitation has given me a research grant. Bone-Cracker has eaten several of their workers, as well as a number of bounty hunters sent here to get rid of him.>
		Msg6 <He's bigger than most albino alligators, very agressive, and likes to eat people. In his lair downstairs he's accumulated quite a collection of bones, weapons, and shiny objects taken from the people he's killed.>
		Msg7 <Maybe I can help you. Living down here and studying the local wildlife, I've picked up a thing or two about first aid...>
		Msg8 <Have a good expedition.>
		Prompt1 <What exactly are you researching?>
		Prompt2 <Isn't that dangerous?>
		Prompt3 <What should I do if I meet one?>
		Prompt4 <Why are you doing this?>
		Prompt5 <Tell me about Bone-Cracker.>
		Prompt6 <Help! I've been injured!>

	end
	inv
		NPC Professor
		SetTeam 3
		SetPersona 3301
		home <Research Station>
		skill 20 12
	end

Scene 34 0
	name <Snake Lake Sewer L3>
	Type <Dungeon Sewer Open>
	special <NoExit>
	NU1 <if= T1 0 Exit -1>
	start <Print 3>
	Msg3 <You enter Snake Lake sewer, level three.>

	CaveMap
	BorderType 29
	FloorType 7
	MarbleType 2

	sub
		Rect
		Width 3
		Height 3
		sub
			StairsUp
			Destination 33
		end

		team 1
		setenemy 2

		team 2
		name <Sewer Monsters>
		type <Swamp Water City Reptile>
		setenemy 1
		stat 2 19

		rect
		width 7
		height 7
		name <Lair>
		FloorType 7
		MarbleType 17

	end
	inv
		Monster Albino Alligator
		name <BONE-CRACKER>
		statline 15 23 13 9 3 15 2 2
		skill 8 11
		skill 13 15
		SetTeam 2
		SetKeyItem 5
		home <Lair>
		cash 896

		NPC Citizen
		equipChar 7000
		% Mark these bodies as artifacts so they won't be deleted
		type <artifact>
		home <Lair>
		Damage 500

		NPC Citizen
		equipChar 11000
		% Mark these bodies as artifacts so they won't be deleted
		type <artifact>
		home <Lair>
		Damage 500

		NPC Citizen
		equipChar 7000
		% Mark these bodies as artifacts so they won't be deleted
		type <artifact>
		home <Lair>
		Damage 500
	end
end



inv
	% FACTIONS
	% For all factions, V1000 is the core difficulcy number.

	% the Federation Council
	%  +- the Solar Navy
	%  +- the Territorial Defense Force
	%  +- the Guardians
	% Kettel Industries
	% LifeCorp
	% Regex Corporation
	% HwangSa Monestary


	Faction 1
		name <the Solar Navy>
		type <Military>
		SetEnemy 7
		SetAlly 2 3 11

		% RECRUITMENT: Must be renowned
		% STORIES:     Threats to FT from offworld sources
		quarter <iffaction 1 if= d4 1 ifStoryless StartStory .milstory ifG 70 V1000 V+ 1000 15 V+ 1000 d10>
		.milstory <TS_MIL_STORY_*.txt>


	Story
		name <Red Team Recruitment>
		% N1 is the red team leader, N2 is the red team trainer
		element1 <Character>
		Stat 1 1601
		element2 <Character>
		stat 2 1602
		element3 <Faction>
		stat 3 1

		% This story ends if the team is destroyed.
		start <ifFaction N3 else GoEndStory if= V1 0 V= 1 25 V+ 1 d20>
		GoEndStory <EndStory>
	sub
		Persona 1
		greeting <NewChat if= PCFac 0 else GoHasFaction ifG React 20 else GoNoOffer ifG S1 0 else GoNoOffer ifG PCRep 6 S1 else GoNoOffer Say 2 AddChat 1 AddChat 2 AddChat 3>
		GoNoOffer <Say 1  AddChat 6>
		GoHasFaction <SayAnything>
		result1 <NewChat Say 3>
		result2 <NewChat Say 4 SetPlayerFaction N3 XPV 500 mechaprize .facmek>
		.facmek <Condor.txt>
		result3 <NewChat Say 5 AddChat 4 AddChat 5>
		result4 <Goto result1>
		result5 <Goto result2>
		result6 <NewChat Say 6>
		Msg1 <You should know that \NARRATIVE 3 is always looking for skilled new recruits.>
		Msg2 <We are always on the lookout for the best of the best to join our ranks. How would you like to become a member of \NARRATIVE 3 ?>
		Msg3 <That's too bad. We could really use someone with your talents on our side.>
		Msg4 <Very good! Here is the claim form for your new standard issue mecha. Welcome to the team. You can ask around to see if there are any missions currently underway.>
		Msg5 <You will be expected to take part in military operations with our forces, defending the unity of the FedTer or otherwise acting on our behaf. You will have access to skill training, and be given a combat mecha.>
		Msg6 <You'll note that I said skilled new recruits. I'm afraid that you're going to have to shape up a bit before we can consider you for membership.>
		prompt1 <I'm not interested.>
		prompt2 <Definitely!>
		prompt3 <What exactly is involved?>
		prompt4 <Thanks, but no thanks.>
		prompt5 <Sounds good to me.>
		prompt6 <Can I join \NARRATIVE 3 ?>

		Persona 2
		greeting <NewChat if= PCFac N3 else GoNoMember Say 2 AddChat 1>
		GoNoMember <ifG React d50 else GoNoLike Say 1>
		GoNoLike <SayAnything>
		result1 <EndChat Say 3 School .sklist Say 4>
		.sklist <1 2 3 4 5 6 7 8 10 12>
		Msg1 <I am the lead combat trainer for \NARRATIVE 3 . It's my job to make sure all of our recruits have the skills they're gonna need to survive and win on the modern battlefield.>
		Msg2 <I am the chief drill seargent for \NARRATIVE 3 . What are your needs, soldier?>
		Msg3 <Let's get started. You will need to master each of these skills if you hope to survive on the battlefied.>
		Msg4 <Keep working on those skills.>
		Prompt1 <I'm here to do training.>
	end

	Faction 2
		name <the Federation Defense Force>
		type <Military>
		SetEnemy 9 10
		SetAlly 1 3 11

		% RECRUITMENT: Must be renowned
		% STORIES:     Threats to FT from terrestrial sources

		quarter <iffaction 2 if= d5 1 ifStoryless StartStory .milstory ifG 70 V1000 V+ 1000 15 V+ 1000 d10>
		.milstory <TS_MIL_STORY_*.txt>

	Story
		name <Blue Team Recruitment>
		% N1 is the red team leader, N2 is the red team trainer
		element1 <Character>
		Stat 1 1701
		element2 <Character>
		stat 2 1702
		element3 <Faction>
		stat 3 2

		% V1 = Needed Renown

		% This story ends if the team is destruyed.
		start <ifFaction N3 else GoEndStory if= V1 0 V= 1 25 V+ 1 d20>
		GoEndStory <EndStory>
	sub
		Persona 1
		greeting <NewChat if= PCFac 0 else GoHasFaction ifG React 20 else GoNoOffer ifG S1 0 else GoNoOffer ifG PCRep 6 S1 else GoNoOffer Say 2 AddChat 1 AddChat 2 AddChat 3>
		GoNoOffer <Say 1 AddChat 6>
		GoHasFaction <SayAnything>
		result1 <NewChat Say 3>
		result2 <NewChat Say 4 SetPlayerFaction N3 XPV 500 mechaprize .facmek>
		.facmek <Daum.txt>
		result3 <NewChat Say 5 AddChat 4 AddChat 5>
		result4 <Goto result1>
		result5 <Goto result2>
		result6 <NewChat Say 6>
		Msg1 <Remember that \NARRATIVE 3  is always looking for a few good recruits.>
		Msg2 <We are always on the lookout for the best of the best to join our ranks. How would you like to become a member of \NARRATIVE 3 ?>
		Msg3 <That's too bad. We could really use someone with your talents on our side.>
		Msg4 <Very good! Here is the claim form for your new standard issue mecha. Welcome to the team. You can ask around to see if there are any missions currently underway.>
		Msg5 <As a member of \NARRATIVE 3 you will recieve a MPB mecha and full access to our training facilities. You will aid \NARRATIVE 3 in protecting the Federated Territories from all threats, both external and internal.>
		Msg6 <I'm sorry, but you don't match our minimum standards. Get a bit more practical experience and then we can talk.>
		prompt1 <I'm not interested.>
		prompt2 <Definitely!>
		prompt3 <What exactly is involved?>
		prompt4 <Thanks, but no thanks.>
		prompt5 <Sign me up!>
		prompt6 <I'd like to join!>

		Persona 2
		greeting <NewChat if= PCFac N3 else GoNoMember Say 2 AddChat 1>
		GoNoMember <ifG React d50 else GoNoLike Say 1>
		GoNoLike <SayAnything>
		result1 <EndChat Say 3 School .sklist Say 4>
		.sklist <1 2 3 4 5 6 7 8 10 18>
		Msg1 <I am the lead combat trainer for \NARRATIVE 3 .>
		Msg2 <I am the chief drill seargent for \NARRATIVE 3 . What are your needs, soldier?>
		Msg3 <Let's get started. You will need to master each of these skills if you hope to survive on the battlefied.>
		Msg4 <Keep working on those skills.>
		Prompt1 <I'm here to do training.>
	end


	Faction 3
		name <the Guardians>
		type <Police>
		quarter <ifFaction 3  ifStoryless if# d3 1 StartStory .crime ifG 70 V1000 V+ 1000 15 V+ 1000 d10>
		.crime <TS_Story_GRD_*.txt>
		SetAlly 1 2 11
		% RECRUITMENT: Must be lawful and nonvillainous
		% STORIES:     Crimes happening within FT

	story
		name <Guardian Recruitment>
		% N1 is Britaine, N2 is the Snake Lake chief
		element1 <Character>
		Stat 1 2502
		element2 <Character>
		Stat 2 14

		% V1 = Phase Indicator
		% V2 = Needed Renown
		start <if= V2 0 V= 2 20 V+ 2 d12>
	sub
		Persona 1
		Greeting <NewChat if= PCFac 0 else GoNoOffer if= S1 1 else GoNothing Say 10 AddChat 1 AddChat 2>
		GoNoOffer <ifG React d100 else GoNothing Say d5>
		GoNothing <SayAnything>
		result1 <NewChat Say 11  SetPlayerFaction 3 XPV 500 mechaprize .facmek GiveKeyItem 1>
		.facmek <Renegade.txt>
		result2 <NewChat Say 12 AddReact -d6>
		Msg1 <It's a good day to blow something up.>
		Msg2 <I'm gonna have to find some new recruits for the guardians soon... Far too many of them are getting themselves killed just in basic training.>
		Msg3 <I am the blast crater standing between justice and lawlessness.>
		Msg4 <They keep sending me new recruits to train... By the time I'm finished with them, they'll either be guardians or they'll be dead!>
		Msg5 <There's no halfway in this world. You either stay home or you bring out the whole hundred megatons.>
		Msg10 <Yes, what is it? Did \PERSONA N2 at the downtown office send you here? Hurry, out with it, I've got no patience for timidicy.>
		Msg11 <Great. Here's a badge and a gun. What, were you expecting some kind of initiation? Look, I'm busy. Go downtown and ask if they need help with anything. I've got nothing here. Here's the keys for a patrol car... take care of it.>
		Msg12 <If you were sorry then you wouldn't be bothering me in the first place!!! I'm a busy man, I've got things to do and people to shoot. Get out of here!!!>
		Prompt1 <I want to be a guardian!>
		Prompt2 <Sorry to bother you...>

		Persona 2
		Greeting <NewChat if= PCFac 0 else GoNothing ifG PCRep 1 0 else GoNoOffer ifG PCRep 2 45 else GoNoOffer ifG S2 0 else GoNoOffer ifG PCRep 6 S2 else GoNoOffer Say 1 AddChat 1 AddChat 2>
		GoNoOffer <Say 4 AddChat 3 AddChat 4>
		GoNothing <SayAnything>
		result1 <NewChat Say 2 S= 1 1>
		result2 <NewChat Say 3>
		result3 <NewChat ifG 1 PCRep 1 else GoR3CheckChaos Say 5>
		GoR3CheckChaos <ifG 45 PCRep 2 else GoR3NoRenown Say 6>
		GoR3NoRenown <Say 7 ifG 20 React AddReact d4>
		result4 <NewChat Say 8>
		Msg1 <We're looking for a new guardian, and you seem to be qualified for the position. How would you like to try out?>
		Msg2 <Go speak with Captain \NARRATIVE 1 in the waterfront office. He's the one in charge of new recruits.>
		Msg3 <Oh, well.>
		Msg4 <This is the Guardians Main Office. How may I be of assistance?>
		Msg5 <The Guardians exist to protect and serve the citizens of the Federated Territories. I do not believe that you are the sort of person we're looking for.>
		Msg6 <The Guardians enforce the laws of the Federated Territories. You have not yet shown a strong enough commitment to lawfulness to join our ranks.>
		Msg7 <This is a very dangerous job. We need experienced operatives, and I don't feel that you have yet proven yourself capable. In time, though, I am certain that you will make an excellent Guardian.>
		Msg8 <Oh, fine. If you have any questions feel free to ask.>
		Prompt1 <I'd like that.>
		Prompt2 <No thanks.>
		Prompt3 <I want to be a guardian!>
		Prompt4 <Just looking around, thanks.>

	end
	inv
		gear 4 2 6
		SetKeyItem 1
		name <Peacemaker>
		scale 0
		Range 4
		Accuracy 1
		Recharge 7
		BV 4
		Magazine 80
		mass -10
		sub
			Ammo 6
			mass -2
		end
	end

	% The game starts with some pre-loaded plots. Why? Just to prevent
	% some of the main characters from getting involved in random plots.

	Faction 4
		name <Kettel Industries>
		type <CORPORATE GoodEnemy>
		SetEnemy 5 6
		% Upon loading a new story, increase the faction's
		% difficulcy rating.
		quarter <ifFaction 4  ifStoryless if# d3 1 StartStory .corp ifG 70 V1000 V+ 1000 15 V+ 1000 d10>
		.corp <TS_CORP_STORY_*.txt>
		% RECRUITMENT: Must be lawful and pragmatic
		% STORIES:     Business stuff

	Story
		name <Kettel Industries Recruitment>
		element1 <Character>
		Stat 1 32
		element2 <Faction>
		stat 2 4

		% This story ends if the team is destroyed.
		start <ifFaction N2 else GoEndStory if= V1 0 V= 1 20 V+ 1 d15>
		GoEndStory <EndStory>
	sub
		Persona 1
		greeting <NewChat if= PCFac N2 else GoFirstCheck Say 1 AddChat 1>
		GoFirstCheck <if= PCFac 0 else GoHasFaction ifG React 10 else GoHasFaction Say 2 AddChat 1 AddChat 2>
		GoHasFaction <Say 3>

		result1 <EndChat Say 4 School .sklist Say 5>
		.sklist <1 5 6 15 21 29 31>
		result2 <NewChat ifG PCRep 6 S1 else GoNoRenown ifG PCRep 2 20 else GoNoLaw ifG PCRep 5 0 else GoNoCheer Say 6 AddChat 4 AddChat 5>
		GoNoRenown <Say 7>
		GoNoLaw <Say 8>
		GoNoCheer <Say 9>
		result3 <NewChat Say 10>
		result4 <NewChat Say 11 SetPlayerFaction N2 XPV 500 mechaprize .facmek>
		.facmek <Jos.txt>
		result5 <NewChat Say 12>

		Msg1 <Hello \PC . Are you here to practice your skills?>
		Msg2 <\NARRATIVE 2 is looking for new employees. If you are a hard worker, are ready to learn, and are capable of giving you all for the company, then you just may have a future with us.>
		Msg3 <Our subterranean workhouse is the perfect model of efficient labor!>
		Msg4 <Perfect. You know, workshop participation goes a long way towards improving your annual review.>
		Msg5 <Continue to learn, so you may serve our corporation better.>
		Msg6 <Good... good... Very good! Yes, I believe you would be a perfect addition to the \NARRATIVE 2 family! How would you like to sign up?>
		Msg7 <Hmmm... It's not a very thick resume. I think you should get some more experience before applying here again.>
		Msg8 <Good... good... bad. I see here that you have a police record. \NARRATIVE 2 is a tightly structured organization, we are only looking for good team players.>
		Msg9 <Good... good... good... Hm, your resume is fine, but I don't think you're the kind of person we're looking for. You wouldn't be happy here.>
		Msg10 <Oh. That's fine too. Have a look around, and maybe buy something before you leave.>
		Msg11 <Welcome to the \NARRATIVE 2 family. Here is your standard issue "KCF-10c Jos" mecha, produced at this very factory. Go ask around and see if any of the executives have missions for you.>
		Msg12 <Keep us in mind. Remember, our subterranean workhouse is the perfect model of efficient labor!>

		Prompt1 <Yes I am.>
		Prompt2 <Here, take a look at my resume.>
		Prompt3 <I'm not looking for a job...>
		Prompt4 <I'd be delighted!>
		Prompt5 <Maybe some other time.>

	end


	Faction 5
		name <BioCorp>
		type <CORPORATE GoodEnemy>
		SetEnemy 4 6
		% Upon loading a new story, increase the faction's
		% difficulcy rating.
		quarter <ifFaction 5  ifStoryless if# d3 1 StartStory .corp ifG 70 V1000 V+ 1000 15 V+ 1000 d10>
		.corp <TS_CORP_STORY_*.txt>
		% RECRUITMENT: Must be _very_ pragmatic
		% STORIES:     Business stuff

	Story
		name <BioCorp Recruitment>
		element1 <Character>
		Stat 1 2412
		element2 <Faction>
		stat 2 5

		% This story ends if the team is destroyed.
		start <ifFaction N2 else GoEndStory if= V1 0 V= 1 20 V+ 1 d15>
		GoEndStory <EndStory>
	sub
		Persona 1
		greeting <NewChat if= PCFac N2 else GoFirstCheck Say 1 AddChat 1>
		GoFirstCheck <if= PCFac 0 else GoHasFaction ifG React 10 else GoHasFaction Say 2 AddChat 1 AddChat 2>
		GoHasFaction <SayAnything>

		result1 <EndChat Say 4 School .sklist Say 5>
		.sklist <3 5 11 20 22 24 29>
		result2 <NewChat ifG PCRep 6 S1 else GoNoRenown ifG PCRep 7 40 else GoNoPrag ifG 10 PCRep 5 else GoNoCheer Say 6 AddChat 4 AddChat 5>
		GoNoRenown <Say 7>
		GoNoPrag <Say 8>
		GoNoCheer <Say 9>
		result3 <NewChat Say 10>
		result4 <NewChat Say 11 SetPlayerFaction N2 XPV 500 mechaprize .facmek>
		.facmek <Fenris.txt>
		result5 <NewChat Say 12>

		Msg1 <Hello \PC . Are you here to practice your skills?>
		Msg2 <\NARRATIVE 2 requires skilled employees to help further our corporate interests.>

		Msg4 <Very well. I will instruct you. Shall we begin?>
		Msg5 <Knowledge is power.>
		Msg6 <Yes, I believe you'd be a most useful addition to our team. Shall I sign you up?>
		Msg7 <You don't have very much experience. I'm afraid that we're looking for recruits with proven track records.>
		Msg8 <You don't seem to be very skeptically minded, nor do you have much experience in applied science. I don't think you're the type of applicant we're looking for.>
		Msg9 <Are you certain that you know what kind of corporation this is? Your record is impressive, but psychologically I'm not certain that you'd fit in well with our other staff.>
		Msg10 <Thank you for that concern.>
		Msg11 <You are now a member of \NARRATIVE 2 . Here is your standard issue security mecha. Go ask around and see if any of the executives have missions for you.>
		Msg12 <Keep the job offer in mind. You would be very useful to us.>

		Prompt1 <Yes I am.>
		Prompt2 <Could I join?>
		Prompt3 <I hope you find some.>
		Prompt4 <Absolutely.>
		Prompt5 <No, not right now.>

	end


	Faction 6
		name <RegEx Corporation>
		type <CORPORATE>
		SetEnemy 4 5
		% Upon loading a new story, increase the faction's
		% difficulcy rating.
		quarter <ifFaction 6  ifStoryless if# d3 1 StartStory .corp ifG 70 V1000 V+ 1000 15 V+ 1000 d10>
		.corp <TS_CORP_STORY_*.txt>
		% RECRUITMENT: Must be pragmatic
		% STORIES:     Business stuff


	Story
		name <RegEx Recruitment>
		element1 <Character>
		Stat 1 2413
		element2 <Faction>
		stat 2 6

		% This story ends if the team is destroyed.
		start <ifFaction N2 else GoEndStory if= V1 0 V= 1 18 V+ 1 d14>
		GoEndStory <EndStory>
	sub
		Persona 1
		greeting <NewChat if= PCFac N2 else GoFirstCheck Say 1 AddChat 1>
		GoFirstCheck <if= PCFac 0 else GoHasFaction ifG React 10 else GoHasFaction Say 2 AddChat 1 AddChat 2>
		GoHasFaction <Say 3>

		result1 <EndChat Say 4 School .sklist Say 5>
		.sklist <5 15 18 19 23>
		result2 <NewChat ifG PCRep 6 S1 else GoNoRenown ifG PCRep 4 0 else GoNoEasy ifG PCRep 3 -25 else GoNoSoc Say 6 AddChat 4 AddChat 5>
		GoNoRenown <Say 7>
		GoNoEasy <Say 8>
		GoNoSoc <Say 9>
		result3 <NewChat Say 10>
		result4 <NewChat Say 11 SetPlayerFaction N2 XPV 500 mechaprize .facmek>
		.facmek <BuruBuru.txt>
		result5 <NewChat Say 12>

		Msg1 <Hello \PC . Are you here to practice your skills?>
		Msg2 <\NARRATIVE 2 is looking for new employees. We're the corporation of the people.>
		Msg3 <\NARRATIVE 2 is the corporation of the people.>
		Msg4 <Great. I'll set you up with that myself. What did you want to study?>
		Msg5 <Keep up the good work.>
		Msg6 <This is great! We never get applicants as good as you... How'd you like to sign up immediately? There's a free mecha in the deal for you!>
		Msg7 <Hm. I'd like to see you get a bit more practical experience first. Keep us in mind, though.>
		Msg8 <Woah! You're a bit of an edgy fellow, aren't you? We aren't that kind of corporation... We need someone more down to earth, approachable.>
		Msg9 <Erm, you sure you want to work here? Remember that RegEx is "the corporation of the people". You aren't much of a people-person.>
		Msg10 <Everybody needs a job. Otherwise, how would you know what you're supposed to do in the morning?>
		Msg11 <Excellent! Here's your brand new BuruBuru mecha, manufactured by our very own armaments division. Now get out there and do us proud!>
		Msg12 <Please think about it. We really need you!>

		Prompt1 <Yes I am.>
		Prompt2 <Maybe you can hire me.>
		Prompt3 <That's nice, but I don't need a job.>
		Prompt4 <Alright, I'll join.>
		Prompt5 <Not now, maybe later.>

	end


	Faction 7
		% NPC Faction... doesn't need much detail.
		name <Aegis Overlord Luna>
		type <Military GoodEnemy>
		SetEnemy 1 3 11


	Faction 9
		% NPC Faction... doesn't need much detail.
		name <Clan Ironwind>
		type <Military GoodEnemy>
		SetEnemy 2

	Faction 10
		% NPC Faction... doesn't need much detail.
		name <the Bone Devil gang>
		type <Military GoodEnemy>
		SetEnemy 2 3 11

	Faction 11
		name <the Federation Council>
		SetAlly 1 2 3
		SetEnemy 7 8 9 10

	Plot 0
		% Load the PC's origin story
		START <StartStory .StartStory  else GoError AdvancePlot 0>
		.StartStory <TS_STORY_Entry_*.txt>
		GoError <Print 1 AdvancePlot 0>
		Msg1 <Error loading the Intro story.>

	Plot 0
		START <Storyline .StartStory  else GoError AdvancePlot 0>
		.StartStory <TS_PLOT_CoreIntro_*.txt>
		GoError <Print 1 AdvancePlot 0>
		Msg1 <Error loading the Core Introduction.>


	Story
		name <STORY: Heroism Debug>
		PLAYERVILLAIN <ifyesno 1 2 3 reputation 1 25 print 4>
		Msg1 <Your character has just earned 25 points of villainous reputation. Do you think you deserve it, or is this the bug acting up again?>
		Msg2 <No way!>
		Msg3 <I deserve it.>
		Msg4 <Please email pyrrho12@yahoo.ca with the exact details of what your character just did.>

%	Plot 1
%		start <StartStory .debug Print 1 AdvancePlot 0>
%		Msg1 <End story loaded.>
%		.debug <TS_STORY_END_Annihilation.txt>


end
