// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(82,0) == 0;
	question = "special";
	text1 = "You get a good look at the field west of Fort Duvno. It is dotted with encampments, each full of well-armed, fully alert soldiers.";
	text2 = "This is the largest concentration of warriors in all of Avernum, all here to keep the Slith Horde bottled up and unable to enter the Eastern Gallery.";
	text3 = "You can also see several whipping posts. Desertion and theft of food are real problems, and harsh punishments are used to keep discipline. Most of the soldiers are sitting around the fires, talking and eating.";
	text4 = "You can see one captain moving from camp to camp, inspecting the soldiers, watching for signs of poorly maintained equipment and insufficient alertness, and shouting.";
	text5 = "There is a real festive air to the encampments. Now that the leaders of the horde have been slain, they believe that victory is close at hand.";
	action = SET_SDF 82 0 1;
	code =
		if (gf(170,8) == 0)
			rs(5);
	break;
	
begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(82,1) == 0;
	question = "special";
	text1 = "You are close to the main gate of Fort Duvno. This keep, until recently a crumbling and unimportant outpost in the middle of peaceful and secure lands, has become the most important fortress in Avernum.";
	text2 = "You can hear much activity going on inside. Caravans unloading goods. Blacksmiths hard at work. Soldiers training. On the other side of the fort, you can see smoke rising from the cookfires of the many soldiers camped there.";
	text3 = "The main gate is closed. A private watches you through the window as you approach.";
	action = SET_SDF 82 1 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(82,2) == 0;
	question = "special";
	text1 = "You enter Fort Duvno and find that, indeed, it is better staffed and equipped than any fort in Avernum. Everything has gone into keeping it ready, so that it can turn back any incursions of the Slith Horde into the Eastern Gallery.";
	text2 = "Your entrance attracts no special notice. There are many warriors here, training, resting, arriving and departing on a host of different missions.";
	text3 = "However, there is an extra tension in the air. You note that the soldiers constantly cast nervous glances to the northwest. And you are sure that you hear one of them say something about, _That crazy old wizard._";
	action = SET_SDF 82 2 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(82,3) == 0 && gf(170,8) > 0;
	question = "special";
	text1 = "Returning to Fort Duvno, you find that the atmosphere has changed dramatically. It is now both festive and mournful.";
	text2 = "They are happy because, of course, the Slith Horde has received a devastating blow. But, at the same time, they realize that Avernum has lost one of its true heroes, and they didn't understand that until he was gone.";
	action = SET_SDF 82 3 1;

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



//

begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This was an Avernite soldier. He was chained to this post. For a long time.";
	text2 = "A sign on the body's chest tells the whole story. It reads, _Deserter._";

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are a lot of soldiers camped out here. They are hungry and morale is low, but they are determined to fend off the Slith Horde. You stand close and eavesdrop on a conversation:";
	text2 = "_Jerek got twenty lashes. Why? For stealing a roll. Don't ask the commander for mercy. There is none._";
	text3 = "_That's right. The archmage has been in there for weeks. Why are we still sitting here? Why has nothing changed?_";
	text4 = "_That's right! I saw the sliths leading a demon around. On a chain. At least we got away. If you go north, you'll see the same thing._";
	text5 = "_The Horned Gate is to the north. I've seen how many slithzerikai they have there. Dozens. Hundreds! There's no way we can drive that many out._";
	text6 = "_I saw Solberg arrive. I did! He came on foot. I didn't think he'd look so ... tired._";
	text7 = "_Commander Andros has gone mad. Flog deserters, sure. Put them to hard labor, fine. But don't kill them. That's just a waste!_";
	text8 = "Your passage through the encampment attracts a lot of attention. Everyone here has heard of your deeds. You have no problem getting invited to sit at their fire for a drink and a hot meal. The hard part is getting away.";
	code =
		clear_strings();
		if (gf(170,6) > 0)
			as(8);
			else {
				as(1);
				as(2 + get_ran(1,0,5));
				}
	break;
	
begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Fort Duvno is filled with officers, scouts, mages, priests, and other skilled personnel. The infantry who get the serious work done are outside. You stand close and eavesdrop on a conversation:";
	text2 = "_I am surprised that the commander tolerates the insolence. If anyone questions my orders, I don't care what a hero he is, I would throw him out the gate._";
	text3 = "_Don't tell anyone I said so, but Solberg is right. This is an opportunity. We need to do something. Not what he says, but something._";
	text4 = "_Be quiet. I think Solberg's lackey is listening to us._";
	text5 = "_We will need to charge the Horned Gate eventually. It's the ugly truth. If only we had enough food to get everyone up to fighting strength._";
	text6 = "_I saw Solberg arrive. He walked through the gate. Not riding, or flying, or even teleporting. It was a disappointment._";
	text7 = "_Best to stay away from the mages. They are all on edge, and I can understand why. I just hope they remember what their job is: supporting the warriors. Mages go at the back, not the front._";
	text8 = "Your passage through the fortress attracts a lot of attention. Everyone here has heard of the defeat of Ess-Kalyn. You are bombarded with questions and requests to tell the tale. You eventually escape.";
	code =
		clear_strings();
		if (gf(170,8) > 0)
			as(8);
			else {
				as(1);
				as(2 + get_ran(1,0,5));
				}
	break;

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The mages of Fort Duvno are all walking around, lost in thought, mentally preparing for battle. Some study spells. Others meditate, marshaling their energy.";
	text2 = "They all avoid you. Oddly, being sent to help Solberg only makes them distrust you.";
	text3 = "As admiring as they are of your feats. They have work to do. They continue to concentrate on their studies, preparing for the next battle.";
	code = 
		if (gf(170,8) > 0)
			rs(2);
			else rs(3);
	break;
	
begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This blacksmith is hard at work repairing a blade. Then she has fifty other things to do. She doesn't have time to talk.";

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The army keeps a lot of lizards around, some for food and some to act as beasts of burden. They are as nasty and vicious and stupid as always.";

begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You can sense a sigh of relief coming from Fort Duvno. Solberg walks out through the gate. You hear someone mutter, _At last. He is gone._";
	text2 = "Their time with him has ended, but yours is beginning. He will be expecting you to meet him to the north, at the Horned Gate.";
	code =
		erase_char(8857);
		erase_char(8858);
		sf(82,4,4);
		sf(68,6,1);
	break;
	
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 = "__";


// Solberg

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "Once again, you meet the Archmage Solberg. He still radiates as much power and confidence as before, but it is tempered by great anger and frustration. And, surprisingly, fatigue. His journey from Patrick's Tower has tired him.";
	text2 = "You come before the famed Archmage Solberg, a hero of Avernum since the earliest days. His life has been dramatically extended through the use of magic, and his odd, waxy skin shows it. He starts speaking, feeling no need to introduce himself.";
	text3 = "_You there. You have come, at last. They might ignore me here, but I still have influence at the Castle. No matter what the fools say. Now I have you. You are under my command. You will listen to me. You will do what I say!_";
	text4 = "The other mages look away uncomfortably, as if embarrassed. _Come on. Come talk to me. I will tell you what we will do. You aren't much, but you're enough._"; 
	text5 = "The Archmage Solberg continues to talk to you, ranting about the need to strike at the horde and the foolishness of everyone in the fort in equal portions. The far younger mages keep their distance whenever possible.";
	text6 = "_Talk more? We will, if we must. But we need to hurry. We need to strike, before we ... Before something stops us._";
	action = INTRO;
	code =
		if (gf(158,14) == 0)
			rs(1);
			else rs(2);
	break;
	
begintalknode 31;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "What is the situation here?";
	text1 = "_At Fort Duvno? The situation is stasis._ He chuckles. _You, you personally, do the work. You strike at the horde. You hurt them. And the army? It sits here. Waiting. Only reacting._";
	text2 = "_It is not like it was in the early days. The young hate to hear it, but it is true._";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Is it possible to get training?";
	text1 = "_Of course. Go see Incantor Stuart. He is a teacher, not a warrior. It is what will make him comfortable._";

begintalknode 33;
	state = 30;
	nextstate = 32;
	condition = 1;
	question = "Have you been treated well here?";
	text1 = "He slaps the chair he is sitting on. _This is my treatment. This chair is what they gave me. And an invitation to stay out of the way. To keep my mouth shut._";
	text2 = "His voice is growing unnervingly loud. _I am a hero of Avernum. I have been since long before anyone here was born! And they ignore me! My advice is meaningless!_";

begintalknode 34;
	state = 30;
	nextstate = 35;
	condition = gf(82,4) <= 1;
	question = "Why have I been sent here?";
	text1 = "_Because, now that I have help, we are going to go out and strike at the horde. We are going to go out there, you and me, and we are going to issue a challenge._";
	code =
		sf(82,4,1);
	break;

begintalknode 35;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "The army is not going to attack?";
	text1 = "_No. The losses they have suffered have made them soft. Afraid. The horde is off balance now. It is ready to receive a real blow. And none of them see it._";
	text2 = "He slaps the arm of the chair in frustration. Then, wincing in pain, he says, _This is not the Avernum that defeated the Empire._";

begintalknode 36;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "How have things changed in Avernum?";
	text1 = "_Avernum was once a place for rebels. Only those brave enough to defy the Empire were sent here. Now it is a place for miners. Farmers. Seekers of money._";
	text2 = "_I regret the loss of the Great Portal. The ones who did not flee would be the true Avernites._ Out of the corner of your eye, you see a young apprentice roll his eyes.";
	text3 = "_The Blight is horrible, but, if we survive, it will make Avernum great again._";
	
begintalknode 37;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "How would you change things?";
	text1 = "_I will change nothing in Fort Duvno. Nothing. I have tried, and my counsel, that comes from the wisdom I have gained in many wars, has been rejected._";
	text2 = "_But now you are here. We will leave Fort Duvno behind. We will deliver the final blow to the Slith Horde together._";

begintalknode 38;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Why did you come here?";
	text1 = "_Because I am tired of sitting in towers. I am getting old. I am tiring of this world. I needed to go to the front, to fight for Avernum one more time, to show these young ... people what true power is!_";
	text2 = "_I came with a caravan. I wanted to see this land once more ... I mean, see it another time. But the journey was ... tiring._";

begintalknode 39;
	state = 32;
	nextstate = 33;
	condition = 1;
	question = "What is your advice?";
	text1 = "_Strike! Strike now, while they are confused! Hit them before their Scourgers can emerge and take control!_";
	text2 = "_We are squandering a true opportunity. It is unforgivable._";

begintalknode 40;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Who are the Scourgers?";
	text1 = "_We aren't sure. We only know they exist, and little more. But, in short, the Slith Horde is one enormous clan._";
	text2 = "_The Shadow, the Manburner, and the Impaler, they were the leaders of the war, but they were not the absolute leaders. They answer to the Scourgers, who were put in power to keep them under watch._";
	text3 = "_If nothing is done soon, the Scourgers will assert control and replace the leaders, and the horde will be confused no longer._";

begintalknode 41;
	state = 33;
	nextstate = 34;
	condition = 1;
	question = "Why don't they strike?";
	text1 = "His voice instantly grows loud and shrill. _Fear! Cowardice! They want only to be safe, not to rid that plague from our lands. They wish only to hide in the comfort of Fort Duvno._";
	text2 = "The other mages here are growing visibly annoyed at this tirade. Solberg, with effort, calms down.";
	text3 = "_They want to keep all of their strength here to keep out the horde. I understand the strategy. But it is wrongheaded._";

begintalknode 42;
	state = 34;
	nextstate = -1;
	condition = 1;
	question = "Why?";
	text1 = "_Because they grow stronger every day, and we grow weaker._";

begintalknode 43;
	state = 35;
	nextstate = 36;
	condition = 1;
	question = "What?";
	text1 = "_The Slith Horde is confused, but not enough. Two of its leaders are dead, but the third remains. Ess-Kalyn the Manburner, their most powerful mage, their leader on the battlefield._";
	text2 = "_We are going to challenge her. We will face her. And we will kill her._";

begintalknode 44;
	state = 36;
	nextstate = -1;
	condition = 1;
	question = "You think you can get her to fight you?";
	text1 = "_I have fought the savage slithzerikai for so many years. I know how they think. I can sense when they feel vulnerable, when they feel a need to show their strength._";
	text2 = "Then, unexpectedly, he turns and starts shouting at the other mages. _You hear that? I understand them! You don't! If you did, you wouldn't be hiding in here now!_ And then he calms down as if nothing had happened.";

begintalknode 45;
	state = 36;
	nextstate = 37;
	condition = 1;
	question = "And you want me to go out there with you. To face the Slith Horde.";
	text1 = "_Yes. Just us. A small force. It is the only way to get a chance at the Manburner. The only way to expose her and give us a chance to leave the horde headless._";
	text2 = "_Of course, it will be dangerous. Us confronting their entire army. It will be a glorious thing. Worthy of old Avernum._";

begintalknode 46;
	state = 37;
	nextstate = -1;
	condition = 1;
	question = "Sounds great!";
	text1 = "Solberg nods. _That is the spirit. I chose well when I requested you. Prepare yourself. Go and get ready for a real battle. Return when you are ready. We must leave before some bureaucrat interferes. Go. Then return._";
	action = END_TALK;

begintalknode 47;
	state = 37;
	nextstate = -1;
	condition = 1;
	question = "This plan is madness.";
	text1 = "_So I have heard. Again and again. From the commander on down._ He gives you a nasty grin. _But you ... They are not under my command. You are. You follow my orders now. And they are that we strike._";
	text2 = "_Prepare yourself. Go and get ready for a real battle. Return when you are ready. But you had better return, lest I declare you a deserter. We must leave before some bureaucrat interferes. Go. Then return._";
	action = END_TALK;
	
begintalknode 48;
	state = 30;
	nextstate = -1;
	condition = gf(82,4) == 1;
	question = "I am ready to attack the slithzerikai.";
	text1 = "Solberg looks around nervously and then nods. Behind you, an apprentice slips out of the workshop. Solberg rises, slowly and painfully, from his chair.";
	text2 = "_Then it is time. Come. Now. We must go, before someone interferes._ He hobbles toward the door.";
	action = END_TALK;
	code =
		toggle_quest(110,1);
		sf(82,4,2);
		break;
		
begintalknode 49;
	state = 30;
	nextstate = -1;
	condition = gf(82,4) == 1;
	question = "I am not ready to attack yet.";
	text1 = "Solberg looks annoyed. _No second thoughts, I hope. No plans to desert? That would be very unwise._";
	text2 = "_Do what you need to do, quickly. Then return._";
	action = END_TALK;
	
// Commander Andros

begintalknode 55;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "You approach the commander of Fort Duvno. He is a muscular middle-aged man. His halberd leans against the nearby wall. His pale skin makes the many scars on his face and arms easily visible.";
	text2 = "When he realizes who you are, his mouth twists into a look of anger and disgust. _So. Solberg finally got what he wants. Puppets to join him in suicide._";
	text3 = "_I am Commander Andros. I am in charge here. Do not forget it. Discipline is harsh here, and we do not tolerate foolishness or theft. Or desertion. Remember that._";
	text5 = "Commander Andros says, _What else do you want? And talk quickly. I only have time for those in my command._";
	action = INTRO;
	code =
		if (gf(170,8) > 0)
			rs(2);
	break;
	
begintalknode 56;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "Tell me about Fort Duvno.";
	text1 = "_We are the line. We are the barrier that the Slith Horde will never cross. My soldiers know it. There is no retreat. If the horde attacks, there are only two options. Victory, or death._";
	text2 = "_Of course, with the shortage of food and the loss of the Great Portal, it is hard to maintain discipline. But I do what needs to be done._";
	
begintalknode 57;
	state = 50;
	nextstate = 53;
	condition = gf(170,8) == 0;
	question = "What does Solberg want?";
	text1 = "He shakes his head. _He has some fool idea of dueling Ess-Kalyn. He thinks we still live in the old days, when there were only a handful of cold, wet exiles down here, waving around their stone weapons._";
	text2 = "_This is a new age, an age of armies and organization. He wants to waste lives and weaponry on some grand final charge. Well, he is mad, and I won't allow it. Not with my soldiers, anyway._";
	
begintalknode 58;
	state = 50;
	nextstate = 55;
	condition = gf(170,8) > 0;
	question = "Ess-Kalyn has been destroyed.";
	text1 = "Commander Andros sighs. _That is true enough. Solberg was, in his own mad way, correct. Perhaps he was more of a hero than I credited him for._";
	text2 = "_But, in a way, nothing has changed. The horde remains. The Scourgers remain. We still face the same problems._";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "I could use supplies.";
	text1 = "He snorts. _You want them? You can trade for them. We barely have enough to support our own troops. I won't waste equipment on Solberg's madness!_";
	text3 = "_You want them? You can trade for them. I appreciate what you did, but I still barely have enough to support my own troops._";
	action = DEP_ON_SDF 170 8 0;
	
begintalknode 60;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Will the horde attack?";
	text1 = "_Of course. They want all of the underworld. They want to kill and eat us all._";
	text2 = "_The loss of their leaders has slowed them. It has not stopped them._";
	code =
		if (gf(170,8) == 0)
			rs(2);
	break;
	
begintalknode 61;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "How are you keeping the horde held back?";
	text1 = "_By not being arrogant. By not giving in to the overconfidence that caused all of northern Avernum to be lost._";
	text2 = "_Up north, they were sloppy. They met the sliths on the field instead of staying in their forts. They did not commit all of their forces. They did not have sufficient magical support. They failed._";
	text3 = "_Me, I take the threat seriously. We will hold this fort, and we will not emerge until we know we can succeed._";

begintalknode 62;
	state = 51;
	nextstate = 52;
	condition = 1;
	question = "How have you maintained discipline?";
	text1 = "_Harshly. I have spilled blood when I had to. The blood of thieves and deserters. It was painful, and it made the men angry. But it was necessary._";
	text2 = "_When it was difficult, I followed the example of my predecessor._";
	
begintalknode 63;
	state = 52;
	nextstate = -1;
	condition = 1;
	question = "Who was that?";
	text1 = "_Commander Johnson. He knew that, when things were difficult, an army is held together with steel, discipline, and the lash. We stand together, or we die._";
	text2 = "_If any of us desert our position, they must pay. Even you. I pity your answering to the mad old mage. But he is your commander, and you must obey._";
	code =
		if (gf(170,8) > 0)
			rs(2);
	break;

begintalknode 64;
	state = 53;
	nextstate = 54;
	condition = 1;
	question = "Would it be good if Ess-Kalyn were dead?";
	text1 = "He looks annoyed. _Do I want the Manburner dead? Of course. For a thousand reasons! I have lost friends to her fire, lifelong friends._";
	text2 = "_But it is a fantasy. I live in reality._";

begintalknode 65;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "Do you think he can draw Ess-Kalyn out?";
	text1 = "_No. She is too smart. And, even if he tricked her, she is too good. She is not like the Shadow and the Impaler, a spy and a tactician._";
	text2 = "_She is a warrior, the terror of the battlefield. Solberg is old and weak. He can't beat her._";

begintalknode 66;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "Do you think Solberg is mad?";
	text1 = "_I do. Too many years, too much magic. And to think, when I was young, I revered him. Practically worshipped him for all he did. Once. Long ago._";
	text2 = "_But then I met the man. Now I only want him to do as little harm as possible, while he chases his suicidal glory._";

begintalknode 67;
	state = 54;
	nextstate = -1;
	condition = 1;
	question = "Why is she so hard to kill?";
	text1 = "_Because, while she fights in every battle, she always has a massive escort. And because all who challenged her fell to her fire._";
	text2 = "_She is a mage of true power, all of it channeled toward calling fire, and sending it at humans. And nephilim and any sliths who challenge her._";
	text3 = "_Solberg underestimates her like all the others did. He will fail._";

begintalknode 68;
	state = 55;
	nextstate = -1;
	condition = 1;
	question = "Who are the Scourgers?";
	text1 = "_A separate sect in the Slith Horde, a council of shamans. They still maintain power. They will keep the enemy organized. The horde still maintains much of its strength._";
	text2 = "_They won't attack us, not unless we get careless. But they won't be easily dislodged either._";

begintalknode 69;
	state = 55;
	nextstate = -1;
	condition = 1;
	question = "What problem is that?";
	text1 = "_We are still trapped down here. We don't have enough food. Unless that problem is solved, your victories will make no difference._";
	
// Hapscomb

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "The smithy of Fort Duvno is, unsurprisingly, very busy. Broken weapons and wagon wheels get brought here constantly, along with damaged breastplates, and spearheads that need sharpening. There is a constant line of soldiers outside.";
	text2 = "There are several blacksmiths at work, all answering to this man. Important and delicate work gets passed to him. They take care of the easy stuff themselves. When he sees you, however, he drops everything to greet you.";
	text3 = "_Welcome. I am Hapscomb. It is an honor to meet you. It truly is. I have heard stories of your victories in Formello, and I had hoped that you might find your way here. I am very busy, but, if you need custom work, please ask._";
	text5 = "Hapscomb continues to attend to you, much to the annoyance of everyone else. _Never mind them. It is an honor to deal with a true hero. Do you need anything? Repairs? Custom work?_";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = 91;
	condition = 1;
	question = "What has been happening in Fort Duvno lately?";
	text1 = "He laughs bitterly. _I do not get involved in any of that. When anyone brings their arguments in here, we say to take them back outside._";
	text2 = "_And to think, when we learned Solberg was coming here, we were thrilled. That didn't last._";

begintalknode 92;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Do you have anything for sale?";
	text1 = "_No ... I sent everything to the quartermaster. She'd have my head if I didn't. She might trade with you, though._";

begintalknode 93;
	state = 90;
	nextstate = 95;
	condition = 1;
	question = "I would like custom work made.";
	text1 = "You both ignore the angry muttering from the soldiers. Hapscomb nods. _After what you've done, it will be an honor._";
	text2 = "_Mind you, I will need raw materials. Quality steel. Focusing crystals. And I might need demon's bile or mandrake tincture, depending on what you want made._ You show him the materials you have gathered.";

begintalknode 94;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "That is all I need.";
	text1 = "He nods. _Then I'll get back to calming the angry masses._ He returns to work.";
	action = END_TALK;
	
begintalknode 95;
	state = 91;
	nextstate = -1;
	condition = gf(170,8) == 0;
	question = "What is the argument about?";
	text1 = "_Solberg came in here and tried to advise the commander. The commander is a proud man, and he didn't like it. Especially since the wizard's plan was ... bold, to say the least._";
	text2 = "He wipes sweat form his brow and shrugs. _As I said, it is not my argument. I have work to do, and I do it._";

begintalknode 96;
	state = 91;
	nextstate = -1;
	condition = gf(170,8) == 0;
	question = "What do you think of Solberg?";
	text1 = "_Never met him. I think that ... Well, he has a reputation. He is old and difficult. But, when Avernum has been in trouble, there's never been better to have on our side._";
	text2 = "_If I were the commander, I might listen to what the old wizard has to say. But I'm not._";

begintalknode 97;
	state = 91;
	nextstate = -1;
	condition = gf(170,8) > 0;
	question = "And what has happened since the battle with Ess-Kalyn?";
	text1 = "He laughs. _Overnight, everyone who said Solberg was crazy at first talked about how they supported him all along. That's the way people work. That's why I try not to leave my forge._";

begintalknode 98;
	state = 95;
	nextstate = -1;
	condition = num_of_item(296) > 0 && num_of_item(295) > 0;
	question = "I would like a pair of bracers. (Give 1 fine steel and 1 focusing crystal.)";
	text1 = "Hapscomb takes the materials, examines them, and nods approvingly. _Stand back. I'll need to work quick._";
	text2 = "He heats the steel in the forge and attacks it with a hammer, sending showers of sparks into the air. The waiting soldiers stop complaining and watch him work. It's a remarkable display of skill.";
	text3 = "At last, using tongs, he cools the bracers in a pool of water and brings them to you. _Use them well._";
	action = REUSABLE;
	code =
		take_num_of_item(296,1);
		take_num_of_item(295,1);
		reward_give(112);
	break;
	
begintalknode 99;
	state = 95;
	nextstate = -1;
	condition = num_of_item(296) > 2 && num_of_item(295) > 1 && num_of_item(287) > 1;
	question = "I would like a beautiful rapier. (Give 3 fine steel, 2 focusing crystals, and mandrake tincture.)";
	text1 = "Hapscomb takes the materials, examines them, and nods approvingly. _Stand back. I'll need to work quick._";
	text2 = "He heats the steel in the forge and attacks it with a hammer, sending showers of sparks into the air. The waiting soldiers stop complaining and watch him work. It's a remarkable display of skill.";
	text3 = "At last, using tongs, he cools the blade in a pool of water and brings it to you. _Use it well._";
	action = REUSABLE;
	code =
		take_num_of_item(296,4);
		take_num_of_item(292,2);
		take_num_of_item(287,1);
		reward_give(80);
	break;

begintalknode 100;
	state = 95;
	nextstate = -1;
	condition = num_of_item(296) > 1 && num_of_item(295) > 1 && num_of_item(287) > 1;
	question = "I would like a shield. (Give 2 fine steel, 2 focusing crystals, and mandrake tincture.)";
	text1 = "Hapscomb takes the materials, examines them, and nods approvingly. _Stand back. I'll need to work quick._";
	text2 = "He heats the steel in the forge and attacks it with a hammer, sending showers of sparks into the air. The waiting soldiers stop complaining and watch him work. It's a remarkable display of skill.";
	text3 = "At last, using tongs, he cools the shield in a pool of water and brings it to you. _Use it well._";
	action = REUSABLE;
	code =
		take_num_of_item(296,2);
		take_num_of_item(295,2);
		take_num_of_item(287,1);
		reward_give(136);
	break;

begintalknode 101;
	state = 95;
	nextstate = -1;
	condition = num_of_item(296) > 3 && num_of_item(295) > 1 && num_of_item(288) > 1;
	question = "I would like a powerful halberd. (Give 4 fine steel, 2 focusing crystals, and demon's bile.)";
	text1 = "Hapscomb takes the materials, examines them, and nods approvingly. _Stand back. I'll need to work quick._";
	text2 = "He heats the steel in the forge and attacks it with a hammer, sending showers of sparks into the air. The waiting soldiers stop complaining and watch him work. It's a remarkable display of skill.";
	text3 = "At last, using tongs, he cools the head of the halberd in a pool of water and brings the weapon to you. _Use it well._";
	action = REUSABLE;
	code =
		take_num_of_item(296,4);
		take_num_of_item(292,2);
		take_num_of_item(288,1);
		reward_give(395);
	break;

begintalknode 102;
	state = 95;
	nextstate = -1;
	condition = num_of_item(296) > 1 && num_of_item(295) > 1 && num_of_item(288) > 1;
	question = "I would like a helmet suitable for a mage. (Give 2 fine steel, 2 focusing crystals, and demon's bile.)";
	text1 = "Hapscomb takes the materials, examines them, and nods approvingly. _Stand back. I'll need to work quick._";
	text2 = "He heats the steel in the forge and attacks it with a hammer, sending showers of sparks into the air. The waiting soldiers stop complaining and watch him work. It's a remarkable display of skill.";
	text3 = "At last, using tongs, he cools the helmet in a pool of water and brings it to you. _Use it well._";
	action = REUSABLE;
	code =
		take_num_of_item(296,2);
		take_num_of_item(292,2);
		take_num_of_item(288,1);
		reward_give(340);
	break;

begintalknode 103;
	state = 95;
	nextstate = -1;
	condition = 1;
	question = "I don't need anything made.";
	text1 = "_Ahhh ... And it doesn't look like you need repairs. I suppose I should return to calming the masses. Excuse me._ He turns and starts to deal with the waiting soldiers.";
	action = END_TALK;

	
// Incantor Stuart

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "There is a young wizard in charge of this workshop, watching over the other, less skilled mages. There is no research going on here. These are all war mages. They are resting, concentrating, and preparing themselves for battle.";
	text2 = "He watches you skeptically as you approach. When he tries to slip away quietly, you intercept him. Resigned to talking to you, he says, _You are here for Solberg, yes? You are under his command?_";
	text3 = "_I am Incantor Stuart, leader of the battle mages of Fort Duvno. We are very busy with preparations, but I suppose I can speak with you for a moment. If necessary._";
	text5 = "Incantor Stuart walks around the workshop, directing the mages in their preparations. He frequently stops to give one instruction or lecture another about the need to concentrate.";
	text6 = "He occasionally looks at you and says, _What else do you need?_";
	action = INTRO;
	code =
		if (gf(170,8) > 0)
			rs(2);
	break;
	
begintalknode 111;
	state = 110;
	nextstate = 111;
	condition = 1;
	question = "Tell me about your preparations.";
	text1 = "He stands up straight. Though he is young, you can sense that he has already gained considerable power. _We are war mages. When the attack comes, we will be on the ramparts, casting spells down on the enemy._";
	text2 = "_But many here are new, accustomed to the laboratory and not the battlefield. It is my job to prepare them for battle. Well, prepare them as much as one can be prepared._";
	
begintalknode 112;
	state = 110;
	nextstate = 112;
	condition = gf(170,8) == 0;
	question = "I'd like to know more about Solberg.";
	text1 = "He looks grim. _Of course you would. You are here at his command, after all. It is unfortunate that you are caught up in his ... delusions._ He lowers his voice. _You should be warned, if you have not been already._";
	text2 = "_And you can tell him I said so. It is nothing I have not said to his face._";

begintalknode 113;
	state = 110;
	nextstate = 115;
	condition = gf(170,8) > 0;
	question = "Solberg and Ess-Kalyn are both dead.";
	text1 = "Stuart nods. He looks surprisingly upset. _The old madman ... He was right. I never imagined it. I ... We are all still absorbing it. It is very difficult._";
	
begintalknode 114;
	state = 110;
	nextstate = 117;
	condition = 1;
	question = "I would like magical training.";
	text1 = "_Of course. I would deny it to none who fight by my side, no matter who they answer to. I can teach you about spells or techniques._";
	text3 = "_Of course. I would deny nothing to the destroyer of Ess-Kalyn. I can teach you about spells or techniques._";
	action = DEP_ON_SDF 170 8 0;
	
begintalknode 115;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "How often are you attacked?";
	text1 = "_The sliths constantly probe our defenses. They send small groups through the Horned Gate, with mages and summoned demons. They throw fireballs from a distance, trying to lure us out._";
	text2 = "_There have been no major attacks for some time. This only means that we are due._";
	
begintalknode 116;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "What sort of spells do you use?";
	text1 = "_Everything that can give us an advantage. Cold and lightning, of course. Not fire, as the slithzerikai resist it._";
	text2 = "_We use terror to break up their ranks and other spells to take the minds of their warriors, getting them to strike the backs of their allies._";
	text3 = "_But, of course, they do the same to us._";
	
begintalknode 117;
	state = 111;
	nextstate = -1;
	condition = 1;
	question = "Have you had many casualties?";
	text1 = "He frowns. _Many. Many losses. Good wizards. Some friends, some teachers. The slithzerikai mages are powerfully skilled, and they know to direct their attacks against us._";
	text2 = "_The worst is Ess-Kalyn. Once she directs her fire toward you, you will be lucky to live. Those of us who drew her gaze ... I hear their screams still._";
	text3 = "_That is why it angers me so to hear mad old Solberg call us cowards._";


begintalknode 118;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "Solberg has not helped you?";
	text1 = "_Helped? Hah! He offers us the guidance of his absolute leadership, forgetting that I do not answer to him._";
	text2 = "_Solberg has tried taking the reins of leadership before. And it did not work, which is why he is here now._";
	
begintalknode 119;
	state = 112;
	nextstate = -1;
	condition = 1;
	question = "It sounds like you think that he is mad.";
	text1 = "_Hmmm. An interesting question. The longer a wizard's life is prolonged, the more unstable he or she gets. It is inevitable._";
	text2 = "_But is Solberg mad yet? Well, you can listen to him speak and judge for yourself._";
	
begintalknode 120;
	state = 112;
	nextstate = 113;
	condition = 1;
	question = "What is Solberg's plan?";
	text1 = "_Oh, no! I would not try to upstage the mighty Solberg! Why, such wisdom as his should not be sullied by passing through my lips. You should experience the glory of his genius firsthand!_";
	text2 = "_Though, if you don't mind a summary from someone as ignorant as myself, he wants to attack the Slith Horde. Himself. He wants to challenge Ess-Kalyn to a duel._";
	
begintalknode 121;
	state = 113;
	nextstate = 114;
	condition = 1;
	question = "How can he do this?";
	text1 = "_Oh, he can't. The Manburner is one of the most cunning and deadly of battle mages ... Well, that I have ever heard of. The idea that she will be drawn out and defeated by some ... some trickery is madness._.";
	
begintalknode 122;
	state = 114;
	nextstate = -1;
	condition = 1;
	question = "How can she be destroyed?";
	text1 = "_First, we will make a stronger army. Then we will challenge their army on the field of battle. Then we will strip away her guards and wear her down. Then, at last, we will be able to kill her._";
	text2 = "_It will be difficult and costly. I have given up on survival. But it is the only way._";
	
begintalknode 123;
	state = 115;
	nextstate = -1;
	condition = 1;
	question = "How so?";
	text1 = "_We are mages of Avernum. We were raised on stories of Solberg. Of his accomplishments, his battles, since the earliest days. And then he was here. Actually among us. And then ... Now he is gone._";
	text2 = "_We are all a bit shaken. Please, excuse me ..._ He turns away.";
	action = END_TALK;
	
begintalknode 124;
	state = 117;
	nextstate = -1;
	condition = 1;
	question = "I would like to learn spells.";
	text1 = "You conclude your training.";	
	code = 
		if (gf(170,8) == 0)
			begin_shop_mode("Stuart's Spells",
		  "Stuart is willing to teach someone working for Solberg. You note, however, that he is charging a lot for materials.",
		  70,5,0);	
		else begin_shop_mode("Stuart's Spells",
		  "Stuart is eager to teach you. After what you have accomplished, he gives you a considerable discount.",
		  70,0,0);	
	break;
	
begintalknode 125;
	state = 117;
	nextstate = -1;
	condition = 1;
	question = "I would like to learn techniques.";
	text1 = "You conclude your business.";	
	code = 
		if (gf(170,8) == 0)
			begin_shop_mode("Stuart's Spells",
		  "Stuart is willing to teach someone working for Solberg. You note, however, that he is charging a lot for materials.",
		  71,5,0);	
		else begin_shop_mode("Stuart's Spells",
		  "Stuart is eager to teach you. After what you have accomplished, he gives you a considerable discount.",
		  71,0,0);	
	break;
	
begintalknode 126;
	state = 117;
	nextstate = -1;
	condition = 1;
	question = "I do not need training.";
	text1 = "_Ah. Then please excuse me, so I can help those who do._ He gives you a quick bow and walks off.";
	action = END_TALK;

	
// Sergeant Frannie

begintalknode 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "Of all the quartermasters in Avernum, this woman is truly the one who is living the dream. For months, every bit of food or weaponry that could be spared has been shipped straight to Fort Duvno.";
	text2 = "She walks among the piles of equipment, whistling and merrily cataloging it. And then she sees you, and her face falls.";
	text3 = "_Ah. Hello, soldier. I am Sergeant Frannie. I can see from the look on your face that you need supplies. But there isn't much I can do for you._";
	text5 = "Sergeant Frannie walks among the supplies, taking notes. _Are you here to trade? Alas, that is still all I can do for you._";
	action = INTRO;

begintalknode 131;
	state = 130;
	nextstate = 131;
	condition = 1;
	question = "What is happening in Fort Duvno right now?";
	text1 = "_You know, I try not to get involved in all of that madness. This building is on the opposite end of the fort from the wizards' workshop, and it seems a shame not to take advantage of it._";
	
begintalknode 132;
	state = 130;
	nextstate = 132;
	condition = 1;
	question = "Can I get some equipment?";
	text1 = "_The commander sent orders over. I am only to give supplies to those directly under his command. I can trade with you, but that is all. I do apologize. I hear you've done remarkable things for us._";
	text2 = "_But please don't make trouble for me. I have had many problems as it is._";

begintalknode 133;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "I would like to buy something.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Sergeant Frannie",
		  "Though the quartermaster has been ordered to not just give you things, she doesn't drive a hard bargain when trading.",
		  72,2,0);	
	break;
	
begintalknode 134;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "I have equipment I want to sell.";
	text1 = "You conclude your business.";	
	code = 
		begin_sell_mode();
	break;
	
begintalknode 135;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "I don't need anything.";
	text1 = "_All right. Safe travels, then._";
	action = END_TALK;
	
begintalknode 136;
	state = 131;
	nextstate = -1;
	condition = gf(170,8) == 0;
	question = "What is happening there?";
	text1 = "_Oh, the Archmage Solberg has come to stay, and there are the standard ego conflicts. As I said, I remain in blissful ignorance._";
	
begintalknode 137;
	state = 131;
	nextstate = -1;
	condition = gf(170,8) > 0;
	question = "What is happening there?";
	text1 = "_Some sort of crisis of conscience, now that the great and legendary Solberg died pretty much just outside. As I said, I remain in blissful ignorance._";
	
begintalknode 138;
	state = 132;
	nextstate = -1;
	condition = gf(170,8) == 0;
	question = "But I am here to help Solberg!";
	text1 = "_I know that. And I believe that is exactly the reason the commander told me not to help you. I don't get involved in all those arguments. I just follow orders._";
	
begintalknode 139;
	state = 132;
	nextstate = -1;
	condition = gf(170,8) > 0;
	question = "But I destroyed Ess-Kalyn!";
	text1 = "_So I have heard. All of us are grateful. However, my orders were never changed. Perhaps it is an oversight on the commander's part. Or perhaps he is resentful that he was proved wrong, and he is taking it out on you._";
	text2 = "_I've seen enough to know that both are equally likely._";
	
begintalknode 140;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "What sort of problems have you had?";
	text1 = "_Everything you can expect when everyone is hungry and all the food is in one place and I have to watch it._";
	text2 = "_Still, things are getting better. Not many rats lately, and we've had far fewer inventory problems since we starting flogging thieves. Real flogging, not those light touches we gave before._";

// Captain Patience

begintalknode 150;
	state = -1;
	nextstate = 150;
	condition = 1;
	question = "Name";
	text1 = "This woman is past middle-age. She should be settled down on a farm somewhere, not walking around these encampments, bow slung over her shoulder, shouting orders.";
	text2 = "When she sees you, she immediately walks up to greet you. _I never let an unfamiliar face pass. I am Captain Patience. No jokes about the name. I don't like ordering floggings, but I do it all the same._";
	text3 = "_Welcome to the main force. Ready to fight. Ready to die, if that's what it takes to keep the Eastern Gallery out of enemy hands. If you need to know more about the horde, I'm the one to ask._";
	text5 = "You walk with Captain Patience as she patrols the camps. She is constantly looking for stolen food, poorly tended weapons, or simple slacking. _The slightest lapse in discipline can snowball. We always have to stay alert._";
	text6 = "Staying alert, you soon note, involves a lot of shouting.";
	action = INTRO;

begintalknode 151;
	state = 150;
	nextstate = 151;
	condition = 1;
	question = "Tell me more about Fort Duvno.";
	text1 = "_That's where all the planning is taking place. All the tactics. And it's where the wizards are. Where they prepare and learn spells and do whatever they do. Out here is where the real fighting happens._";
	text2 = "_From what I hear, though, the way things are in there, I'm glad I'm out here._";
	text3 = "She grins. _But I bet I know what they're all working on right now._";
	code =
		if (gf(170,8) == 0)
			rs(3);
			else rs(2);
	break;
	
begintalknode 152;
	state = 150;
	nextstate = 152;
	condition = 1;
	question = "I'd like to know more about the Slith Horde.";
	text1 = "_Not much more to say about it. It's confused and leaderless. No chance of them attacking any time soon. I'm hoping soon we push to drive them back and retake our lands._";
	text3 = "_Well, they're the same savage tribes that have haunted Avernum since the early days. Normally crude and violent and disorganized, but they're different now. They have leadership, and that makes all the difference._";
	text4 = "_There are Khrez-Yss the Shadow. He's their spymaster. And Ghavassa-Oss the Impaler. He's the general. Their tactics come from him._";
	text5 = "_There were Khrez-Yss and Ghavassa-Oss, but they're gone._";
	text6 = "_And then there is Ess-Kalyn. She's called the Manburner, and if you've seen what she's like in a battle, you would know why. She's a terror, and completely merciless._";
	code =
		clear_strings();
		if (gf(170,8) > 0)	
			as(1);
			else {
				as(3);
				if (gf(170,6) > 0)
					as(5);
					else as(4);
				as(6);
				}
	break;


begintalknode 153;
	state = 150;
	nextstate = -1;
	condition = gf(82,22) == 0;
	question = "Can I enter Fort Duvno?";
	text1 = "_I don't know. With the problems we've had with theft and deserters, you'll only be let into the fort if you have direct orders sending you there._";
	text2 = "_Go around to the east gate. They'll tell you whether you can get in or not._";
	
begintalknode 154;
	state = 150;
	nextstate = 154;
	condition = 1;
	question = "Is it hard to maintain discipline?";
	text1 = "She nods. _Everyone is scared. And hungry. And the horde is just to the north. We've had plenty of problems with theft and desertion. Though the commander has given us plenty of guidance for how to deal with problems._";
	
begintalknode 155;
	state = 151;
	nextstate = -1;
	condition = gf(170,8) == 0;
	question = "Why?";
	text1 = "_Some old wizard just came from Patrick's Tower, and he's causing all sort of trouble. He wants to change how things are done, and they won't listen, and, well, you know how big egos can get._";
	text2 = "_Don't involve me, I'm glad to say._";
	
begintalknode 156;
	state = 151;
	nextstate = -1;
	condition = gf(170,8) > 0;
	question = "What?";
	text1 = "_Trying to figure out how to take credit for you killing the Manburner._ She laughs.";
	
begintalknode 157;
	state = 152;
	nextstate = -1;
	condition = gf(170,6) == 0;
	question = "Tell me about Khrez-Yss the Shadow.";
	text1 = "_I'm supposed to know about their leaders, but I know least about him. It's all rumors and guesswork. He might not even exist._";
	text2 = "_Some think he has spied as far south as the Great Cave, recruiting monsters to undermine Avernum. And his assassins can reach about anyone they want. That's what they say, anyway._";
	
begintalknode 158;
	state = 152;
	nextstate = -1;
	condition = gf(170,6) == 0;
	question = "Tell me about Ghavassa-Oss the Impaler.";
	text1 = "_Well, we know he exists. Plenty have seen him. He's old, but he's huge. Nobody leads those savages without being plenty strong. He directs the battles from the rear._";
	text2 = "_And he's good. That's the pain of it. He saw all of Avernum's weaknesses. He struck fast, and he ripped most of northern Avernum away from us before we knew it._";
	
begintalknode 159;
	state = 152;
	nextstate = 153;
	condition = gf(170,8) == 0;
	question = "Tell me about Ess-Kalyn the Manburner.";
	text1 = "She shudders. _When the sliths attack, she's always at the head of the charge, sending sheets of fire in all directions. Anyone who tries to kill her is burnt to a cinder before they get close._";
	text2 = "_And she's a wizard, so she has all sort of tricks. Lately, we've been seeing sliths leading demons around._";
	
begintalknode 160;
	state = 153;
	nextstate = -1;
	condition = 1;
	question = "Demons? Really?";
	text1 = "_Go much to the north, and you'll see it. Horde warriors leading demons around on chains. The Manburner has no limit to her tricks._";
	text2 = "_As long as she lives, there's no soldier in our army who can get a good night's sleep._";
	
begintalknode 161;
	state = 154;
	nextstate = -1;
	condition = 1;
	question = "What gets stolen?";
	text1 = "_Food, mainly. Or weapons to sell to get money to buy food. Or to sell to buy skribbane. But mainly food. The army is better fed than anyone, but, with the Great Portal gone, rations are getting short for everyone._";
	
begintalknode 162;
	state = 154;
	nextstate = -1;
	condition = 1;
	question = "Do you have many deserters?";
	text1 = "_We used to have a lot of them, especially when the Slith Horde was advancing quickly. Some ran west. Some ran south. Some even joined gangs of bandits, I'm sorry to say._";
	text2 = "_With the new rules, I'm happy to say, it's far less of a problem._";
	
begintalknode 163;
	state = 154;
	nextstate = -1;
	condition = 1;
	question = "What did the Commander say?";
	text1 = "_Commander Andros sent word out of the fort. He's a tough one. Thieves are flogged on the first offense. Executed on the second._";
	text2 = "_Deserters just end up dead. No being put to work. Not anymore._";
	text3 = "_It's harsh, but it was necessary._";

	
// Private Kerrerr

begintalknode 170;
	state = -1;
	nextstate = 170;
	condition = 1;
	question = "Name";
	text1 = "A young nephil is looking out at you through the window. She seems satisfied that you aren't part of the Slith Horde.";
	text2 = "She says, _Mrrrr ... Welcome to Fort Duvno. I am Private Kerrerr, the gatekeeper. Only those with orders are allowed to come in. Have you been sent here?_";
	text5 = "Private Kerrerr is grateful for anything that relieves the tedium of gate duty. _Hmrrrr ... Welcome. What else do you need?_";
	action = INTRO;

begintalknode 171;
	state = 170;
	nextstate = -1;
	condition = gf(82,22) == 0;
	question = "Can you tell me about Fort Duvno?";
	text1 = "_Urmmm ... I don't know what I can say and what I can't. If you go west of the fort and talk to Captain Patience, she can tell you things._";
	
begintalknode 172;
	state = 170;
	nextstate = -1;
	condition = gf(82,22) == 0 && gf(170,1) < 22;
	question = "Can I enter the fort?";
	text1 = "You say your name. The private looks through her scrolls, looking for something that indicates that you should be let in. Finally, she shakes her head.";
	text2 = "_I am sorry. Orders from the commander. Until I have transfer papers, I can't let you in. Please move on._";
	action = END_TALK;
	
begintalknode 173;
	state = 170;
	nextstate = -1;
	condition = gf(82,22) == 0 && gf(170,1) >= 22;
	question = "Can I enter the fort?";
	text1 = "You say your name. The private looks through her scrolls, looking for something that indicates that you should be let in. Then she finds a scroll that only just arrived. She breaks the seal and reads it.";
	text2 = "_You are in luck. The orders just arrived. You are here to report to ... To Solberg? Really? Solberg? The commander will love that. You can find the archmage in the northwest tower._";
	text3 = "She gets up from her chair and goes to open the gate.";
	action = END_TALK;
	code =
		sf(82,22,1);
	break;
	
begintalknode 174;
	state = 170;
	nextstate = -1;
	condition = gf(82,22) > 0;
	question = "There is something I would like to know.";
	text1 = "She shakes her head. _Mrrrr ... I don't know what I can say and what I can't. I don't want to anger the commander. He is easily annoyed._";
	
begintalknode 175;
	state = 170;
	nextstate = -1;
	condition = 1;
	question = "I'll be going.";
	text1 = "_Hmrrrr. Good day, fellow soldier._";
	action = END_TALK;

// Vanderin

begintalknode 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = "This archer seems familiar even before you get close to him. Then, when you see his face, you recognize him instantly. It's Vanderin, the adventurer from the Empire whom you last saw when the Great Portal was destroyed.";
	text2 = "He seems thrilled to see you. _Welcome! Welcome to Fort Duvno! It's nice to see a familiar face in a sea of hostile strangers._";
	text5 = "Vanderin paces around Fort Duvno in a state of agitation, eager to go out and fight something. His face is noticeably paler than it was when you last saw him. And it has gained a nasty burn as well.";
	action = INTRO;

begintalknode 191;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "How did you come to be here?";
	text1 = "_Probably the same as you. I hiked. I decided there was no more adventure to be had to the south, so I came north._";
	
begintalknode 192;
	state = 190;
	nextstate = -1;
	condition = gf(165,28) > 0;
	question = "Wait. Weren't you killed at the Great Portal?";
	text1 = "He sighs. _Well, it was a close thing. I was knocked unconscious. I only woke up again when an imp started gnawing on my foot. Then I grabbed a dagger, stabbed it in the eye, and jumped to my feet. I was surrounded by demons, all ..._";
	text2 = "He looks embarrassed. _Oh, here I am running off at the mouth again. You don't need to hear my story. You probably do braver things every day._";

begintalknode 193;
	state = 190;
	nextstate = 192;
	condition = 1;
	question = "Where are you going now?";
	text1 = "_I don't know. I'm just looking for an opportunity. A way to go out and be heroic that won't mean certain death._";
	text2 = "He thinks. _Or that might mean certain death, but would be really, really heroic!_";
	
begintalknode 194;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "Perhaps you can travel with me.";
	text1 = "He smiles nervously. _Well, that would be interesting. But, well, I'm getting tired of the lone adventure life. I like being with an army. I'm getting bruised and battered a lot less._";
	
begintalknode 195;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "Anything interesting happen along the way?";
	text1 = "_Well, I helped defend Mertis against a pack of monsters. I got to see the Undead Spiral. Always wanted to. Just tourism, you know. I visited the Tower Colony. Quite lovely, if more on fire than I'd hoped._";
	text2 = "_Oh, and I shot a lot of slithzerikai. But I'm sure you've done the same._";
	
begintalknode 196;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "How did you get into Fort Duvno?";
	text1 = "_I asked. Once they realized I was good with a bow and didn't know anything about the archmage, they let me in._";
	
begintalknode 197;
	state = 192;
	nextstate = -1;
	condition = 1;
	question = "Any luck so far?";
	text1 = "_No. The army is mainly staying put. Keeping the slithzerikai bottled up. So I just snipe at raiders from the walls. It keeps my eye sharp, but ... I hope something really spectacular happens soon!_";

	// 210

begintalknode 210;
	state = -1;
	nextstate = 210;
	condition = 1;
	question = "Name";
	text1 = "All of the soldiers have stopped moving. Everything has gotten very quiet. You can see why. Solberg has stopped in the courtyard. Commander Andros is blocking his path.";
	text2 = "Solberg says, _Out of my way, commander. You have had your chance. You did not act. I will. Whatever it costs, Ess-Kalyn must be slain._";
	text3 = "The commander is furious. _Solberg, this is a waste. You are determined to cost us your services. What little you can do for us. It can't be avoided. But you can't waste the lives of others, not true heroes for the cause._";
	text4 = "The archmage smiles. The confrontation seems to be restoring a lot of his energy. He turns to you. _Other soldiers are not cowards, Andros. They are not hungry and beaten down. They see a chance, and they will seize it._";
	text5 = "He looks you in the eye. _Am I right?_";
	code =
		sf(82,4,3);
	break;
	
begintalknode 211;
	state = 210;
	nextstate = 212;
	condition = 1;
	question = "Actually, I think this is suicide, but I have to follow orders.";
	text1 = "You think, before all of these witness, that your words will have an effect on Solberg. They don't, not in the slightest.";
	text2 = "_I am sorry you feel that way. Sorry you all feel that way. But I am used to being alone. Always alone. But you have no choice. You must follow my orders. Come. To the Horned Gate._";
	text3 = "He turns to leave. The commander stands in his way again. _One more thing, Solberg._";
	
begintalknode 212;
	state = 210;
	nextstate = 212;
	condition = 1;
	question = "You are wrong. Can I just stay here?";
	text1 = "You think, before all of these witness, that your words will have an effect on Solberg. They don't, not in the slightest.";
	text2 = "_Of course you can't stay, not when we must fight for Avernum. I am used to being alone. Always alone. But you have no choice. You must follow my orders. Come. To the Horned Gate._";
	text3 = "He turns to leave. The commander stands in his way again. _One more thing, Solberg._";

begintalknode 213;
	state = 210;
	nextstate = 212;
	condition = 1;
	question = "Yes. I trust you. Ess-Kalyn can be destroyed.";
	text1 = "Solberg nods. _At last. I can finally fight a battle with someone by my side. After all these years, I tire of being alone._";
	text3 = "He turns to leave. The commander stands in his way again. _One more thing, Solberg._";
	
begintalknode 214;
	state = 212;
	nextstate = 213;
	condition = 1;
	question = "(Wait.)";
	text1 = "Solberg says, _What is it? Every moment we waste gives the horde time to regain its balance._";
	text2 = "Andros responds, _You were great, once. Now you are a curse. Wizard's arrogance. You would drag down as much with you as you can. But this is all. You can have no more of my soldiers, no more of my weapons. You go as you are._";
	text3 = "Solberg turns to the growing crowd. _Well? The commander has his say. And now I ask you. I am Solberg, archmage of Avernum. I go on a mission. I need a few more warriors at my side. Who would go? Who would make history?_";
	
begintalknode 215;
	state = 213;
	nextstate = -1;
	condition = 1;
	question = "(Wait.)";
	text1 = "At first, there is silence. Unsurprisingly, none of the commander's soldiers speak up. The mages look away. And then one voice calls out. _I'll go!_";
	text2 = "Everyone turns to see Vanderin step out of the crowd. After what happened at the Great Portal, he continues in his suicidal determination to be wherever exciting things are happening.";
	text3 = "Solberg looks him over. _An archer. Good enough. But from the Empire? Fighting by the ..._ He thinks it over and shrugs. _Well, if the Avernites will turn their backs on me at last, I will take what I can get._";
	text4 = "He looks at the commander. _I am going. And, if I die, I hope you can take advantage of what I achieve. Step out of my way. Now._";
	text5 = "The commander, at last, steps aside. Solberg and Vanderin begin their walk toward the gate.";
	action = END_TALK;

	
////

begintalknode 299;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Unfortunately, living a life of crime this close to the bulk of the Avernite army was a poor decision. Most of the soldiers have traveled northeast to fight the slithzerikai, more than enough to hunt you down.";
	text2 = "Commander Andros, the master of the fort, is a harsh leader. Despite your achievements, he sees in you a great opportunity to give an example to those under his command. You are executed with great speed and enthusiasm.";
			code =
		erase_char(30000);
	break;	
		