// 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 = "_Squeak!_";


begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  WARNING - SLITH RAIDERS TO NORTH";
	text3 = "  Report all sightings!";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several slithzerikai sitting by the road here. They look instantly and markedly different from those you have met to the south.";
	text2 = "They are covered with tribal fetishes and painted ritual markings. Their leader wears a belt with little, dark, shriveled things hanging from it. You have an uneasy suspicion that they are ears.";
	text3 = "They look like scouts. When you encounter them, they size you up. Then their leader, unwisely thinking that you are weaklings or spies, lets out a long, angry hiss. They attack.";
	code =
		sf(80,7,1);
		alert_char(30046);
	break;
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Wyrgryss has several magical sentinels. They watch the drake constantly, waiting for the order to attack.";

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  THIS IS THE REALM OF WYRGRYSS";
	text3 = "  Those who pass here must give tribute!";


//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a huge, withered, cobalt blue drake sitting at the bottom of this pit. He is surrounded by trophies and treasure, as well as several sentinels. His magical skill must be considerable.";
	text2 = "_Ahsssss ..._ He says. _A soldier of Avernum. It isss about time. I am Wyrgryss. I sent word I expected my tribute weeksss ago. I grow impatient. I must have tribute if you are to passss my landsss._";
	text3 = "There is a menacing creaking sound as Wyrgryss's sentinels lean forward, waiting for a command. You start to shiver. The air around the creature is icy cold.";
	text5 = "Wyrgryss looks at you impatiently. _I am a busy creature. I must patrol my landsss. I must tend to and clean my hoard. What do you wish? Speak quickly._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Where are you from?";
	text1 = "_I am from the northern landsss, the onesss now taken by the Slith Horde. They have no respect for my kind, so I came here to claim thisss land._";
	text2 = "_Now itsss mine. I will not give it up without battle._";

begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Don't the Slith Horde revere drakes?";
	text1 = "_They are proud. They worship no reptilesss, respect no outsider. They care only for the slithzerikai of the horde._";
	text2 = "_Thusss, they are not weak, not like your kind._";

begintalknode 13;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Are you interested in helping to fight the horde?";
	text1 = "_Ahssss. Why would I do that? My kind respectsss strength. If they bring enough warriorsss here to drive me out, I will take my hoard and go to where I can claim more land from humansss._";
	text2 = "_For now, I have land and a lair. I only fight the Slith Horde when they intrude on me. Which their scoutsss have done._";

begintalknode 14;
	state = 10;
	nextstate = 12;
	condition = 1;
	question = "You think this land is yours?";
	text1 = "_It isss. I am here. None take it from me. The humansss had it, once. The humans are weak. Hungry. Divided. They lost their right to take thisss land, so I take it. Now it isss mine._";

begintalknode 15;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "And if they come to take it from you?";
	text1 = "_Then I will see how much strength they have, and I will react. But they are weak. I don't think that day will come._";

begintalknode 16;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "And will you hunt or rob humans?";
	text1 = "_I might. It isss possible. But I do not think I will. I have a hoard. I have a domain. I do not need to aggravate them. All I want is tribute, from time to time, for them to use my roadsss._";

begintalknode 17;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "I will drive you off this land!";
	text1 = "The drake rears back. The sentinels creak menacingly. The drake grins. _You? You think you will do it? I like your wealth. I would happily add it to my horde._";
	text2 = "_But I would not taunt Avernum. I give you a chance to back down. Will you be wise?_";

begintalknode 18;
	state = 12;
	nextstate = 10;
	condition = 1;
	question = "I want to ask about something else.";
	text1 = "_Yesss?_";

begintalknode 19;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "No. This land is for Avernum. (Attack.)";
	text1 = "Wyrgryss lets out a long, angry hiss and attacks.";
	action = END_TALK;
	code =
		set_attitude(8671,10);
		set_attitude(8672,10);
		set_attitude(8673,10);
		set_attitude(8674,10);
	break;
	
begintalknode 20;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Actually, never mind.";
	text1 = "Wyrgryss nods. _That isss wise. Now leave me. Take time to regain your self-control. And think of the death you have just narrowly avoided._";
	action = END_TALK;
	
begintalknode 21;
	state = 10;
	nextstate = 15;
	condition = gf(80,1) == 0;
	question = "You are in need of tribute?";
	text1 = "_Yesss. Avernitesss use my roadsss. For this, I need a toll. I am a reasonable drake. I will take one of two thingsss._";
	text2 = "_You may give me a thousand coinsss. A modest price for what your people will get._";
	text3 = "_Or, you may rid me of some pestsss that have trespassed and annoyed me. Do one of these thingsss, and I will consider my debt paid._";
	
begintalknode 22;
	state = 15;
	nextstate = -1;
	condition = coins_amount() < 1000;
	question = "All right. I will pay. (Give 1000 coins.)";
	text1 = "Wyrgryss frowns. _You do not have enough money! I will not be cheated._";

begintalknode 23;
	state = 15;
	nextstate = 10;
	condition = coins_amount() >= 1000;
	question = "All right. I will pay. (Give 1000 coins.)";
	text1 = "You count out a large pile of coins for Wyrgyrss. He almost drools with greed. No, wait. There's some drool. _Yesss. Yesss. My horde growsss by the day! I knew I made no mistake coming here._";
	text2 = "_The tribute is paid. You may tell the Avernitesss they may use my roadsss. That isss all. You may go._";
	code =
		change_coins(-1000);
		award_party_xp(200,25);
		sf(80,1,1);
	break;
	
begintalknode 24;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "What intruders would you be rid of?";
	text1 = "_There are membersss of the Slith Horde. They tread through my cavesss. It angers me, but I would not taunt the horde by killing them. You, on the other hand, could._";
	text2 = "_Go through these tunnelsss to the northeast. The intrudersss pass through to get to a ledge looking over the gallery above. They are scoutsss and spiesss. Slay them, and their arrogant warrior leader._";
	text3 = "_Do not delay. That isss what I want done. Go._";
	action = END_TALK;
	code =
		sf(80,2,1);
	break;
	
begintalknode 25;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "I want to discuss something else.";
	text1 = "_No. I tire of you. I told you of tribute. That issss all that mattersss. You will go._";
	action = END_TALK;

begintalknode 26;
	state = 10;
	nextstate = -1;
	condition = gf(67,9) > 0 && gf(80,1) == 0;
	question = "I slew the slith trespassers.";
	text1 = "_All isss well, then. They will know now that I will not be trespassed on. Not by a small group, anyway._";
	text2 = "_The tribute is paid. You may tell the Avernitesss they may use my roadsss. That isss all. You may go._";
	action = END_TALK;
	code =
		award_party_xp(200,25);
		sf(80,1,1);
	break;

begintalknode 27;
	state = 10;
	nextstate = -1;
	condition = gf(80,1) > 0;
	question = "How long is the tribute paid for?";
	text1 = "Wyrgryss chuckles. _I have not decided. We shall see._";

begintalknode 28;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "That is all.";
	text1 = "_Then I give you permission to depart._";
	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 295;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Sage Asterios's elaborate network of casks works exactly as intended. The flame reaches the final cache of firedust. A massive series of explosions shakes Cotra.";
	text2 = "Fire shoots up through cracks in the floor. Sections of the cave floor glow red and melt. The shockwave alone is enough to shatter your bones.";
	text3 = "And then, one by one, the walls of Cotra collapse. Soon, there is nothing left of them but long stacks of rubble.";
	text4 = "The city of Cotra, survivor of many wars, is gone forever. Only wreckage marks its passing.";
	
////

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