// dlg.txt

begintalkscript;

variables;

short i;


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

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

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 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There is a lone slithzerikai sitting by this fire. He has a spear sitting across his lap and a large quiver of javelins on his back. A heavy cloak conceals his face in shadows.";
	text2 = "This is a dangerous place for an armed slith to be. There is every chance that an Avernite patrol would identify him as a warrior of the Slith Horde.";
	text3 = "Of course, considering that he has just leapt to his feet and whipped a javelin out of his quiver, it is possible that such a judgment would be very accurate.";
	text4 = "You notice that he has several leather necklaces around his neck, weighted down with tribal charms and glass globes. This is no ordinary warrior.";
	text5 = "Veress'Yss recognizes you and laughs. _You want to chase me again? It takesss far more than a little fall to kill a disciple of the shadow!_";
	code =
		if (gf(64,3) == 0)
			rs(5);
	break;
	
begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The armed slith lets out a long, dry chuckle. _This may be a challenge for Veress'Yss. A good battle, one to boast of to the Shadow. A pity, but ..._";
	text2 = "He pulls a charm from his necklace and dashes it against the floor. There is a flash of light and a puff of smoke. When it clears, several reptiles have joined Veress'Yss.";
	

begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Veress'Yss pulls another globe from his neck and dashes it against the floor. There is a cloud of smoke. You start to choke and cough. The foul vapors make you feel confused.";
	text2 = "When your vision clears, the Horde spy is standing a short distance away. There are more lizards at his feet.";

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Once again, Veress'Yss pulls a globe from his neck and dashes it against the floor. You know enough to hold your breath, so the foul gases that emerge from it don't harm you.";
	text2 = "When the smoke clears, the cunning slith has disappeared.";

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "At first, you think that you have cornered Veress'Yss. He is in a tunnel, with his back to a chasm. Surely he can't use his smoke tricks in here. His wounds are taking a toll on him.";
	text2 = "But then he takes a step backward over the edge of the chasm. In a moment, he drops into the blackness and is gone.";
	text3 = "You listen for the splat of him hitting the ground. There is only silence. You hope that the fall killed him, but you really have your doubts ...";

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Veress'Yss collapses to the ground. _Ahssss ... Khrez-Yss said you were weak. He was ... was wrong ... He could be ..._ And he dies.";
	text2 = "The moment he stops breathing, most of the trinkets crumble to dust. They must be attuned to the one they were made for.";

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

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

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

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

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

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

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

//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "At last, you have tracked Veress'Yss down to his hiding place. He stands by the north wall, flanked by two more huge reptiles.";
	text2 = "He has set his javelins aside. Instead, he holds a long, vicious slith spear. Lightning travels up and down its length.";
	text3 = "He lets out a long, joyous snarl. _Ahssss ... I know you now. The Shadow sent word. Great honor comesss to the one who killsss you. Truly, thisss isss a fortunate day._";


begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Who is the Shadow?";
	text1 = "_Khrez-Yss, the Shadow, assassin and spy of the mighty Slith horde. You are one of the few who has caught a glimpse of him and lived. That, I will now correct._";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "What are you doing out here, anyway?";
	text1 = "_Ahssss ... I spy. I scout. I deliver messages from the mighty Shadow. I enlist those who would act against the weak, dirty Avernitesss. And, when I am lucky, I kill and eat what enemiesss I can hunt._";
	text2 = "Eat? Yikes. This fellow is serious about his job.";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Where did you get all of those trinkets?";
	text1 = "_Khrez-Yss gives those to all who serve him, to protect them and help them to kill._ They do indeed look similar to the ones you saw around Lord Trinket's neck, only much more powerful.";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "I suppose nothing I can say will keep us from fighting now.";
	text1 = "Veress'Yss grins, showing two nasty rows of fang. _You are correct. Today will raise me greatly in the eyes of the mighty Shadow._ With a word of command, the lizards lunge at you.";
	action = END_TALK;
	
begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "You are cornered. Now I will finish you off! (Attack.)";
	text1 = "Veress'Yss grins, showing two nasty rows of fang. _Yesss ... Today will raise me greatly in the eyes of the mighty Shadow._ With a word of command, the lizards lunge at you.";
	action = END_TALK;

	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "Someone set up some sort of a sinister shrine here. Then the Slith Horde came, the cultists fled, and the abandoned cave was taken over by chitrachs.";
	text2 = "That is one of the most tragic things about the Slith Horde: The way it has taken all of the precious Avernum-menacing jobs away from hard-working humans.";
	text3 = "Now the pillars are crumbling and the blood on the altar is dried up and flaking away. But this gong remains intact. The hammer sits temptingly nearby.";

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = gf(64,5) == 0;
	question = "Strike the gong.";
	text1 = "It makes a deep ringing sound that easily echoes through the tunnels. It seems to take forever until it quiets down.";
	text2 = "Once everything is silent again, you listen carefully. It is very quiet. So quiet that the sound you think you are hearing might just be your imagination.";
	text3 = "The sound of many tiny feet.";
	action = END_TALK;
	code =
		sf(64,5,1);
		sf(64,6,1);
	break;
	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = gf(64,5) > 0;
	question = "Strike the gong.";
	text1 = "It makes a deep ringing sound that easily echoes through the tunnels. Nothing else happens.";
	action = END_TALK;
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Leave the gong alone.";
	text1 = "Probably wise.";
	action = END_TALK;
	
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 = "";
		