// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(162,0) == 0;
	question = "special";
	text1 = "This narrow tunnel was laboriously dug out of the earth and rock with iron tools. It must be an old smuggler's tunnel, long abandoned.";
	text2 = "It is freezing cold down here. Unnaturally cold.";
	action = SET_SDF 162 0 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(162,1) == 0;
	question = "special";
	text1 = "This cavern is absolutely beautiful. It is full of huge crystal formations, that reflect and refract every tiny bit of light. It is amazing that something like this could survive undamaged in the Great Cave for so long.";
	text2 = "But then, perhaps, it's not so surprising after all. There is a dimly glowing, vaguely humanoid creature floating in the back of the cavern. Just looking at it gives you a chill.";
	text3 = "And then, a moment later, there is another shade, and another. They swoop toward you, eager to drain the warmth out of the intruders.";
	action = SET_SDF 162 1 1;


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

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




//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is an old farmer in this lonely stone hut, sitting at his table and staring at an empty plate. He has been living here for a long time. In recent years, he's not bothered to keep it clean.";
	text2 = "Though he is hungry and weak, when you enter, he immediately finds deep reserves of strength. He barks, _Another soldier! I know why you're here! Your kind keeps coming and saying, 'Grieg, you can't stay here.' 'Grieg, you have to go.'_";
	text3 = "_Well, I'm not going. You go. You're wasting your time._";
	text5 = "Grieg sits at his table and grumbles quietly to himself. At least he isn't shouting anymore.";
	text6 = "You notice several bags of Blighted mushrooms by the west wall. You hope Grieg hasn't been unwise enough to actually eat them.";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Tell me about your farm.";
	text1 = "_It's mine, and you'll never get me off it! Sure, there's Blight and scuttlers, but that won't last forever. I'll get past it!_";

begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Where did the scuttlers come from?";
	text1 = "_Who knows? They appeared in the north caves, and they came here. I bet someone brought them to my land. Maybe even the army. To drive me off it so they could move in._";
	text2 = "_But it won't work!_";

begintalknode 13;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "How long have you had the Blight?";
	text1 = "_I was one of the first to get it. When it came to the Great Cave, it came to me first. But it won't last forever. I'm sure of it. The wizards will cure it, and they'll find them that made it._";

begintalknode 14;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "Made it?";
	text1 = "_You don't think that sort of thing just happens, do you? No. Someone made the Blight. Someone who's the enemy of Avernum. Has been since the beginning._";
	text2 = "He casts a suspicious glance at the nearby slithzerikai and says nothing else.";
	text3 = "He whispers, _It was the sliths. I know it. We aren't supposed to say it, but it's true._";
	code =
		if (species_in_party(3) == 0)
			rs(2);
			else rs(3);
	break;

begintalknode 15;
	state = 10;
	nextstate = 13;
	condition = 1;
	question = "They want you to leave?";
	text1 = "_The soldiers come. They say it's too dangerous. Say there are brigands. Say I'll starve. But I'll never go. Never._";

begintalknode 16;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Why not?";
	text1 = "_I spent years saving up to buy this land. Got it after the Time of Shades. Years more clearing it. Years more growing on it. This land is my life._";
	text2 = "_And, if need be, I'll die on it. Now go. Leave me be._";
	action = END_TALK;
	
begintalknode 17;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Do you have anything to eat out here?";
	text1 = "He looks at the bag of Blighted mushrooms by the west wall. _I'm working on it. Those things, you boil them enough, they're almost edible. I'll find a way to get by._";


//

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 = "";
		