// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(91,0) == 0 && has_spec_item(13) > 0;
	question = "special";
	text1 = "Your worst suspicions have turned out to be true. There is, in fact, an enormous chitrach nest down here. This warren is crawling with the rapacious creatures. Dozens, perhaps hundreds, of them. Tending to their queen. Breeding.";
	text2 = "The faint trail on the ground extends into the cavern. It turns left and heads straight into the midst of the creatures. You can't believe anyone could walk through here and not be mobbed by the creatures.";
	text3 = "But then you look down at the chitrach charm you took from the neck of the raider. It is glowing slightly. You look at the chitrachs in the nest. They really don't seem to have noticed you.";
	text4 = "Perhaps, with care, you might be able to get through here.";
	action = SET_SDF 91 0 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(91,1) == 0 && has_spec_item(13) == 0 && gf(91,6) == 0;
	question = "special";
	text1 = "Your worst suspicions have turned out to be true. There is, in fact, an enormous chitrach nest down here. This warren is crawling with the rapacious creatures. Dozens, perhaps hundreds, of them. Tending to their queen. Breeding.";
	text2 = "The faint trail on the ground extends into the cavern. It turns left and heads straight into the midst of the creatures. You can't believe anyone could walk through here and not be mobbed by the creatures.";
	text3 = "If you go much farther, you are sure to be detected. And then the full fury of the swarm will be upon you. Traveling farther to the west would be very dangerous.";
	action = SET_SDF 91 1 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(91,2) == 0;
	question = "special";
	text1 = "This large chamber is the heart of the nest. Here, the chitrach queen, green and gleaming with a thick layer of slime, produces eggs.";
	text2 = "Only a tiny minority of these gooey orbs will ever grow to full size, but it only takes a few to cause great damage.";
	text3 = "The queen herself is a massive creature, and her forelegs bear rows of vicious, barbed spines. Happily, she doesn't seem to notice you from this vantage point. If you get closer, this is sure to change.";
	action = SET_SDF 91 2 1;

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

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several ogres standing guard at the base of these huge, natural stone pillars. They are underfed creatures, and it looks like something much larger has been beating them recently.";
	text2 = "When you get close, they swing their clubs around and snarl. _Ahrrrr ..._ one of them says. _You stay out. This not Avernum land now! You go away!_";


begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hear a hissing and clicking, coming from all around you. The nearby piles of scree start to shift around on their own.";
	text2 = "And then chitrachs erupt out of the piles of the stone. You have stumbled into an ambush!";
	text3 = "And then your chitrach-shaped brooch glows slightly. The strange sounds stop. Everything is still again.";
	code =
		if (has_spec_item(13) == 0)
			rs(3);
			else rs(2);
	break;

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The chitrach queen has detected you. She lets out a long, hideous howl, which echoes easily through her warren. You hear many scuttling feet in the shadows, as chitrachs swarm to aid her.";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The chitrach queen is wounded and in pain. And increasingly angry. She lets out another long, hideous cry. It is deafeningly loud. You have to clasp your hands over your ears.";
	text2 = "It feels like your teeth are trying to vibrate their way out of your mouth. The cry shakes rocks and stalactites loose from the ceiling.";
	text3 = "Then, at last, the cry ends, leaving you feeling battered and dazed.";

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "At last, the queen of this enormous hive has been completely and properly squished. One day, if the farmers of the Eastern Gallery ever again have anything to grow, they will thank you.";

	
	//

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

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

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

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

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

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

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

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

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

begintalknode 19;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 20;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

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

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

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

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

//

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