// TOWN DIALOGUE SCRIPT
//    Town 23: Cave of Motrax

begintalkscript;

variables;

short i,j,k,r1,choice;

begintalknode;
	tag = 6;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You approach one of the massive stone constructs that defend this fort. When you get close, it slowly turns its head to inspect you. Then it returns to its neutral pose.";
	text2 = "Somehow, it can tell that you belong here. That is fortunate.";

begintalknode;
	tag = 7;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You meet one of the few human soldiers remaining in the fort. He hobbles around on crutches. He's still recovering from his injuries from the Empire raid.";
	text2 = "You trade gossip, but you rapidly find that he knows nothing about what has been happening outside of the walls of this keep.";
	
// Motrax

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 1;
	question = "Motrax";
	text1 = "Motrax is an enormous, reddish-green lizard, fifty feet from head to tip of tail. He lies curled up on his platform, but, even in his reduced state, his presence is intimidating.";
	text2 = "Time has not been kind to him. His scales are fading and wrinkled, and recent scars mar his body. His wounds from the recent raid have been bandaged, but the wrappings are damp and seeping. He looks like he can barely walk.";
	text3 = "Despite his depleted state, he raises his head and greets you with dignity. _Ah, visitors. A human. Welcome! I am Motrax._";
	text5 = "Motrax looks at you, his eyes straining to see. _How else may I help you?_ His voice is hollow and wavering, and his pitiful eagerness to please is out of place in a creature this mighty.";
	action = INTRO;
	
begintalknode;
	state = 1;
	nextstate = 8;
	question = "_Your wounds are terrible. Can I help you heal them?_";
	text1 = "Motrax shakes his head. _Healing magic can only go so far. Your human magic can ease my pains, but my centuries are long, and my time is ending. Nothing can be done now._";

begintalknode;
	state = 8;
	nextstate = -1;
	condition = 1;
	question = "_You are dying?_";
	text1 = "_I don't know. My body has surprised me before. Maybe it will again._";

begintalknode;
	state = 8;
	nextstate = -1;
	condition = 1;
	question = "_How were you wounded?_";
	text1 = "_Empire raiders. Their spells. Their blades. When they came, a few entered my chambers. I devoured them, but I paid a price._ He looks at the moist bandages on his flanks and limbs. _I will always pay the price._";

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_What do you do here?_";
	text1 = "_I ... I ..._ He is at a loss for words. His head is bowed low, and the words struggle to emerge. _ I ... I help the humans as best I can. For protection._";

begintalknode;
	state = 2;
	nextstate = 5;
	question = "_Help with what?_";
	text1 = "_I provide information. I have learned much in my centuries of life. It is fuzzy, at times. It gets that way._";
	text2 = "_The wizards come and ask me questions._ He sighs, a long, reeking gasp. _They're all I get to help now. They're the only people I ever see. I miss my friends._";

begintalknode;
	state = 5;
	nextstate = 6;
	question = "_What kind of information are the wizards looking for?_";
	text1 = "_They want me to tell them who created the magical barriers that isolate the areas of Avernum. I don't know. I have no idea. I have only the most unlikely of guesses._";
	text3 = "_They ask me about the vahnatai. But I cannot remember anything about them. They were active so long ago, before I was banished to the underworld._ The once-mighty creature lies limp on the stone. _It is hard. I am old and tired._";
	action = DEP_ON_SDF 20 0 0;

begintalknode;
	state = 6;
	nextstate = -1;
	condition = gf(20,0) <= 0;
	question = "_I need to bring down the barriers. Can you tell us how?_";
	text1 = "He squints at you, lost in thought. His eyesight is failing. He thinks. He seems to become very confused. _You should go ... go to Formello. To the south. Before the attack I sensed ... I ... go there. That is all I am sure of._";
	text2 = "_I get so tired._";

begintalknode;
	state = 6;
	nextstate = -1;
	condition = gf(20,0) >= 1;
	question = "_Can you tell me what you know about the vahnatai?_";
	text1 = "_They went to the lower caves centuries ago. I found traces of them when I first came to Avernum. I forget what I learned. They're gone. I wish the wizards wouldn't keep asking about them. I just don't know._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_Where are these wizards?_";
	text1 = "Motrax points to the west.";
	
begintalknode;
	state = 2;
	nextstate = 3;
	question = "_What do you think about humans?_";
	text1 = "_I've always helped their kind. I liked them. I had many friends. But then the attack came, and I had to be protected, and I don't see my friends anymore._ The enormous creature looks at the horrible wounds on its chest and legs.";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Which of your friends are now missing?_";
	text1 = "_I had many friends here once. They came to talk to me from all over. Guards to talk to, and sages and just the curious. Now I only see the wizards and the golems._";

begintalknode;
	state = 4;
	nextstate = -1;
	question = "_Really, they only let wizards and golems here?_";
	text1 = "Its head lowers in shame. _Put here for my protection after the attack. I help them. They ask me questions for hours in return for protection. I have to take it. What can I do? I need them._";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Why do you need protection? Who would dare to attack you?_";
	text1 = "_The Empire sent a force in to kill me. Me! Who only wanted to learn, who was always a friend to humans! I never lost a battle in my life and didn't lose that one! Blood of their soldiers ran thick through these caves. But I was wounded._";
	text2 = "_I cannot fight a battle like that again. Now here I am, near-crippled and alone. And my siblings fare no better._";

begintalknode;
	state = 4;
	nextstate = 7;
	question = "_Tell me about your siblings?_";
	text1 = "_I like humans. They are strong and good. But they have not been good for dragonkind. Foolish Pyrog was slain by adventurers years back. Athron hides in her lair, growing in bitterness and hatred. Khoth is the same._";
	text2 = "_And Sulfras, mightiest of us all, serves the Empire to protect herself. Ours is a sad lot now._";




begintalknode;
	state = 7;
	nextstate = -1;
	question = "_Where does Sulfras live?_";
	text1 = "_Far, far to the west and south. beyond your human Fort Remote._";

begintalknode;
	state = 7;
	nextstate = -1;
	question = "_Where can we find Athron?_";
	text1 = "_She lives in the Honeycomb. It is to the south. She is very hard to reach, though. The presence of humans offends her._";

begintalknode;
	state = 7;
	nextstate = -1;
	question = "_Where is the lair of Khoth?_";
	text1 = "_He lives due west, but he is very difficult to reach. Probably impossible. He lives deep in the lands firmly controlled by the Empire._";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(23,14) == 0 && gf(23,13) >= 1;
	question = "_Marion asked us to say hello to you and to tell you that she thinks of you often._";
	text1 = "Motrax pauses. After a moment, a single tear runs down his worn, scaly face. _How pathetic I have become, when the regard of a single human is of importance to me._";
	action = SET_SDF 23 14 1;

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_Are there any quests I can undertake for you?_";
	text1 = "_No. I have no needs anymore. I am passing beyond that stage now._";


begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(23,11) >= 1 && has_spec_item(25) == 0;
	question = "_There were runes to the west which blocked me from passing. Do you know how to pass them?_";
	text1 = "Motrax shakes his head. _It is a human matter. Defenses of the wizards. You will need a higher rank in your own army. I cannot give it to you._";

begintalknode ;
	state = 1;
	nextstate = -1;
	condition = 1;
	question = "_That is all I need._";
	text1 = "_Then I will sleep. Heal. Try to ... to ..._ He lowers his head to the stone and closes his eyes.";
	action = END_TALK;
	
// Delta

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 28;
	question = "Delta";
	text1 = "A gray cat prowls happily through the corridors. It must be Motrax's pet. It's nametag says _Delta._";
	text5 = "Delta stares up at you curiously.";
	action = INTRO;

begintalknode;
	state = 28;
	nextstate = -1;
	question = "Pet the cat.";
	text1 = "_Meow._ It seems happy.";

begintalknode;
	state = 28;
	nextstate = -1;
	question = "Shoo the cat away.";
	text1 = "It purrs and gets closer to you.";

begintalknode;
	state = 28;
	nextstate = -1;
	question = "Leave.";
	text1 = "The cat follows you until it loses interest. You think you see Motrax smile slightly.";
	action = END_TALK;

// Epsilon

begintalknode;
	tag = 50;
	state = -1;
	nextstate = 55;
	question = "Epsilon";
	text1 = "A black cat runs up and rubs against your leg. You check its nametag. It says _Epsilon._";
	text5 = "Epsilon purrs happily.";
	action = INTRO;

begintalknode;
	state = 55;
	nextstate = -1;
	question = "_Hello, Epsilon._";
	text1 = "It stares at you. It doesn't seem very talkative.";

begintalknode;
	state = 55;
	nextstate = -1;
	question = "Pet the cat.";
	text1 = "_Meow!_";

begintalknode;
	state = 55;
	nextstate = -1;
	question = "Leave.";
	text1 = "Epsilon is too distracted by a bit of dangling lichen to notice.";
	action = END_TALK;

// Ko

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 82;
	question = "Captain Ko";
	text1 = "You find a captain of the Avernite army napping at his desk. When you approach, he is barely conscious. When you get close, he seems to inflate, almost leaping out of his chair. _Greetings! Welcome to this fort, soldier. I am Captain Ko._ Then he yawns.";
	text2 = "_I suppose you're here to see Motrax._ He looks at your insignia. _You can head in. Soldiers are still allowed. Better hurry. The wizards might change that any day._";
	text5 = "Captain Ko waits eagerly to see what you have to say. Now that he is awake, he twitches with energy.";
	action = INTRO;

begintalknode;
	state = 82;
	nextstate = 83;
	question = "_What's your job here?_";
	text1 = "_I'm the captain of this garrison. I don't have soldiers anymore, though._ He grimaces. _It's golems, now. I just spend my time chasing lizards._";

begintalknode;
	state = 83;
	nextstate = -1;
	question = "_Lizards?_";
	text1 = "_We got a bunch of giant lizards skulking around in the cracks behind these buildings. They're like rats, but deadly. Of course, the golems aren't any help._";

begintalknode;
	state = 83;
	nextstate = 84;
	question = "_What happened to the soldiers garrisoned here?_";
	text1 = "He shakes his head sadly. _Used to have a dozen soldiers here! Most of them died in an Empire ambush, the same attack that crippled Motrax. Then King Micah moved a bunch of mages in here to run things. All I do now is manage things. Count supplies. That sort of thing._";
	text2 = "_It's sad. The dragon only wants to meet people in his old age. Now the mages don't let anyone near him._";

begintalknode;
	state = 84;
	nextstate = -1;
	question = "_What are the mages here for?_";
	text1 = "_The crown put some mages here to find out everything they can from poor, old, crippled Motrax. They created golems to replace the human guards. The dragon never sees anyone but them and me, and they tire him out with constant questions._";
	text2 = "_It's a sad tale for sad times._";

begintalknode;
	state = 82;
	nextstate = 85;
	question = "_I want to know more about Motrax._";
	text1 = "_He is the oldest of the dragons in Avernum. He's kind and wise. I don't know why the Empire sent a bunch of assassins to kill him. He was doing no harm._";
	
begintalknode;
	state = 85;
	nextstate = -1;
	condition = 1;
	question = "_How many dragons are in Avernum?_";
	text1 = "_Four that I know of. You should ask Motrax about it. He could use a visitor. It'd raise his spirits._";

begintalknode;
	state = 82;
	nextstate = -1;
	condition = gf(23,22) <= 1;
	question = "_You're the commander here, right? Anything we can do for you?_";
	text1 = "He shrugs. _I suppose. There isn't much that needs doing. There have been some bandits wandering around to the north of this fort. I was going to send a platoon to kill them, but you could do it instead, if it would keep you busy._";
	action = SET_SDF 23 22 1;
	code =
		toggle_quest(9,1);
	break;
	
begintalknode;
	state = 82;
	nextstate = -1;
	condition = gf(23,22) == 1 && gf(136,15) >= 1;
	question = "_I killed those bandits for you!_";
	code =
	run_hardcode(6);
	break;

begintalknode;
	state = 82;
	nextstate = -1;
	condition = gf(23,10) >= 1 && gf(23,10) < 10;
	question = "_We killed some lizards behind your barracks!_";
	text1 = "_Did you? Glad to hear it. The golems are no help at all with that sort of problem. They don't listen to what I say. Thanks for your help._ He gives you a scroll and a potion to reward you.";
	code =
		sf(23,10,10);
		reward_give(120);
		reward_give(220);
		award_party_xp(200,4);
	break;
	
begintalknode;
	state = 82;
	nextstate = 86;
	condition = has_spec_item(25) <= 0 && gf(23,11) >= 1;
	question = "_I was blocked by a magic circle in a passage to the north. How can I pass it?_";
	text1 = "_You need Magi clearance to go in there. There's some wizards back there. Researchers. Doing all sorts of strange things._";

begintalknode;
	state = 86;
	nextstate = -1;
	question = "_How can we get Magi clearance?_";
	text1 = "_Not sure. All I know is that you have to go to the Castle. That's where they decide those things._";

// Marion

begintalknode;
	tag = 90;
	state = -1;
	nextstate = 109;
	question = "Marion";
	text1 = "A young, round-faced woman with long brown hair sits at this table. She's writing notes and figures on a scroll already densely covered with writing. She looks up at you. _Welcome, visitor! I'm Marion. I hope you aren't here to see the dragon. He is grievously hurt._";
	text5 = "Marion looks up at you and smiles. She doesn't seem eager to return to her work.";
	action = INTRO;

begintalknode;
	state = 109;
	nextstate = 110;
	question = "_Do you know the dragon?_";
	text1 = "_Well, I was studying Motrax. I was his friend as well. Since the attack, I just wait here._";

begintalknode;
	state = 110;
	nextstate = 111;
	question = "_What happened to Motrax?_";
	text1 = "_Poor old fellow. First, he was carved up by Empire raiders. Now he can only be seen by people with clearance._ She spits out the last word. _He needs friends. Instead, he gets interrogated for hours on end by a bunch of magi._";
	text2 = "_I haven't seen him in months. I'm just waiting here._";

begintalknode;
	state = 109;
	nextstate = 112;
	question = "_What are you working on?_";
	text1 = "She sighs. _I don't know. Notes. Letters. Things to pass the time._";
	
begintalknode;
	state = 112;
	nextstate = 113;
	condition = 1;
	question = "_Until what?_";
	text1 = "_Until Ko is relieved of his post and we can go somewhere else. For Motrax to be able to see his friends again. For things to get better. I'm waiting for a change._";
	
begintalknode;
	state = 113;
	nextstate = -1;
	condition = 1;
	question = "_Who is Ko?_";
	text1 = "_The captain here. He's in the building across the way._ She points to the west. _We are ... together._ She smiles.";

begintalknode;
	state = 111;
	nextstate = -1;
	question = "_What kind of clearance do I need?_";
	text1 = "_Not exactly sure, some clearance to see Motrax, another to get in the labs they've set up back there. If you belong to the army, the golems might let you see the dragon._";
	text2 = "_As for you entering the research halls? I don't know. I don't pay much attention to the bureaucracy._";

begintalknode;
	state = 111;
	nextstate = -1;
	condition = gf(23,14) == 0;
	question = "_If I can see Motrax, would you like me to give him a message?_";
	text1 = "_That would be very kind. Just tell him that I am thinking of him, and I wish him well._";
	action = SET_SDF 23 13 1;

begintalknode;
	state = 109;
	nextstate = -1;
	condition = gf(23,14) == 1;
	question = "_I gave your message to Motrax. He thanks you for your concern._";
	text1 = "She smiles sadly. _Thank you, friends. It does my heart good to hear that he is well. I only hope that I can see him again before he passes._";
	code =
		sf(23,14,2);
		award_party_xp(100,6);
	break;
	
// Platte

begintalknode;
	tag = 110;
	state = -1;
	nextstate = 136;
	question = "Platte";
	text1 = "You meet a tall, aged man with a multitude of wrinkles and only a few wisps of gray hair remaining on his head. He paces about this common hall slowly, a tiny form wrapped in bulky robes.";
	text2 = "You manage to get his attention. He nods in greeting. _I am Platte, a sage of renown. I might speak with you briefly while I wait._";
	text5 = "Platte stares at you calmly. He doesn't seem impressed by what he sees, or maybe his old eyes can't make you out at all.";
	action = INTRO;

begintalknode;
	state = 136;
	nextstate = -1;
	question = "_What do you study?_";
	text1 = "_Applied magic. The spontaneous creation of fire and force. Knowledge much in demand as the Empire invaders tear through our lands._";

begintalknode;
	state = 136;
	nextstate = 137;
	question = "_What are you waiting for?_";
	text1 = "He responds, more out of politeness than a desire to speak with you. _I am here to visit the laboratory. I wait for someone to come for me._";

begintalknode;
	state = 137;
	nextstate = 138;
	question = "_What is the laboratory like?_";
	text1 = "_King Micah has, in wisdom, ordered a magical laboratory set up here. You can't enter it, I'm sure. The mages here question the lizard for information that can help us save our nation._";

begintalknode;
	state = 138;
	nextstate = -1;
	question = "_The mages?_";
	text1 = "_I can't really tell you about them._";

begintalknode;
	state = 138;
	nextstate = -1;
	question = "_How can I see the mages?_";
	text1 = "_I can't imagine. I had to travel to the Castle to receive Magi Clearance. An arduous journey and a difficult process. I don't know what wandering soldiers like you could do._";
	text2 = "Before you can respond, he says, _Excuse me. I must return to my thoughts._ Then he turns away.";
	action = END_TALK;

begintalknode;
	state = 138;
	nextstate = -1;
	question = "_That lizard's name is Motrax._";
	text1 = "_Motrax, is it? It's hard to get knowledge out of it, but we're trying. Nothing I can tell you about, of course. Now, if you'll excuse me?_ He turns his back and walks away from you.";
	action = END_TALK;

// Ostoth

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 163;
	question = "Ostoth";
	text1 = "A pale, bent spider of a man hunches over the table, his spindly claws rearranging piles of notes, records, and drawings. They all seem to concern the dragon Motrax.";
	text2 = "The sage's head snaps around to inspect you. He's very old, but his mind is still razor-sharp. _I'm Ostoth,_ he snaps. _What do you want?_";
	text5 = "Ostoth continues to rearrange the papers before him in a precise way. He picks one sheet up, digests its information at a glance, moves it to a different pile, and repeats the process. You can't see any sense or order in the movements.";
	action = INTRO;

begintalknode;
	state = 163;
	nextstate = 164;
	question = "_What are you doing here?_";
	text1 = "_I'm here to question the lizard. What else? I'm very glad to give you information we've obtained, if I think you should have it._ He wants to help (a little), but his irritation at your interruption is plain.";

begintalknode;
	state = 164;
	nextstate = 166;
	question = "_Tell me about Motrax._";
	text1 = "He nods. _Motrax? Yes. The lizard's name is Motrax. Dragon. Age - between 800 and 900 years. Estimated remaining lifespan - 1 to 3 months. If that. Maybe days. We have to get from him what we can, while we can._";

begintalknode;
	state = 164;
	nextstate = 165;
	question = "_What sort of information are you looking for?_";
	text1 = "_Whatever intelligence the lizard can provide. We ask him about the underworld, trying to find out things about these caves that can help us against the invaders._ You notice that many of the papers on his desk are maps.";
	text2 = "_If there's anything interesting, troops can be sent there to investigate. We've found a few things, but I can't tell you about them._";

begintalknode;
	state = 165;
	nextstate = -1;
	question = "_Invaders ... You mean the Empire?_";
	text1 = "_Of course, the invaders of the Empire hold half of Avernum to the west, but nobody fully knows the layout of these caves. There must be something down here we can use against them._";

begintalknode;
	state = 165;
	nextstate = -1;
	question = "_How do you move troops around?_";
	text1 = "He looks at you suspiciously. _I know you have at least Magi Clearance. You may then know about the portal in the Tower of Magi. It can send soldiers places, places all over Avernum. If you don't know more, than I shouldn't tell you more._";

begintalknode;
	state = 163;
	nextstate = -1;
	condition = gf(23,25) >= 1 && gf(23,28) == 0;
	question = "_I heard that you can help me find Angierach._";
	text1 = "He nods. _Ah, yes! Angierach. Empire outpost. Place of magic and torment. You have to go there, do you? Bad luck. I can help. I found the focusing symbols before I came here. You can use them at the Tower of Magi portal to reach Angierach._";
	text2 = "_The knowledge is in my quarters in the Tower of Magi. The key to my chambers in the tower is in my quarters here. I'll have the guard step aside. You can have it. If you're going to Angierach, you will need lots of help._";
	action = SET_SDF 23 28 1;
	code =
		toggle_quest(103,3);
		toggle_quest(104,1);
	break;
	
begintalknode;
	state = 166;
	nextstate = -1;
	question = "_Have you tried to save Motrax's life?_";
	text1 = "_Of course. It is too valuable an information source to do otherwise. However, we don't have the knowledge or magic which can heal a dragon, not when it has been damaged to the current extent. Unfortunate in the extreme._";

begintalknode;
	state = 163;
	nextstate = -1;
	question = "_How is the dragon doing?_";
	text1 = "Ostoth stares at you. There is an uncomfortable silence. Finally he says, _Poorly. Motrax is a dragon, but he is also an old and damaged specimen. Dragons are, by nature, unpredictable and dangerous._";
	text2 = "_Our energies are spent on obtaining information which can make Avernum safe, and on keeping humans isolated from the creature, and thus safe. Making the specimen comfortable is not a priority._";

begintalknode;
	state = 163;
	nextstate = 167;
	question = "_Tell me about this library._";
	text1 = "_It is well-equipped. It contains many items. This can make maintenance difficult. It's so hard to keep track of information. There is a tablet I was working on, just a month ago, but it disappeared._";

begintalknode;
	state = 167;
	nextstate = -1;
	question = "_What happened to the tablet?_";
	text1 = "_We were foolish. We let the dragon borrow the tablet to read it. Then, the next day, he had forgotten where it was. It's around somewhere. After that happened, we didn't spare any more reading material for it. Not if it was just going to lose things!_";
	action = SET_SDF 23 12 1;

// Enla

begintalknode;
	tag = 150;
	state = -1;
	nextstate = 190;
	question = "Enla";
	text1 = "You meet a short, heavy-set woman, standing in the middle of a cloud of acrid smoke. She manages the pots of bubbling goo on the fire with agile, practiced hands.";
	text2 = "At first, she ignores you. You eventually have to ask who she is. _I'm a worker for Avernum. The rest hardly matters. Call me Enla. You are a soldier, yes? With mage clearance, I assume._";
	text5 = "Enla keeps stirring the pots on the fire, occasionally stopping to add a handful of herbs to one mixture or remove and bottle another. She barely seems to hear your voice. _Still here, soldier? What else do you need?_";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = 191;
	question = "_What is in those pots?_";
	text1 = "_Potions for the Avernum army._ Some goo splashes out of one of the cauldrons and oozes through the grate below. Enla moves the pot to a cooler part of the fire.";
	text2 = "_Also, the occasional salve or such for the dragon. I have been trying to heal Motrax. It makes him more cooperative when I question him._";

begintalknode;
	state = 191;
	nextstate = 192;
	question = "_Can you really heal Motrax?_";
	text1 = "She adds some moss to a vial. It hisses. _Motrax was horribly wounded in an Empire attack. He barely held off the invaders. The wounds are weakening him. I'm trying to save him so that he can answer our questions._";

begintalknode;
	state = 192;
	nextstate = -1;
	question = "_So you only keep him alive to answer your questions?_";
	text1 = "She looks annoyed. _Of course. I question him about the vahnatai. They're probably a horrible menace. He says he never met them, but I don't believe it.  It'll take time, but I'm sure I can get something valuable from him._";
	text2 = "_Don't question him too much. We need him to save his strength._";

begintalknode;
	state = 190;
	nextstate = 193;
	condition = gf(23,26) >= 1;
	question = "_Did you know Garzahd?_";
	text1 = "She looks up at you, actually paying attention. _Yes. Before I was exiled to Avernum, I knew him. He frightened me. He also wanted me. When I refused him, I found out how much power he had. The political kind. I ended up here. I hate him._";
	text2 = "_I don't know anything about him, really. All I know is that he has a knack for research._";

begintalknode;
	state = 193;
	nextstate = 194;
	question = "_How much of a knack for research?_";
	text1 = "She nods. _When I knew him, he was working on this new sort of magical barrier. It is very difficult to create and very strong. It could only be brought down by being next to quickfire._";
	text2 = "_Garzahd is down here now. If you're in an Empire fort and find a strange barrier, try quickfire._ (You take note of this.) _But be careful!_";
	action = SET_SDF 23 27 1;

begintalknode;
	state = 194;
	nextstate = -1;
	question = "_How can I create quickfire?_";
	text1 = "_You? I doubt you would be able to without years of study. You will have to find a mage who can create it. I can't, and I don't know of any humans who can either. You will have to look elsewhere._";
	text2 = "She thinks. _You can always try the vahnatai. You're on good terms with them, and they know how to do a lot of things we don't. You would need to find a very powerful vahnatai mage._ (You take note of this.)";
	action = SET_SDF 29 18 1;
	code =
		toggle_quest(141,3);
	break;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = gf(23,21) <= 1;
	question = "_I am a soldier. Why is it important?_";
	text1 = "_I am running low on potion ingredients, and I need to produce a number of haste potions for a major operation. Some drakes, a very small number, develop a single black fang. I need one, and will pay well._";
	action = SET_SDF 23 21 1;
	code =
		toggle_quest(10,1);
	break;
	
begintalknode;
	state = 190;
	nextstate = -1;
	condition = has_spec_item(27) > 0 && gf(23,21) == 1;
	question = "_I have a black drake fang for you._ (Give one to her.)";
	code =
	run_hardcode(7);
	break;
	
begintalknode;
	state = 190;
	nextstate = -1;
	condition = gf(23,21) >= 2;
	question = "_Do you need any more ingredients?_";
	text1 = "She shakes her head. _You should keep your resources for yourself. I am sure you will need them._";

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "_Can I buy your potions?_";
	text1 = "She laughs and shakes her head. _If I let you have any of my work, the generals would have my head. I am behind on my orders as it is._";

// Linda

begintalknode;
	tag = 170;
	state = -1;
	nextstate = 217;
	question = "Linda";
	text1 = "The woman before you is physically young, but her eyes are haunted and she walks like one twice her age. Her face is weary and her hair is gray and sparse. She nods to you. _I am Linda. Of the Triad._ Her voice is flat.";
	text5 = "Linda of the Triad stares at you quietly. She is exhausted, but dignity prevents her from sinking into a chair while you are here. She sways gently from side to side as she talks.";
	action = INTRO;

begintalknode;
	state = 217;
	nextstate = 218;
	question = "_You are of the Triad?_";
	text1 = "She looks at a point somewhere over your shoulder as she speaks. _Yes. I am of the Triad. So many years to reach this point._";

begintalknode;
	state = 218;
	nextstate = 219;
	question = "_Yes. The Triad?_";
	text1 = "Her voice is monotone, detached. _We ran the Tower of Magi. I was just sent here. Just sent for a little while. I will find what went wrong._";

begintalknode;
	state = 219;
	nextstate = 220;
	question = "_Went wrong with what?_";
	text1 = "_At the Tower, we did a summoning. It didn't work. The demon had to be killed. But it can work again. Against the Empire. I will find out how._";

begintalknode;
	state = 220;
	nextstate = 221;
	question = "_Sounds dangerous. What kind of demon?_";
	text1 = "_Adze-Haakai. I can say the name now. And I don't hear him anymore. Saying the name is safe. Safe._ Her monotone voice drones on. It's as if she doesn't know you're here. _We lost control though. When we caught him. He had to be killed._";
	text2 = "_They killed him. The next time it will work. If only I had the Scepter. If only we had it._";

begintalknode;
	state = 221;
	nextstate = -1;
	question = "_What Scepter?_";
	text1 = "_We didn't know what it did. Now we do. Hold it out and touch a dimensional rift with it, and it closes. The rift does. Very powerful. It heals space. If only I had it. But it's gone._ (Very interesting. You take note of this.)";
	action = SET_SDF 23 23 1;

begintalknode;
	state = 221;
	nextstate = -1;
	question = "_Where is this Scepter?_";
	text1 = "_Years ago, the people who killed the demon took it away. I don't know where. It's gone, gone, gone._";

begintalknode;
	state = 217;
	nextstate = 222;
	condition = 1;
	question = "_I would like magical training._";
	text1 = "_Go to the Tower of Magi. I ... They told me not to teach. Is a rule._";

begintalknode;
	state = 222;
	nextstate = -1;
	condition = 1;
	question = "_Why?_";
	text1 = "_Jealousy. Of what I might accomplish if I had more help._";

begintalknode;
	state = 217;
	nextstate = 223;
	question = "_Why are you here?_";
	text1 = "_They put me here to do summonings. We will use the creatures against the Empire. But they don't trust me. I can't actually bring anything big here. They won't let me. I hate them._";
	

begintalknode;
	state = 223;
	nextstate = -1;
	condition = 1;
	question = "_Hate who?_";
	text1 = "_Kelner. The mages of the Tower. Weaklings. Slow. Unambitious. They hate me. I hate them. I want my power back. And I will get it. It is the only way Avernum will be saved._";
	text2 = "Her voice stays perfectly calm and flat through all of this. _I will rise up again. And I will make them forgive me._ She smiles coldly and turns away from you.";
	action = END_TALK;