// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(156,0) == 0;
	question = "special";
	text1 = "There is a dark tunnel in the west wall of the cavern. The ground in front of it is covered with pools of slime and broken bits of carapace. You can hear hissing and clicking sounds coming from inside.";
	action = SET_SDF 156 0 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(156,1) == 0;
	question = "special";
	text1 = "Suddenly, a horde of bugs pours out of the tunnel. Attracted by the vibrations of your footsteps, they swarm out looking for prey.";
	text2 = "They are scuttlers, a pest that appeared in northern Avernum a few years ago. They have slowly been migrating south, causing all sorts of problems wherever they appear.";
	action = SET_SDF 156 1 1;
	code =
		activate_hidden_group(49);
	break;
	
begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(156,2) == 0;
	question = "special";
	text1 = "There is a pit in this cavern full of mold and goo. Some of the goo is moving.";
	text2 = "There is some sort of wooden marker in the middle of the cave, surrounded by pools of slime. From back here, the goop can't sense you, but it's sure to detect you if you get closer.";
	action = SET_SDF 156 2 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";


begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There is a small claim marker here. It reads:";
	text2 = "  This Cave Claimed By Mother Alice Under Terms of Avernite Law";
	code =
		if (gf(130,8) == 0) {
			sf(130,8,1);
			inc_flag(130,10,1);
			}
	break;
	
begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several soldiers sitting around this fire. Old campaigners, with grey hair and the scars of many battles. Old enough to have been warehoused out here, about as far from the action as possible.";
	text2 = "They're friendly, and they like to tell stories, like old soldiers always do. You get the impression, however, that if you want to learn anything, you should talk to their sergeant.";
	
//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Sergeant Cage";
	text1 = "This is the only young soldier sitting at this fire. He divides his time between watching the road and nagging the older campaigners to do the same. They mostly ignore him.";
	text2 = "When he sees you, he nods. _Good to see another warrior on the road. Hope the day finds you well. I am Sergeant Cage._";
	text5 = "Sergeant Cage sits and stares morosely into the fire, occasionally gnawing on a piece of dried lizard meat. His spear and armor are immaculately maintained. You suspect that he would rather be much closer to the front than he is.";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = gf(170,0) == 0;
	question = "What can you tell me about this area?";
	text1 = "He looks at your insignia and frowns. _Sorry, private. I'm not sure you're supposed to be here. Maybe you should go back to your commanding officer._";

begintalknode 12;
	state = 10;
	nextstate = 11;
	condition = gf(170,0) > 0;
	question = "What can you tell me about this area?";
	text1 = "_Well, it's ... Don't want to say it's under control. But, as long as you stay by the roads, you probably won't be hit too much when you travel around._";
	text2 = "_Fort Remote and the Western Reaches are west of here. And Patrick's Tower isn't far away, to the southeast._";

begintalknode 13;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Tell me about Fort Remote.";
	text1 = "_We're based out of there. It's very quiet. Too quiet for my tastes. I'd rather ..._ He shakes his head. _Well, no point in complaining about it._";
	text2 = "_Just so you know. Without orders, you aren't going to get through the gate._";

begintalknode 14;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "What are the Western Reaches?";
	text1 = "_Wild lands. Always have been. Fort Remote guards the only route in and out of there. I've heard something's going on back there, something important, but they wouldn't tell me about it._";

begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Know anything about Patrick's Tower?";
	text1 = "_The back way in is near here. Just a short hike down that way._ He points at the southeast road. _But it's guarded. With magic, not people. Don't go down there unless you know you'll be safe._";

begintalknode 16;
	state = 10;
	nextstate = -1;
	condition = gf(158,2) == 0 && has_spec_item(23);
	question = "I'm trying to find the Patrick's Tower experiment halls.";
	text1 = "That gets his attention. _You are? Well, they're that way._ He points to the southeast. _Been weeks since anyone has been through there. Those wizards should keep a closer watch on their experiments, if you ask me._";

begintalknode 17;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Any hostiles nearby?";
	text1 = "_Just some pockets of scuttler infestation. Don't have the forces to burn them out. And the occasional goblin. Nothing like in the northeast. No sliths or raiders._ He sounds like this is a huge disappointment to him.";

begintalknode 18;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I'll be moving on.";
	text1 = "He nods and waves you on.";
	action = END_TALK;


//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

////

begintalknode 299;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		