// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,0) == 0;
	question = "special";
	text1 = "You reach the end of the passage excavated by the stone servants. Once here, you find that you are looking at the back of a brick wall. Much of the mortar has been dug out, but, from the other side, the wall would look normal.";
	text2 = "You give it a good hard shove, and the weakened wall gives way. You have access to the tunnels under Formello.";
	text3 = "You listen carefully for guards or shouts of alarm. Nothing. It is eerily quiet.";
	action = SET_SDF 40 0 1;
	code =
		set_terrain(1,827,132,0);
	break;
	
begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,1) == 0;
	question = "special";
	text1 = "It is warm and dank in the tunnels under Formello. You can smell the reek of the nearby sewers, pervading everything. And yet, someone chose to work down here. This is his workshop.";
	text2 = "As humid as it is, looking around, you can't help but feel a chill. This is where the slithzerikai bring their prisoners for questioning. And, if you guessed the purpose of the room behind you correctly, execution."; 
	text3 = "And yet, there are no torturers or spymasters visible. The eerie quiet continues.";
	text4 = "The open gate behind you makes you feel nervous. It would be very easy for someone to trap you in here. Proceeding without being fully prepared would be very dangerous.";
	action = SET_SDF 40 1 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,2) == 0;
	question = "special";
	text1 = "You enter the Formello sewers. Recent construction, from the look of it. This expansive public works project was probably only completed shortly before the horde invaded. What a waste.";
	text2 = "You pass under another open gate and look around. Odd ... You think you see movement to the south. Just a trace of a shadow. Honestly, you expected more opposition when you entered Formello.";
	action = SET_SDF 40 2 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,3) == 0;
	question = "special";
	text1 = "You thankfully climb out of the sewers. You don't hear shouting or alarm horns. Apparently, Khrez-Yss neglected to inform them that his prize had arrived. You still have the advantage of surprise.";
	text2 = "Now to find Ghavassa-Oss. And then, perhaps, escape.";
	action = SET_SDF 40 3 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,4) == 0;
	question = "special";
	text1 = "You climb upstairs and enter a gigantic, beautiful hall. This is a throne room, no doubt where Ghavassa the Impaler holds court and delivers his orders.";
	text2 = "There are several guards here. When they see you, they blink several times hardly able to believe that an invader is here. Then they run to attack.";
	text3 = "And yet, Ghavassa is not here. You hope that he is somewhere in this palace. If he is away, you are going to have a real problem. At least the general alarm hasn't been raised. If you step out of the palace, that may soon change.";
	action = SET_SDF 40 4 1;
	code =
		activate_hidden_group(37);
		set_name(4334,"Throne Room Guard");
		alert_char(4334);
		set_name(4335,"Throne Room Guard");
		alert_char(4335);
		set_name(4336,"Throne Room Guard");
		alert_char(4336);
		set_name(4337,"Throne Room Guard");
		alert_char(4337);

		set_level(4334,22);
		set_level(4335,22);
		set_level(4336,22);
		set_level(4337,22);

		set_name(4338,"Crier Theleress");
		alert_char(4338);
		set_level(4338,22);
		set_boss_level(4338,1);
		
	break;
	
begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,5) == 0 && gf(170,7) == 0;
	question = "special";
	text1 = "You step out of the palace at the north end of Formello and immediately regret it. There are a lot of soldiers out here, and you are completely out in the open. They point and shout an alarm.";
	text2 = "Looking around, you can see that much of Formello has been torn down and rebuilt. The palace occupying the north end of town is definitely the most impressive structure. The other buildings look modest before it.";
	text3 = "If Ghavass-Oss is anywhere in town right now, it would be the palace. Alas, now that the enemy has seen you, you will have a lot less time to search.";
	action = SET_SDF 40 5 1;
	code =
		sf(40,13,1);
		if (gf(40,6) > 0)
			rs(3);
	break;
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,6) == 0;
	question = "special";
	text1 = "Most of this half of the palace is occupied by one enormous chamber. Appropriate for the martial nature of the horde, it is an arena. It is a solid setting for duels, executions, and the settling of political disagreements, horde-style.";
	text2 = "Stealth is no longer an issue. The upper tiers are occupied by many horde warriors, who greet your arrival first with shock, then amusement. The hissing of slithzerikai laughter soon fills the chamber.";
	text3 = "Sitting in the middle of the top tier, you can see an enormous slith warrior. He wears a gold headband and holds, to one side, an enormous two-tined spear. Even from this distance, you can tell he is no longer young.";
	text4 = "But then, when he stands and points the massive spear at you, you see that he is also powerfully muscular. He roars, _Spies! Guards, come here! The first to draw blood from an intruder wins the approval of Ghavassa-Oss!_";
	text5 = "Several slith warriors leap down from the ramparts, eager to win their general's approval. As they run toward you, you notice that there is a gong at the east side of the arena. Peculiar.";
	action = SET_SDF 40 6 1;
	code =
		spawn_creature(4383);
		spawn_creature(4384);
		spawn_creature(4385);
		sf(40,16,1);
		sf(40,15,1);
	break;
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,7) == 0;
	question = "special";
	text1 = "The eastern half of Formello once contained a lovely park. It is still here, but mostly overgrown. You suspect that it won't be long before they chop down all the fungus and put up tents and cookfires for their army.";
	text2 = "To the south, you can see several of their warriors, hunting for you. They can hardly miss your noisy flight from the arena.";
	text3 = "And, beyond them, you can see a stone rise. On top of it, there is a familiar-looking stone pylon.";
	action = SET_SDF 40 7 1;

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,8) == 0;
	question = "special";
	text1 = "You were correct ... There is, indeed, a stone pylon back here. A portal pylon, overgrown with moss and lichen but still intact.";
	text2 = "The slithzerikai, for some reason, haven't destroyed it. Perhaps they thought that they could use it to sneak infiltrators into the Great Cave.";
	text3 = "Behind you, you can hear the angry howls of the slithzerikai. Their army is pouring in through the gates, all of them willing to give their lives to avenge their commanders. If the pylon doesn't function, well ...";
	text4 = "Best not to think about it.";
	action = SET_SDF 40 8 1;


//

begintalknode 10; // fading book
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This book is the journal of Khrez-Yss the Shadow. It contains a detailed account of all of his actions in Avernum. All of his helpers, all of his spies.";
	text2 = "And, the moment you touch it, the writing starts to fade away. In moments, you are just flipping through blank pages. Khrez-Yss, ever careful, took steps to make sure nobody could ever learn all he knew.";
	text3 = "Khrez-Yss's journal is still blank. Pity.";
	code =
		if (gf(40,10) == 0) {
			sf(40,10,1);
			rs(3);
			}
			else {
				rs(1); rs(2);
				}
	break;

begintalknode 11; // spellbook 1
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "One of the books in this hall of records is actually a spellbook, liberated from the humans when the city fell.";
	text2 = "You can't understand most of its contents, but there is one spell that seems very useful. It describes how to cloud the minds of those who are assaulting you. (Your skill with the spell Strong Daze increases.)";
	text3 = "You browse through the book a bit more, but you don't learn anything new.";
	text4 = "You browse through the book, but you can't understand any of it. You don't know enough magical lore. (Improve your Arcane Lore skill to understand books like these.)";
	code =
		if (gf(40,11) == 0) {
			rs(3);
			if (get_stat_total(13) < 9)
				rs(2);
				else {
					rs(4);
					sf(40,11,1);
					alter_stat(30000,55,1);
					}
			}
			else {
				rs(1); rs(2); rs(4);
				}
	break;

begintalknode 12; // unturnable wheel
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This wheel is enormous. You pull it with all of your might, but it refuses to budge. It probably takes at least six massive horde warriors to open and close the gates of the city.";

begintalknode 13; // spellbook 2
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This is a slithzerikai book of rituals. The chants and practices described within are, for the most part, pretty gruesome.";
	text2 = "One chant, however, can part the veil and bring spirits from beyond to aid you. It never hurts to know more about that sort of thing. (Your skill with the spell Divine Host increases.)";
	text3 = "You browse through the book a bit more, but you don't learn anything new.";
	text4 = "You browse through the book, but you can't understand any of it. You don't know enough magical lore. (Improve your Arcane Lore skill to understand books like these.)";
	code =
		if (gf(40,12) == 0) {
			rs(3);
			if (get_stat_total(13) < 14)
				rs(2);
				else {
					rs(4);
					sf(40,12,1);
					alter_stat(30000,79,1);
					}
			}
			else {
				rs(1); rs(2); rs(4);
				}
	break;

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = get_sdf(40,9) == 0;
	question = "special";
	text1 = "There are a lot of people in the Castle who would love to spend an hour in this room. This is where Khrez-Yss stored many of his records. Spies. Troop movements. Supplies. Plans. They are all in these scrolls.";
	text2 = "But there are so many of them, and you have no way to tell which are recent and which are current, which are important and which are trivia. It is painful, but it's an opportunity you just can't capitalize on.";
	action = SET_SDF 40 9 1;

// SHADOW ENC

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hear a grim sound behind you. The sound of gates closing. More than one of them. The sound of metal scraping on stone echoes to you, followed by the ominous thuds of gates hitting the floor.";
	text2 = "And then the sewers are as quiet as before. All that is different is that you are trapped. And you know now that someone knows you are here.";

begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You have landed several heavy blows on the Shadow. He doesn't look hurt, though, or scared. He just seems ... interested. _Yesss. I see how you fight. I will be prepared ..._";
	text2 = "Then he makes a brief hand motion. And ...";
	text3 = "... he is gone. One moment he was there. The next, he is not. And then you hear his laughter, echoing through the tunnels. He isn't far away.";

begintalknode 17;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Khrez-Yss was a master spy, but he wasn't much in hand to hand combat. You wear him down, bit by bit. His trinkets would only protect him for so long. Eventually, he dodges the wrong way, right into your blow.";
	text2 = "His shattered body is flung against the wall, hard. He collapses to his knees. His cowl falls back, giving you the first clear look at his face. He looks ... ordinary. Just like any other slith. He doesn't even wear face paint.";
	text3 = "He looks up at you and opens his mouth. You wait, interested to hear what he might say. And then his eyes glaze over. He slumps to the side. Silent. A mystery to the last.";
	text4 = "And, just like that, Khrez-Yss the Shadow, spymaster to the Slith Horde, is gone.";
	text5 = "There is something hanging around his neck on a silver chain. You look closer. It is an iron key. You take it.";

begintalknode 18;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Once again, Khrez-Yss makes his little hand motion and disappears. It is not just trickery or stealth. He is actually teleporting away.";
	text2 = "That is actually powerful magic, the sort of thing even a skilled mage can't do without help. Someone or something nearby must be helping him to do it.";

// ARENA

begintalknode 19;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The slithzerikai Ghavassa-Oss sent to slay you lay dead. He taps his huge spear against the floor and smiles. _Who is next? Who will prove themselves for the glory of the horde? A great reward awaits those who succeed!_";
	text2 = "Without hesitation, several more slith warriors jump down from the ramparts. The other sliths cheer lustily.";
	text3 = "You notice that some of them are looking at the gong to the east. Odd.";

begintalknode 20;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The beastmaster of the horde has been defeated. There is silence. The slithzerikai above you watch you intently, waiting to see what you will do next.";
	code =
		sf(40,13,1);
	break;
	
begintalknode 21;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Ghavassa-Oss leaps forward to deliver another mighty swing, but you are ready for it. Your attack travels under his guard and strikes him in the chest. He flies back and smashes into the wall of the arena.";
	text2 = "The slithzerikai gasp, unable to believe what they are seeing. Slowly, using his spear, Ghavassa-Oss the Impaler tries to rise again. And then he slumps back to the ground.";
	text3 = "He tries to point his spear at you, but the strength in his arm is fading. It falls to the ground with a clank. As the warriors witnessing this begin to hiss in grief, he dies.";
	text4 = "Kerrorr walks up to the corpse of Ghavassa-Oss and does something very gruesome with her knife.";
	text5 = "It doesn't take long for the slithzerikai to get over their shock. Their hisses take on a very different tone. Rage. You can hear gates opening up all over Formello, so that the guards can flood into the palace. For revenge.";
	text6 = "If you don't find a way to escape soon, you are doomed to be overwhelmed.";
	code =
		if (char_ok(4333) == FALSE)
			rs(4);
	break;

begintalknode 22;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Most of the slithzerikai warriors are watching the confrontation from the seats of the arena. They quiver excitedly, hoping that Ghavassa-Oss will select them for the honor of confronting you.";

begintalknode 23;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Ghavassa-Oss the Impaler doesn't respond to your queries. He simply watches with interest.";

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

//

begintalknode 25;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The slithzerikai have smashed this pylon. It is no longer usable.";

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

//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "There is a filthy nephil in the back of this cell. Her fur is matted and dirty, and she has a wild look in her eyes. She must truly be consumed with terror to let herself be reduced to such a state. Nephilim are normally very clean.";
	text2 = "When she sees you, she lets out a long, quiet yowl. _Mrrarrrr! What trick is this? Pfft! Khrez-Yss, you will not break me! Kerrorr will be in filth, but she will never submit!_";
	text3 = "And this brief moment of defiance is all she can manage. She shrinks back into the corner and starts to whimper.";
	text5 = "Kerrorr continues to curl up in the back of the cell, a miserable ball. The brief aura of courage she displayed when you entered seems entirely gone, but perhaps something can bring it back.";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = gf(41,19) == 0;
	question = "Where did you come from?";
	text1 = "_Mrrrr ... I say nothing. Never. Nothing. The Shadow listens. He always listens._";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = gf(41,19) == 0;
	question = "What has Khrez-Yss done to you?";
	text1 = "Kerrorr starts to tremble uncontrollably. _No. No. I will fight ... Fight you. No! He ... The Shadow will come. The things ... The things he does. We will all tell him all he wants, eventually._";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = gf(41,19) == 0;
	question = "I can help you escape.";
	text1 = "She desperately shakes her head. _No! No! There is no hope. No escape. He will toy with us. He will ... hurt us. And then we will all be back here. You and me. All die. All give up and die._";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = gf(41,19) == 0 && gf(170,6) > 0;
	question = "Khrez-Yss is dead.";
	text1 = "She looks up at you. For the first time, a little bit of sanity enters her eyes. _Gone? The Shadow is gone? It is not ... That can't happen. Nothing can ... But you are here, and he is gone. We can ... leave?_";
	text2 = "Slowly, unsteadily, she gets to her feet. She leaves the cell and returns shortly after with a long, crude dagger.";
	text3 = "_I am Kerrorr of the Fang Clan. I will never submit. Now I can die properly. I am ready._";
	code =
		sf(41,19,1);	
	break;
	
begintalknode 35;
	state = 30;
	nextstate = 31;
	condition = gf(41,19) > 0;
	question = "How did you come to be here?";
	text1 = "_I am of the Fang Clan. We lived in the Northern Isles. It was our home. We had land, the testing halls, many strong warriors. Much water keeping the horde from us. Mrrrr._";
	text2 = "_But then we fell._";

begintalknode 36;
	state = 30;
	nextstate = 33;
	condition = gf(41,19) > 0;
	question = "I have come to slay Ghavassa-Oss.";
	text1 = "_Mrrrr. The Impaler. I saw him once. When we first got here, we were taken to his arena. We were paraded, shamed. That is where he stays. Where he watches. Fights sometimes._";
	text2 = "_I saw him fight. Then I was brought below._";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = gf(41,19) > 0;
	question = "Tell me more about Khrez-Yss.";
	text1 = "She shakes her head. _Mrrrr. No honor. He is not worthy. The least of the Fang Clan is above him. I will waste no more breath on him._";

begintalknode 38;
	state = 30;
	nextstate = 35;
	condition = gf(41,19) > 0;
	question = "Why don't you come with me?";
	text1 = "She nods. _I will go. But I will not follow. I go to the arena. I go there to challenge. I go there so my pain can end._";
	text2 = "_Tell me when you are ready to follow._";

begintalknode 39;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Is that far from here?";
	text1 = "_It was the entrance to the Northern Reaches. A few days to the west by foot, and then over the water to the north. A ruin now._";

begintalknode 40;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "You fought the horde?";
	text1 = "_Mrrrr! We are the Fang Clan! We do not give up and flee our lands like the humans! There was a tower of wizards near us. It fell after a mighty fight, but we thought we could hold them off._";
	text2 = "_We were wrong._";

begintalknode 41;
	state = 31;
	nextstate = 32;
	condition = 1;
	question = "How did the horde defeat you?";
	text1 = "_Ships. Force. Many of their young, eager to prove themselves. We killed many, but then they broke through the seawall. Killed most of us. Defiled the testing halls. Took a few of us for their amusement._";

begintalknode 42;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "And are you the last one left?";
	text1 = "_I think I am. Rrrarrr! I will live no longer. Will not be the last of my clanmates to breathe. But I will do harm first. I am sure I will. I will spill the blood of the horde._";

begintalknode 43;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Who did he fight?";
	text1 = "_Three of my clanmates, at once, to show his strength to the horde. The Impaler is proud, and he lives for blood. Our strong ones, I saw them die. He killed them with ease._";
	
begintalknode 44;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "How many of you came down here?";
	text1 = "_Three of us, the three left, were brought to these halls to amuse the Shadow. He wanted to know what we knew of Avernum in the north lands. And he wanted to play with us like we play with our prey._";
	text2 = "_Only I am left. I know nothing to tell him. He did not know that. But I would never admit even that, not to him._";
	
begintalknode 45;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Can you show me where this Arena is?";
	text1 = "The gleam of the fanatic is in her eyes. _I can walk there, and you can follow. Yes. That is where I go. I will fight Ghavassa myself! His spear will enter me, and I will have peace at last. But first, I will hurt him!_";
	
begintalknode 46;
	state = 35;
	nextstate = 30;
	condition = 1;
	question = "Why don't you stay here for a bit?";
	text1 = "She thinks on this. _I will rest a little more, but only so that I have the strength for a better death. I am strong enough to live in this world a few more minutes if it means I can sink my dagger into another of the horde._";
	
begintalknode 47;
	state = 35;
	nextstate = -1;
	condition = 1;
	question = "Lead on, then.";
	text1 = "She stretches out. Then she stares at the crude blade in her hand. Is that dedication in her eyes, or madness? Probably both.";
	text2 = "_Yes. It is time. Time to be free of this!_ And she bounds toward the door ...";
	action = END_TALK;
	code =
		sf(41,20,1);
	break;

begintalknode 49;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Just stay here for now.";
	text1 = "Kerrorr just sits quietly in the back of her cell.";
	action = END_TALK;

//

begintalknode 55;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to talk to Kerrorr, but she shakes her head. _No more delays. It is time! Run! Run! Mrrarrr!_";

begintalknode 56;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Kerrorr collapses to the ground, mortally wounded. _Mrrrr. It is done. I join ... I join my ..._ She closes her eyes. A moment later, her face is peaceful at last.";

begintalknode 57;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Kerrorr walks up to the pylon. She seems perplexed. She didn't expect to live this long, and she doesn't know what this device is.";
	text2 = "She turns and looks at you. _Mrrrr. Magic. This is magic. Yes. Can you use it? Do so. I will watch and follow._";

begintalknode 58;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Kerrorr sees that you have caught up with her. She points to the east. _There ... That is where the Arena is._";
	text2 = "_My people have been no friends to Avernum. Mrrrr. But I swear to you. Today, we are bloodmates. Today, I say you are worthy, and I will remember you to my clan in the afterworld._";
	text3 = "Before you can think of anything to say to this, she is already running off.";

	
// 70

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "A lone slithzerikai slips out of the shadows. One moment, you couldn't see him. The next, you could. You aren't sure how long he has been watching you.";
	text2 = "He is wrapped in a cloak. His face is swathed in shadow, though you can see many trinkets and necklaces around his neck and arms.";
	text3 = "He looks familiar. You believe that you have seen him before, watching you from between the bars in Lord Trinket's lair. You think that this was the slith infiltrator who equipped that mad goblin. You stare at him, and he stares back.";
	text4 = "You recognize him instantly. You saw him once in Lord Trinket's lair. He attacked you not far west of Formello. And here you are, trapped in his lair.";
	text5 = "_Yessss ..._ he says, his voice full of malevolence. _You know me, as I know you. You have invaded the home of Khrez-Yss, the Shadow. You are the first to have such impertinence. You have given me a wonderful opportunity._";
	code =
		if (gf(24,3) == 0)
			rs(4);
			else rs(3);
	break;
	
begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Are you the one who trapped me here?";
	text1 = "_Oh, yesss. Nobody will steal thisss little treasure from me. The other foolsss will know that they let you slip by when I go upstairsss bearing your head. It will be marvelousss._";

begintalknode 72;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "I won't give you the time for any tricks. (Attack.)";
	text1 = "_Tricksss?_ The slithzerikai laughs and draws a long, thin blade. _You have not seen the beginning of my tricksss._ He advances.";
	action = END_TALK;
	
begintalknode 73;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "I am an opportunity? What do you mean?";
	text1 = "_I have done so much. Harmed Avernum in so many waysss. I have done the work of a thousand soldiersss. And yet, they still question me! Question my courage!_";
	text2 = "_When I am done with you, they will never question me again._";

begintalknode 74;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "So. What sort of things have you done in Avernum?";
	text1 = "_Oh, you think you will get information? That you can upset my plansss? For every one of my spiesss and brigandsss you have found, there are ten more. Stealing food. Getting information. Murdering in the shadowsss._";
	text2 = "_But the little you have done is still more than any other. Now you will pay._";

begintalknode 75;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "You have my sympathy. I guess.";
	text1 = "He dismisses your concern with a wave of his hand. _I grow old and weak, to share such concernsss with you. I have spent too much time sneaking among humansss. Their many weaknessesss infect me._";

begintalknode 76;
	state = 71;
	nextstate = 72;
	condition = 1;
	question = "And what will happen to me?";
	text1 = "_Oh, I would love to take you into my chambersss. Put you in a cell. Work my many wondersss on you, make you my puppet, make you beg to give me all I want. But I know I will never take you alive._";
	text2 = "_No, I will give you a clean death in battle. And your head will be my trophy. You know what that will mean?_";

begintalknode 77;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Not really.";
	text1 = "_More glory for the Shadow, and more fame for the Triad! More freedom to continue the war! Maybe even enough to invade the Eastern Gallery at last._ His eyes gleam with excitement.";
	text2 = "_But first ..._ He whips out a long, thin sword. _I have long prepared to prove myself in this way. They will never question my courage again!_ And, with that said, he lunges at you.";
	action = END_TALK;
	
//

begintalknode 80;
	state = -1;
	nextstate = 80;
	condition = 1;
	question = "";
	text1 = "Khrez-Yss makes a familiar motion with his hand. He waits for one of his crystals to pull him to safety.";
	text2 = "And nothing happens.";
	text3 = "He says, _What? No! All of them? You destroyed all of them?_ And the look of fear is plain on the reptilian spymaster's face.";

begintalknode 81;
	state = 80;
	nextstate = 81;
	condition = 1;
	question = "Yes. No more tricks. You have to fight honestly.";
	text1 = "He is furious. _Ahssss. I will not be mocked by you, too. You want an honest fight? You will have it!_";

begintalknode 82;
	state = 80;
	nextstate = 81;
	condition = 1;
	question = "You can try to get away again. I'll wait.";
	text1 = "He makes the hand motion again, and one more time. He shakes his head. _Well, I will not need that trick. I have othersss._";

begintalknode 83;
	state = 80;
	nextstate = 81;
	condition = 1;
	question = "It was not difficult.";
	text1 = "_And I will learn from thisss, for when I prepare to destroy the next invadersss._";

begintalknode 84;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "Why don't you surrender? You don't have to die here.";
	text1 = "_No! I am the Shadow! I am the spymaster of the great horde! I will never give in! I will never be paraded through your streets. I fight for the honor of all my people!_";
	text2 = "He rips one of the trinkets from around his neck. _Now, prepare yourself! You will see all of my tricks!_";
	action = END_TALK;
	
begintalknode 85;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "Perhaps we can work something out.";
	text1 = "_You think so? You think I am weak, just a talker? Just a sneak? I am the Shadow! I am the spymaster of the great horde! I will never give in! I will never be paraded through your streets. I fight for the honor of all my people!_";
	text2 = "He rips one of the trinkets from around his neck. _Now, prepare yourself! You will see all of my tricks!_";
	action = END_TALK;

begintalknode 86;
	state = 81;
	nextstate = -1;
	condition = 1;
	question = "No more talking. Prepare to die. (Attack.)";
	text1 = "_Yesss! You see me for what I am! Not just a sneak, a spy, an assassin. I am the Shadow! I fight for the honor of all my people!_";
	text2 = "He rips one of the trinkets from around his neck. _Now, prepare yourself! You will see all of my tricks!_";
	action = END_TALK;

//

// 90 shadow crystal

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "There is a small crystal pylon in the middle of this circle. It is about five feet tall. Rings of delicate runes circle it, carved into the surface from the base to the top.";
	text2 = "It is dark and dormant. There is nothing you can do with it.";
	text3 = "Several long cracks run up and down its surface. You have rendered it useless.";
	text4 = "A dim light glows under its surface, pulsing gently.";
	code =
		rs(2); rs(3); rs(4);
		if (gf(41,gf(41,22)) > 0)
			as(3);
			else if (gf(41,23) == 0)
				as(2); 
				else as(4);
	break;
	
begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = gf(41,23) > 0 && gf(41,gf(41,22)) == 0;
	question = "Smash the crystal.";
	text1 = "You swing your blade at the crystal. The moment it makes contact, a cloud of tiny sparks fly out. They jump around in all directions. Some skitter across the floor and walls. Others fly up your weapon and cover your arm.";
	text2 = "As you jump back, swatting out the painful little fires, the light in the crystal dims. Its surface bears several long cracks.";
	action = END_TALK;
	code =
		sf(41,gf(41,22),1); 
	break;

begintalknode 92;
	state = 90;
	nextstate = -1;
	condition = gf(41,23) > 0 && gf(41,gf(41,22)) == 0;
	question = "Touch the crystal.";
	text1 = "When your hand gets close to it, the crystal throws out a shower of sparks. You jump away, but not quickly enough. The sparks travel up your body.";
	action = END_TALK;
	code =
		set_char_status(30000,22,3);
	break;

begintalknode 93;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Leave the crystal alone.";
	text1 = "You simply walk away.";
	action = END_TALK;

// 110


begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "There is a large gong at the east end of the arena. A huge hammer rests on the floor next to it. The gong is pristine. It doesn't looks like it has received much use at all.";

begintalknode 111;
	state = 110;
	nextstate = -1;
	condition = gf(40,15) > 2;
	question = "Ring the gong.";
	text1 = "You take the hammer and give the gong a good, hard swing. The crashing noise echoes through Formello. Nothing else happens.";
	action = END_TALK;
	
begintalknode 112;
	state = 110;
	nextstate = -1;
	condition = gf(40,15) == 1;
	question = "Ring the gong.";
	text1 = "You take the hammer and give the gong a good, hard swing. The crashing sound echoes out through Formello.";
	text2 = "And, for a moment, all of the slithzerikai are still.";
	text3 = "Then, one by one, the sliths in the upper tiers turn and look at Ghavassa-Oss. The gong has some significance that isn't entirely clear.";
	text4 = "Ghavassa-Oss chuckles. _Ahssss ... You would challenge me? You think the lawsss and rightsss of the horde are extended to your kind? You are a fool!_";
	text5 = "_But, since you think yourself so great, here._ He nods to a huge warrior sitting to the right of his throne. _I can see my general is desperate for the chance to defeat you. I will give him the chance._";
	text6 = "Ghavassa-Oss nods. In two mighty leaps, one of his generals has jumped down into the arena.";
	action = END_TALK;
	code =
		sf(40,15,2);
		spawn_creature(4386);
	break;
	
begintalknode 113;
	state = 110;
	nextstate = -1;
	condition = gf(40,15) == 2 && char_ok(4386);
	question = "Ring the gong.";
	text1 = "You take the hammer and give the gong a good, hard swing. The crashing sound echoes out through Formello.";
	text2 = "Ghavassa-Oss chuckles. _Do not be greedy. Your challenge has been answered. You have your response. Deal with it._";
	
begintalknode 114;
	state = 110;
	nextstate = 111;
	condition = gf(40,15) == 2 && char_ok(4386) == FALSE;
	question = "Ring the gong.";
	text1 = "You take the hammer and give the gong a good, hard swing. The crashing sound echoes out through Formello.";
	text2 = "Everything gets very quiet for a moment. The slithzerikai seem confused. Whatever the protocol of the gong is, it doesn't cover an event like this.";
	text3 = "Ghavassa-Oss the Impaler looks around at the other slithzerikai, looking for someone to send to fight you. At this point, he can't help but notice how they are looking at him.";
	text4 = "They have a low opinion of him sending others to answer his challenge.";
	
begintalknode 115;
	state = 111;
	nextstate = 112;
	condition = 1;
	question = "Come on, Ghavassa-Oss. Are you a coward?";
	text1 = "Ghavassa-Oss looks furious at how he has been outplayed. _I am no coward, but your challenge is beneath me. The leader of the horde does not fight at the command of some filthy Avernitesss._";
	text2 = "The slithzerikai are a little dubious about this line of reasoning, but they don't argue with him. He is called the Impaler for a reason.";
	
begintalknode 116;
	state = 111;
	nextstate = 112;
	condition = 1;
	question = "You, uhhh, could just let me go.";
	text1 = "Ghavassa-Oss laughs. _Your life was forfeit when you entered our landsss. Landsss reclaimed through my leadership. No, you came to the arena. You issued the challenge. You will fight, and you will die._";
	text2 = "He starts looking around for someone else to send at you.";
	
begintalknode 117;
	state = 111;
	nextstate = 112;
	condition = 1;
	question = "(Just wait.)";
	text1 = "You stare up at Ghavassa-Oss and wait. Now that the other slithzerikai are questioning his leadership, it's up to him to get himself out of this mess.";
	text2 = "He snorts. _Don't just gawk at me, Avernite. Your challenge is beneath me. The leader of the horde does not fight at the command of some filthy Avernitesss._";
	text3 = "The slithzerikai are a little dubious about this line of reasoning, but they don't argue with him. He is called the Impaler for a reason.";

begintalknode 117;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "All right. But you should do something to avenge Khrez-Yss. Because I just killed him.";
	text1 = "An audible gasp arises from the slithzerikai in the arena. For someone to have killed the triad that led them, it was unthinkable. Ghavassa-Oss looks ill. But now he knows what must be done.";
	text2 = "In two bounds, he leaps from his throne to the arena. He's spry for such an old warrior. _You are strong. For an Avernite. You have earned a rare privilege. You will die at the hand of the Impaler himself!_";
	action = END_TALK;
	code =
		sf(40,15,3);
		sf(40,18,0);
		
		if (char_ok(get_pc_id(0))) 
			relocate_char(get_pc_id(0),818,141,0);
		if (char_ok(get_pc_id(1))) 
			relocate_char(get_pc_id(1),820,141,0);
		if (char_ok(get_pc_id(2))) 
			relocate_char(get_pc_id(2),822,141,0);
		if (char_ok(get_pc_id(3))) 
			relocate_char(get_pc_id(3),824,141,0);
		if (char_ok(4333))
			relocate_char(4333,821,142,0);
		
		erase_char(4399);
		spawn_creature(4391);
	break;

begintalknode 118;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "Well, I call you a coward. And, when I have killed the next lackeys you send, you will have shown yourself to be more of a coward.";
	text1 = "An audible gasp arises from the slithzerikai in the arena. For someone to insult a member of the triad in such a way is unthinkable. Ghavassa-Oss looks ill. But now he knows what must be done.";
	text2 = "In two bounds, he leaps from his throne to the arena. He's spry for such an old warrior. _You are brave. For an Avernite. You have earned a rare privilege. You will die at the hand of the Impaler himself!_";
		action = END_TALK;
	code =
		sf(40,15,3);
		sf(40,18,0);
		
		if (char_ok(get_pc_id(0))) 
			relocate_char(get_pc_id(0),818,141,0);
		if (char_ok(get_pc_id(1))) 
			relocate_char(get_pc_id(1),820,141,0);
		if (char_ok(get_pc_id(2))) 
			relocate_char(get_pc_id(2),822,141,0);
		if (char_ok(get_pc_id(3))) 
			relocate_char(get_pc_id(3),824,141,0);
		if (char_ok(4333))
			relocate_char(4333,821,142,0);
			
		erase_char(4399);
		spawn_creature(4391);
	break;

begintalknode 119;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "I only want to speak with you. Perhaps we can work something out. An end to this war.";
	text1 = "The mood of the crowd turns instantly. The slithzerikai look at you with loathing and disgust. Ghavassa-Oss laughs. _You have rung the gong, and now you want to talk? You back away from an honorable challenge?_";
	text2 = "_You are not worthy to fight me, and you never were. It would insult the horde._ And, looking much relieved, he rises and walks out of the arena to the northwest.";
	text3 = "Alas, this leaves you trapped in Formello with hordes of enemy warriors and no hope of catching Ghavassa-Oss. You try to get out, but, in the end, there are far too many of them.";
	action = END_TALK;
	code =
		erase_char(30000);
	break;
begintalknode 120;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "Leave the gong alone.";
	text1 = "Gong noises are loud and irritating. You leave the thing alone.";
	action = END_TALK;
	
////

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