// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(59,0) == 0;
	question = "special";
	text1 = "At last, you enter the lair of the dragon Melanchion. It's really kind of not what you expected from a dragon's lair.";
	text2 = "Instead of the jagged rocks and piles of bones, you see hard-working cultists cataloguing and moving around piles of supplies. Except for the reek of sulfur, it looks much the same as every other fort you've entered.";
	text3 = "The Drayssas ignore you as they walk around, tirelessly doing the many tasks they have been given. This isn't just a dank cave where a solitary lizard counts and recounts his treasure. No, Melanchion is preparing to defend himself.";
	action = SET_SDF 59 0 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(59,1) == 0;
	question = "special";
	text1 = "You enter a large cavern at the low southern end of the complex. In the middle, you see a large stone dome. Low chanting constantly comes from within.";
	text2 = "Even from here, you can sense Melanchion. The power of the beast pervades the air. It is a constant weight, slowly draining your will. You can only guess how it affects people less rigorously trained than you.";
	text3 = "The dragon awaits.";
	action = SET_SDF 59 1 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(59,2) == 0;
	question = "special";
	text1 = "And so you finally come before Melanchion. He is on a stone platform in the center of the dome. He is, indeed, a dragon. An enormous reptile, forty feet from head to tail, radiating raw power.";
	text2 = "Before him are his worshippers. Two rows of men and women, of different species, lying prostrate and chanting. The dragon looks down at them with amusement. The rugs are well-worn. His Drayssas serenade him thus every hour of every day.";
	text3 = "Then Melanchion looks up at you. You soon find that you have to evade his gaze. Every time you meet his eyes, your thoughts grow fuzzy and indistinct. The power of the dragon's mind can overwhelm all but the most cautious.";
	text4 = "He grins, showing many enormous, vicious teeth. _So the envoy of Avernum is here. Enter. Approach. Do not fear. I am the dragon Melanchion,  and I come as your savior, not your conqueror._";
	action = SET_SDF 59 2 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(59,3) == 0;
	question = "special";
	text1 = "You descend into the treasure halls of Melanchion. Now this is what you expected from a dragon's lair. Bones of vanquished foes. The bodies of thieves. Lethal, mindless sentinels. Locked doors and untold wealth.";
	text2 = "Happily, none of the defenders are attacking you yet. Take a step too far, and that may quickly change.";
	action = SET_SDF 59 3 1;

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(59,4) == 0 && gf(59,10) == 0;
	question = "special";
	text1 = "The corridor becomes darker here. The sentinels start to react to your presence. They turn to look at you. Their eyes glow red. This is clearly meant to be a warning.";
	text2 = "If you proceed much farther, you will draw the enmity of the dragon.";
	action = SET_SDF 59 4 1;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = get_sdf(59,5) == 0;
	question = "special";
	text1 = "At last, you enter Melanchion's treasure room. This is where he comes to relax and sort through his piles of coins and jewels. His discarded scales are everywhere. So are the bones of particularly interesting foes.";
	text2 = "What remains to be seen, when you go back upstairs, is how Melanchion will treat those who intrude into his inner sanctum.";
	action = SET_SDF 59 5 1;
	code =	
		if (gf(170,15) > 0)
			rs(2);
		sf(59,10,1);
		set_attitude(30019,10);
	break;

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = get_sdf(59,6) == 0;
	question = "special";
	text1 = "Melanchion and his servants are not just preparing for war. They are conducting all sorts of magical research, much of it aimed at creating new sorts of food. While the Tower Colony burns, Vassch-Drayssa continues the work.";
	text2 = "You can see vats of algae, patches of fungi, shelves laden with samples, and, of course, basins full of experimental, noxious goo.";
	action = SET_SDF 59 6 1;

//

begintalknode 10; // sbook 1
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Melanchion has obtained a number of spellbooks. Powerful tomes, bound in leather and radiating dark power, obtained with great effort and brought here to increase the power of his stronger-minded servants.";
	text2 = "You manage, with effort, to decipher the cryptic runes within the book without losing your sanity. You learn a chant which will greatly aid your wounded allies. (Your skill with the spell Divine Restoration 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(63,16) == 0) {
			rs(3);
			if (get_stat_total(13) < 12)
				rs(2);
				else {
					rs(4);
					sf(63,16,1);
					alter_stat(30000,78,1);
					}
			}
			else {
				rs(1); rs(2); rs(4);
				}
	break;

begintalknode 11; // sbook 2
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Melanchion has obtained a number of spellbooks. Powerful tomes, bound in leather and radiating dark power, obtained with great effort and brought here to increase the power of his stronger-minded servants.";
	text2 = "You manage, with effort, to decipher the cryptic runes within the book. You learn a spell which will strike your foes with mighty blows of raw power. (Your skill with the spell Arcane Blow 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(63,17) == 0) {
			rs(3);
			if (get_stat_total(13) < 15)
				rs(2);
				else {
					rs(4);
					sf(63,17,1);
					alter_stat(30000,59,1);
					}
			}
			else {
				rs(1); rs(2); rs(4);
				}
	break;

begintalknode 12; // sbook 3
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Melanchion has obtained a number of spellbooks. Powerful tomes, bound in leather and radiating dark power, obtained with great effort and brought here to increase the power of his stronger-minded servants.";
	text2 = "You manage to decipher the cryptic runes within the book without losing your sanity. You learn a chant that will strike your foes with bolts of holy energy. (Your skill with the spell Divine Retribution 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(63,18) == 0) {
			rs(3);
			if (get_stat_total(13) < 14)
				rs(2);
				else {
					rs(4);
					sf(63,18,1);
					alter_stat(30000,77,1);
					}
			}
			else {
				rs(1); rs(2); rs(4);
				}
	break;


begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "When you get close to the sentinel, its eyes start to glow red. Its head swivels slowly to face you. Its metallic hands begin to flex, its claws moving in and out unnervingly.";
	text2 = "You back away. You never know when one of these creations is going to malfunction. Such an event would probably amuse the dragon.";
	
begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Melanchion has obtained a number of spellbooks. Powerful tomes, bound in leather and radiating dark power, obtained with great effort and brought here to increase the power of his stronger-minded servants.";
	text2 = "You manage to decipher the cryptic runes within the book without losing your sanity. You learn a spell which will bless you and your allies, making spells more effective. (Your skill with the spell Cloak of the Arcane 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(63,26) == 0) {
			rs(3);
			if (get_stat_total(13) < 15)
				rs(2);
				else {
					rs(4);
					sf(63,26,1);
					alter_stat(30000,58,1);
					}
			}
			else {
				rs(1); rs(2); rs(4);
				}
	break;

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to climb the stairs, only to find that someone has closed a trapdoor at the top. And locked it. Vassch-Drayssa is determined that his experiment not end early.";

//

begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You meet some of the servants of Melanchion. The Drayssas are cordial, glassy-eyed, and quiet. When you get close, they stop what they are doing. They make banal conversation. They remain inert until you depart.";
	text2 = "There is something very eerie about them. They are friendly enough, but you suspect they'd happily slit your throats if the dragon even hinted he would like that.";

begintalknode 17;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "These cells are set aside to give the Drayssas an occasional bit of quiet time. These two young people politely make it very clear that, while they are required to be cordial to you, they really would prefer it if you let them be alone.";

begintalknode 18;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "A shade floats up to you. It is a simple, mindless magical construct. When it senses that it is close to you, it starts to fade away. As it disappears, it uses its final, waning traces of energy to speak:";
	text2 = "_My son, beware! Your arrogance will attract enemies! You cannot fight off the whole world!_";
	text3 = "_This is not our way! Interfering with the hordes of short-lived ones can only end one way._";
	text4 = "_Why do you not answer me? You know how to find me. You know history. You know what I say is true._";
	text5 = "_You will fail. I know this. They will never tolerate. They will use you, and they will crush you._";
	text6 = "_You think they are loyal. They are not. Their minds will not be clouded forever. We have seen this before. One day, they always awaken. And they are angry!_";
	text7 = "And then the shade fades away. It is gone, leaving not a trace behind.";
	code =
		clear_strings();
		as(1);
		as(2 + get_ran(1,0,4));
		as(7);
	
		erase_char(6407);
		erase_char(6408);
		erase_char(6409);
		erase_char(6410);
	break;
	

begintalknode 19;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The dragon Melanchion seems confused. He doesn't seem to understand why he feels so weak. Why his legs no longer seem to support him. Why he feels ... Dizzy? How can a dragon feel dizzy? Maybe the massive amount of blood loss ... loss ...";
	text2 = "And then the dragon falls. The ground shakes and cracks under the force of his impact. His sightless eyes remain open. A look of surprise and confusion remains on his face.";
	text3 = "The dragon is dead. His attempt to dominate the underworld has come to an end.";


begintalknode 20;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This man is working in the kitchen, trying hard to keep up with the dining demands of dozens of worshippers and one enormous dragon. He doesn't have time to talk.";

begintalknode 21;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This Drayssa is currently chanting and worshipping Melanchion. This person is far too lost in ecstasy to want to talk to you now.";

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

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

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

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

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

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

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

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

//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "This basin is full of gray, unwholesome liquid. A dipper to drink it has been helpfully provided.";

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = gf(59,11) == 1;
	question = "Drink the liquid.";
	text1 = "You drink some of the vile liquid. With great effort, you manage to keep from gagging it out again. The gate to the west starts to slowly open. Hmmm. You don't feel that bad. You might not need the ...";
	text2 = "But then you feel the cold. It starts out as a tiny mote of ice, within your stomach. And then it starts to spread. Downward. And upward.";
	text3 = "If the cold reaches your heart ... Maybe it would be wise to see what is past the gate.";
	action = END_TALK;
	code =
		kill_object(10759,0);
		sf(59,26,1);
		sf(59,20,1);
		force_char_status(30000,26,12);
	break;
	
begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "Leave the basin alone.";
	text1 = "You don't like the look of the gruesome liquid within. You back away.";
	action = END_TALK;
	
//

begintalknode 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "This basin is full of liquid. It is like perfectly clear water, but with an unnatural sparkle that suggests that it is something much more.";
	text2 = "";

begintalknode 41;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Drink the liquid.";
	text1 = "You drink the water (or water-like substance) and find that it is marvelously refreshing. A warm feeling spreads through your chest. Your thoughts grow wonderfully clear.";
	text2 = "You feel much better, but you can't help but wish that the alchemist had only had you drink from the second basin.";
	action = END_TALK;
	code =
		kill_object(10760,0);
		sf(59,27,1);
		award_party_xp(500,40);
		force_char_status(30000,26,0);
	break;

begintalknode 42;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Leave the basin alone.";
	text1 = "The liquid within doesn't look dangerous, but you've been tricked before. You leave it alone.";
	action = END_TALK;
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "When you get close to the dragon, you size each other up. Melanchion has just reached draconic adulthood. His skin is smooth and bright red. His powers are close to their peak, and they will stay potent for centuries.";
	text2 = "Heat radiates off of him in waves. Being near him is filling your armor with sweat. Your thoughts grow unfocused. You can see how so many have fallen under his sway. Something about the creature makes you feel compelled to obey.";
	text3 = "He, in turn, studies you. _Yes,_ he says. _I thought you would come. I have heard of you. The whole underworld echoes with tales of your skill and strength. I think you are capable of helping even me._";
	text4 = "_I am the dragon Melanchion. I have called for you. You have come. Your people are doomed. You require someone to save you. And that someone can be me._";
	text5 = "Melanchion stares at you with interest. You can sense the machinations of his elaborate dragon brain, gauging his options and trying to determine how to use you to help his small but growing kingdom.";
	text6 = "_Do we have further business, little one? You may speak._";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = 51;
	condition = gf(59,8) == 0;
	question = "I have been sent here by the Castle. You have a message for them?";
	text1 = "Melanchion nods. He idly scratches at the stone floor with his claw. _I have a message. And I have a deal to offer. A trade that may save you._";
	text2 = "_Avernum is hungry, and it is trapped. You had a portal, yes? This Great Portal? And it failed? Leaving you below and bereft? Facing starvation?_";

	
begintalknode 52;
	state = 51;
	nextstate = 52;
	condition = 1;
	question = "That is accurate.";
	text1 = "_Of course. All know of it. And you have not been able to repair the portal. And it will take too long to repair it. It took many years to construct it. You do not have time to finish it. You are, thus, doomed._";
	
begintalknode 53;
	state = 51;
	nextstate = 52;
	condition = 1;
	question = "That is Avernum's business, not yours.";
	text1 = "Melanchion is amused. _It is no secret, little creature. All know of it. You do no favors for your people by being coy._";
	text2 = "_You have not been able to repair the portal. And it will take too long to repair it. It took many years to construct it. You do not have time to finish it. You are, thus, doomed._";
	
begintalknode 54;
	state = 52;
	nextstate = 53;
	condition = 1;
	question = "And what does this have to do with you?";
	text1 = "_You do not have the skill or resources to repair your portal. The vahnatai do, but they will not help you. They would not admit it, but they would rather see you starve._";
	text2 = "_But I can help you._";
	
begintalknode 55;
	state = 53;
	nextstate = 54;
	condition = 1;
	question = "How?";
	text1 = "_I can repair your portal. I have already begun to craft the crystal that will restore it. And I would be happy to share it with you and to help you Avernites to flee the underworld._";
	text2 = "_But I require something in return._";
	
begintalknode 56;
	state = 54;
	nextstate = 55;
	condition = 1;
	question = "What do you require?";
	text1 = "_Your service. You. You will do my bidding. When I am satisfied, you will have the stone and thus your lives. I have great plans for you._";
	
begintalknode 57;
	state = 55;
	nextstate = -1;
	condition = 1;
	question = "I will agree to your terms, if my king requires it.";
	text1 = "_You are a good soldier. You will follow your orders. Your orders are to take my message back to the Castle. You will do that now, whatever your opinion of me._";
	text2 = "_That is all. You are dismissed._ And the dragon waves you away.";
	action = END_TALK;
	code =
		sf(59,8,1);
	break;
	
begintalknode 58;
	state = 55;
	nextstate = -1;
	condition = 1;
	question = "What? I will never serve you!";
	text1 = "Melanchion shakes his head. _Oh, no. You are a good soldier. You will follow your orders. Your orders are to take my message back to the Castle. I will not have you follow two masters. I will have you commanded to be loyal._";
	text2 = "_That is all. You are dismissed._ And the dragon waves you away.";
	action = END_TALK;
	code =
		sf(59,8,1);
	break;

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = gf(59,8) > 0 && gf(170,1) < 27;
	question = "I would like to speak with you.";
	text1 = "Melanchion shakes his head. Puffs of sulfurous smoke emerge from his nostrils. _Time is wasting. I will not have you serve two masters. Do not trouble me until the Castle has given me command of you._";
	action = END_TALK;

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = gf(170,1) == 27;
	question = "I have been to the Castle. I am to serve you.";
	text1 = "Melanchion gives you a little smile. And then his mighty head tilts down, and he surprises you by catching your gaze. He stares deep into your eyes. You find yourself unable to look away.";
	text2 = "You try to command your muscles, to force yourself to look away. You feel dizzy, as an intruder roams freely through your mind. And then, as abruptly as it began, Melanchion pulls back. You manage to stay standing.";
	text3 = "_Yessssss ..._ The dragon runs his claws lightly on the stone floor. _There is no subterfuge. At least, not yet. You have been given to me, a new, powerful tool in my quest for order. If too independent to be a true servant._";
	text4 = "_You are now worth speaking to. Come forward and talk to me. We have much to do, and then Avernum will be saved._";
	code =
		sf(170,1,28);
		toggle_quest(32,1);
	break;

begintalknode 61;
	state = 50;
	nextstate = 57;
	condition = gf(170,1) >= 28;
	question = "Where have you come from?";
	text1 = "The dragon seems amused and unsurprised by this request. _Yes. My past. You short-lived little ones seem so fascinated by my kind. I will indulge you._";
	text2 = "_I am the child of Athron, one of the five great dragons of Avernum. One of the few who live. I came of age in the low tunnels, the Northern Reaches as you know it. I came up from obscurity because I saw I was needed._";

begintalknode 62;
	state = 50;
	nextstate = 60;
	condition = gf(170,1) >= 28;
	question = "I'd like to know more about your kingdom.";
	text1 = "_Of course you would. I am making a kingdom of peace and tranquility, free of the arrogance that has plagued my kind._";
	text2 = "_I bring together like-minded, willing souls, to work with me to bring order to the underworld._";

begintalknode 63;
	state = 50;
	nextstate = 64;
	condition = gf(170,1) >= 28 && gf(63,23) < 4;
	question = "What do I need to do for you?";
	text1 = "_There are enemies within Avernum. Foes that threaten both you and me and who wish to disturb our tranquility. I wish for you to eliminate two of them. That will be sufficient. Then I will help you to complete your portal._";
	text2 = "_There are still enemies within Avernum. Though you have done enough for me to aid Avernum, if you continue to assist me, I will reward you generously from my hoard._";
	text3 = "_I have an annoying irritant holding in my western border. Lord Farrar of Bargha refuses to deal with me in any way. He has even attacked my servants. He must pay for this insult._";
	text4 = "_Though you have harmed the Slith Horde greatly, they still have the potential to do great harm in Avernum. We must strike before they regain their balance. Someone must hunt down the Circle of the Scourge._";
	text5 = "_The vahnatai have never given up hope of regaining these caverns and driving humanity from the underworld. Their settlement of Tenevra is only the beginning of their invasion. Their leader must be confronted and driven out._";
	text6 = "_The Darkside Loyalists, rebels against the Empire, still manage to exist. As long as they continue to spread their poison, there is a chance that they might topple the Emperor and return us all to the dark times. They must be stopped._";
	code =
		if (gf(170,1) == 28) {
			rs(2);
			toggle_quest(32,1);
			}
			else rs(1);
		if (gf(63,19) > 1)
			rs(3);
		if (gf(63,20) > 1)
			rs(4);
		if (gf(63,21) > 1)
			rs(5);
		if (gf(63,22) > 1)
			rs(6);
	break;
	
begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = gf(170,1) >= 28;
	question = "Can you give me supplies or training?";
	text1 = "_I am eager to heap treasure on your head. I have many powerful books of spells. The rewards I can offer are many. All you need to do is complete the tasks I have set aside for you._";
	text2 = "_Every time you help me, you can go and talk to Goro. He will dispense the marvelous rewards I have set aside._";

begintalknode 65;
	state = 50;
	nextstate = -1;
	condition = gf(63,19) == 1 && gf(170,10) > 0;
	question = "I have been to Bargha. Lord Farrar is dead.";
	text1 = "Melanchion is quite pleased. _Ahsssss ... Now, at last, your Abyss will have a true protector. Bargha is confused, and Spire will join me. You do not realize it, but you have saved their lives._";
	text2 = "_I will pay you generously for this act. Speak with Goro for your reward._";
	code = 
		set_flag(63,19,2);
		toggle_quest(33,3);
		award_party_xp(500,35);
		inc_flag(63,23,1);
	break;	

begintalknode 66;
	state = 50;
	nextstate = -1;
	condition = gf(63,20) == 1 && gf(13,10) > 0;
	question = "The three leaders of the Scourge have been destroyed.";
	text1 = "_Excellent. I am glad that the risk I took leaving my lair was justified. Your brave actions have done much to protect your people. I'm sure they will be proud of you. The Slith Horde will not try to advance for some time, if ever._";
	text2 = "_I will pay you generously for this act. Speak with Goro for your reward._";
	code = 
		set_flag(63,20,2);
		toggle_quest(34,3);
		award_party_xp(500,35);
		inc_flag(63,23,1);
	break;	

begintalknode 67;
	state = 50;
	nextstate = -1;
	condition = gf(63,21) == 1 && gf(10,14) > 0;
	question = "I have gone to Tenevra. It is no more.";
	text1 = "_Good. Good. I know that this must have been difficult for you, but I am sure you see that it was the only way. When they tried to make a new colony on my border and yours, they knew that their lives were forfeit._";
	text2 = "_I will pay you generously for this act. Speak with Goro for your reward._";
	code = 
		set_flag(63,21,2);
		toggle_quest(35,3);
		award_party_xp(500,35);
		inc_flag(63,23,1);
	break;	

begintalknode 68;
	state = 50;
	nextstate = -1;
	condition = gf(63,22) == 1 && gf(70,9) > 0;
	question = "The nest of Darkside Loyalists beyond the Abyss has been destroyed.";
	text1 = "_Ahhhh ... The Darkside Loyalists. Gone forever. Dare we dream? No, there will be new rebels. But all of those strong enough to actually pose a threat are dead. My lands are safer because of it. As are yours._";
	text2 = "_I will pay you generously for this act. Speak with Goro for your reward._";
	code = 
		set_flag(63,22,2);
		toggle_quest(36,3);
		award_party_xp(500,35);
		inc_flag(63,23,1);
	break;	

begintalknode 69;
	state = 57;
	nextstate = 58;
	condition = 1;
	question = "Tell me about Athron.";
	text1 = "_Ahsssss ... Mother. She gave me life. She protected me from a world which had much hatred for my kind. For that, I owe her all. But that does not mean she does not drive me mad._";

begintalknode 70;
	state = 57;
	nextstate = -1;
	condition = 1;
	question = "I'd like to know more about those five dragons.";
	text1 = "_Oh, that old tale. The Empire once hunted dragons. Slaughtered them. Five came down to Avernum. Three still live. One of them is my mother. I do not know where they are._";
	text2 = "_They hide. It is their way. The old way. I bring a new way._";

begintalknode 71;
	state = 57;
	nextstate = -1;
	condition = 1;
	question = "Tell me more about leaving the Northern Reaches.";
	text1 = "_It was a good place to grow, to study, to gain power. But then the Slith Horde descended. They irritated me. They kept forcing me to kill them._";
	text2 = "_I saw a new cycle of war beginning, a period of chaos bad for my kind and yours. That is when I saw what I must do._";

begintalknode 72;
	state = 58;
	nextstate = 59;
	condition = 1;
	question = "How so?";
	text1 = "_She has wisdom for me. So much wisdom. Without end. Of how I must hide. I must be a sniveling creature in the shadows. Shadows. Yes, and she always sends shadows, to try to teach me the lesson of cowardice._";

begintalknode 73;
	state = 59;
	nextstate = -1;
	condition = 1;
	question = "Shadows?";
	text1 = "_Look around and you might see them. Wraiths. Pests. She sends them out by the multitude. Some of them reach me, with little lessons of 'wisdom.' She does not see that a new age is coming, one that brings great things for our kind._";

begintalknode 74;
	state = 60;
	nextstate = -1;
	condition = 1;
	question = "You say you are not arrogant?";
	text1 = "_I am not. I am powerful, yes, and I will use that power. But I am free of hubris. I know that if I go too far, if I let my defenses slip too much, I will be crushed. By the Empire, or Avernum, or some greedy adventurer._";
	text2 = "_Instead, I will live by making myself indispensable. None will attempt to end me because they will see that the world without me will be more frightening._";

begintalknode 75;
	state = 60;
	nextstate = 61;
	condition = 1;
	question = "You say you are going to bring peace?";
	text1 = "_Yesssss. The underworld is a place of chaos. Of war. I will end that. Those who are content to stay within fair borders, like Avernum and the Abyss, they are not enemies to me. I will aid them._";
	text2 = "_Others, like the Slith Horde, they bring chaos. Chaos is bad for you and for me. I will punish them._";

begintalknode 76;
	state = 61;
	nextstate = -1;
	condition = 1;
	question = "How will you punish agents of chaos?";
	text1 = "_With my power. Sadly, I do not have enough strength to bring proper punishment to a true power yet. But soon. Yesssss ... Soon that will change._";

begintalknode 77;
	state = 61;
	nextstate = -1;
	condition = 1;
	question = "Why is chaos so bad for your kind?";
	text1 = "_Because that is when despots rise and when adventurers roam. Over the last two centuries, we have seen that both are bad for dragonkind._";

begintalknode 78;
	state = 60;
	nextstate = 62;
	condition = 1;
	question = "I've met a lot of your followers.";
	text1 = "_Yessss._ He nods at the servants before him, kneeling and chanting in religious ecstasy. _More come every day. I provide food, safety, and the glory of my presence. I let them follow me._";

begintalknode 79;
	state = 62;
	nextstate = -1;
	condition = 1;
	question = "Glory of your presence?";
	text1 = "_I know what you are thinking. You are wrong. I do nothing to control their minds. Some people simply have the ability to recognize a true leader and follow them. Sometimes the leader is human. Sometimes not._";
	text2 = "_Some come to me of their free will and they have the capability to follow me loyally. I do not have to hunt them. I bring them joy. Who are you to judge?_";

begintalknode 80;
	state = 62;
	nextstate = -1;
	condition = 1;
	question = "Would you ever let me follow you?";
	text1 = "The dragon is amused. _As a mercenary? A bounty hunter? You have an independent spirit, and we only have the space and resources here for the truly loyal._";

begintalknode 81;
	state = 62;
	nextstate = 50;
	condition = 1;
	question = "I want to talk about something else.";
	text1 = "_Of course,_ the dragon's voice rumbles. _There is much to discuss. Much to do._";

begintalknode 82;
	state = 64;
	nextstate = -1;
	condition = 1;
	question = "Why don't you go out and hunt these enemies yourself?";
	text1 = "_I could. I might even succeed. But that is the sort of carelessness and arrogance that has caused my kind to be almost eradicated from the world. I am a new sort of dragon._";

begintalknode 83;
	state = 64;
	nextstate = 65;
	condition = gf(63,19) < 2;
	question = "I would like to know more about Bargha.";
	text1 = "_Bargha is under the control of Lord Farrar, a highly erratic and violent individual. I have tried to work with him. Tried to be diplomatic. But he has only rebuffed me and attacked my followers._";
	text2 = "_It would be better for the Abyss to be under my protection, but I cannot reach my allies there. Not until Farrar is removed._";
	code =
		sf(63,19,1);
		toggle_quest(33,1);
		mark_quest_dest(157,156,0,33);
	break;
	
begintalknode 84;
	state = 65;
	nextstate = -1;
	condition = 1;
	question = "You have allies in the Abyss?";
	text1 = "_The village of Spire is tired of standing alone. It longs for someone to protect it. Avernum will not. I will._";

begintalknode 85;
	state = 65;
	nextstate = -1;
	condition = 1;
	question = "So you want me to kill Farrar.";
	text1 = "_It is the only way. He is a true fanatic. His death will be a great boon for the long-suffering people of Bargha. I will be kinder to them than he is._";
	text2 = "His deep, rumbling voice sounds so calm, so reasonable. You remind yourself who you are talking to.";
	
begintalknode 86;
	state = 65;
	nextstate = -1;
	condition = 1;
	question = "How can I reach Farrar?";
	text1 = "_Do not try to enter the city through the east gates. Approach from the west. My servants cannot get to the Abyss. You can._";
	text2 = "_Farrar will probably flee down to the lower tunnels. You must hunt him there._";

begintalknode 87;
	state = 64;
	nextstate = 66;
	condition = gf(63,20) < 2;
	question = "I will hunt down the Scourge.";
	text1 = "_I thought you would. The Scourge is the true leadership of the Slith Horde. The three warlords you slew were only loaned power by the Scourge._";
	text2 = "_Members of the Scourge can be found all throughout the underworld, but there are three of its number in Avernum now. They are seeking ways to continue the invasion. For the safety of your homeland, you must stop them._";
	text3 = "_But they are not foolish. They have holed up behind powerful defenses, fearing assassins. But I can help you to reach them._";
	code =
		sf(63,20,1);
		toggle_quest(34,1);
		mark_quest_dest(842,40,0,34);
		if (gf(13,9) == 0)
			sf(13,9,1);
	break;

begintalknode 88;
	state = 66;
	nextstate = -1;
	condition = 1;
	question = "Will killing them get the horde to leave our lands?";
	text1 = "Melanchion chuckles. _No. It will only show that any who plan to expand farther into Avernum will meet a similar fate. The slithzerikai near my realm must be humble!_";
	text2 = "_But to the horde, taking back some of Avernum is a matter of mortal honor. It will take much to drive them out._";

begintalknode 89;
	state = 66;
	nextstate = -1;
	condition = 1;
	question = "Where can I find them?";
	text1 = "_They are in the tunnels northeast of Formello, behind a mighty gate of stone and steel._";
	text2 = "";


begintalknode 90;
	state = 66;
	nextstate = 67;
	condition = gf(13,9) < 2;
	question = "How can I get in?";
	text1 = "_I am willing to, just this once, break my own rules. I will emerge, briefly, from my lair. When I know that you are close to the fortress of the Scourge, I will travel to meet you._";

begintalknode 91;
	state = 67;
	nextstate = -1;
	condition = 1;
	question = "Ummm ... How will you know when I am there?";
	text1 = "_I will know. My eyes are everywhere. In the tunnels. In the air. Even in the webs._";

begintalknode 92;
	state = 64;
	nextstate = 68;
	condition = gf(63,21) < 2;
	question = "You want me to fight the vahnatai?";
	text1 = "_Oh, that might not be necessary. Only get them to leave. Tell them that they do not belong. The vahnatai have regained most of their low tunnels, even the ones in the Northern Reaches. They must be content with that._";
	text2 = "_If they are not willing to abandon Tenevra, though, you must take steps._";
	code =
		sf(63,21,1);
		toggle_quest(35,1);
		mark_quest_dest(689,8,0,35);
	break;

begintalknode 93;
	state = 68;
	nextstate = -1;
	condition = 1;
	question = "So I just ask the vahnatai of Tenevra to leave?";
	text1 = "_Go there. Find their leader, their Ihrno. Say that the dragon will not tolerate their presence. Their constant lust for vengeance. The warlike nature they pretend they do not have._";
	text2 = "_Who knows? They might do peacefully what I will otherwise make them do by force._";

begintalknode 94;
	state = 68;
	nextstate = -1;
	condition = 1;
	question = "Does Avernum really want me to fight vahnatai?";
	text1 = "_Avernum wants to live. To survive, you must do what I say. But trust me, this action will be for Avernum's benefit too. Or have you not been attacked by the vahnatai enough?_";

begintalknode 95;
	state = 68;
	nextstate = -1;
	condition = 1;
	question = "And if they refuse to leave Tenevra?";
	text1 = "_Ahhhh ... When will Avernum wake up? The vahnatai are not your friends, no more than the Slith Horde is! You must let them have their caves, and you must demand that they stay out of yours!_";
	text2 = "_If they refuse to go, you must fight for what is yours! It is the only way. If you do not, they will spread._";

begintalknode 96;
	state = 64;
	nextstate = 69;
	condition = gf(63,22) < 2;
	question = "I will hunt the Darkside Loyalists.";
	text1 = "_Yessss. Good. They are pitiful now, a shade of their former self, but they can still assassinate. They can still cause great harm._";
	text2 = "_But now, at last, I think that they can be ended. Destroy their leader now, Loyalist Gavrahoss, and that might truly be the end of them._";
	code =
		sf(63,22,1);
		toggle_quest(36,1);
		mark_quest_dest(50,372,0,36);
	break;

begintalknode 97;
	state = 69;
	nextstate = -1;
	condition = 1;
	question = "What harm can they do?";
	text1 = "_They are too small to lead, but not too small to cause harm. They can lash out blindly and madly. They assassinated the last leader of the Empire. If they kill Emperor Redmark, there will be a new power struggle._";
	text2 = "The dragon is genuinely agitated. _If there is, a cruel Emperor might rise, one that would be harsh to Avernum and to the non-humansss. A return to the dark dayssss of old. It must be prevented!_";

begintalknode 98;
	state = 69;
	nextstate = -1;
	condition = 1;
	question = "Where are the Darkside Loyalists?";
	text1 = "_They hide near the Abyss, west of the town of Spire. Their lair is deep in a thick wood. This is all I know. The few spies I have sent were killed._";

begintalknode 99;
	state = 69;
	nextstate = -1;
	condition = 1;
	question = "Do you know anything else about Loyalist Gavrahoss?";
	text1 = "_He is just another fanatic in a long line of fanatics. But he will be a dangerous and wily foe._";

begintalknode 100;
	state = 50;
	nextstate = -1;
	condition = gf(63,23) > 1 && gf(170,1) < 30;
	question = "I have completed two of your tasks. Now you must make good on your end of the bargain.";
	text1 = "Melanchion nods solemnly. He is silent. For a moment, you wonder if he really plans to help you after all. Then he looks at you. You know enough now to look away.";
	text2 = "_I will do even better than that. I have already done what I said. You need a crystal pylon to repair the Great Portal. I began to work on it the day that the Great Portal exploded. I began to transport it the day you agreed to help me._";
	text3 = "_Go to King Starrus. He already knows that the crystal is in your possession. I'm sure he will already have new orders for you._";
	text4 = "_As for me, I still have tasks that need to be done. If you continue to aid me, I will still reward you, and very well._";
	code =
		sf(170,1,30);
		toggle_quest(32,3);
		award_party_xp(400,40);
	break;
	
begintalknode 101;
	state = 50;
	nextstate = -1;
	condition = gf(63,23) > 3;
	question = "Is there anything else I can do for you?";
	text1 = "_Only return to King Starrus and help him to repair the Great Portal. Avernites fleeing the underworld is already reward enough for me._";

//

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "Melanchion looks down at you. He is enraged. _My hoard! You have entered my private sanctum! You have touched my hoard! Your life should be forfeit for this! But I need to maintain peace with Avernum._";
	text2 = "_Oh, I long to kill you, but I am wise. I know I have more to gain. So I will be ... merciful._ He spits out the word.";
	text3 = "_Repay me. Give me every coin you have, and I will spare you._";
	
begintalknode 111;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "All right. (Pay him.)";
	text1 = "You hurriedly place all of your coins before the dragon. He waves a claw, and they disappear.";
	text2 = "_That? That was all? A pitiful display! I claim more ..._ He waves a claw. You double over and collapse to the ground, gagging and retching. Light flows from your bodies to the claw. He sucks out your life energy.";
	text3 = "Finally, he stops. Much more, and he would have killed you. _I am content. I will forgive you. Do not let it happen again._";
	text4 = "The dragon nods. _That was enough. I will forgive your transgression, in the interest of my greater goal. Do not let it happen again._";
	action = END_TALK;
	code =
		if (coins_amount() < 5000) {
			rs(4);
			alter_stat(30000,0,-1);
			alter_stat(30000,1,-1);
			alter_stat(30000,2,-1);
			alter_stat(30000,3,-1);
			}
			else {
				rs(2); rs(3);
				}
		change_coins(-1 * coins_amount());
	break;
	
begintalknode 112;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "I will not submit to you, worm.";
	text1 = "The creature rises up. _Such insolence! Never ... never!_ His rage overcomes him. His words come out of his mouth in gouts of fire. _I will not tolerate this! You will die!_";
	action = END_TALK;
	code =
		change_crime_level(-1,10);
	break;

// 130 Goro-Drayssa

begintalknode 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "At first, you thought that this creature was just a very large zombie. He walks as if all of his bones were broken and then reset badly. His skin is blotchy, and chunks of it look like they were sewn on.";
	text2 = "But, somehow, he is alive. When you get close enough for his milky eyes to detect you, he turns and lurches toward you. _Hhhhuhhhrrrr ... I Goro-Drayssa!_";
	text3 = "_I treasure keeper ... Ghurrrr ... Keeper for great dragon!_";
	text5 = "The ogre Goro-Drayssa shuffles around you, tending to the boxes of equipment and treasure that line the walkway. He is cataloguing them.";
	text6 = "Some of the pieces will go to Melanchion's warriors, and some of them, the better ones, will disappear into his hoard. Goro says, _I am busy! I help the dragon! Ghurrrrr!_";
	action = INTRO;

begintalknode 131;
	state = 130;
	nextstate = 131;
	condition = 1;
	question = "What happened to you?";
	text1 = "Goro-Drayssa looks down at his twisted limbs and scarred flesh. _I was old. Old for ogre. And I got caught by soldiers of Bargha. Chopped up. Old body, hurt. Ghurrrhr. Thought I die. Melanchion has use for me._";
	text2 = "_So I live. Now I only one Melanchion trust with treasure!_";
	
begintalknode 132;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "How did Melanchion save you?";
	text1 = "_With mighty magic. Much pain. Much tearing. Took so long, but he make me live. I serve Melanchion long time. He say he want to keep me!_";
	text2 = "";

begintalknode 133;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "The dragon actually trusts you around his hoard?";
	text1 = "_Yes! I live because Melanchion spells in me. They make me live! Dragon, he kills me with one thought if he wants. So I always serve Melanchion. Always!_";
	text2 = "And yet, the ogre doesn't seem to feel bad about this. If anything, he is proud.";
	
begintalknode 134;
	state = 130;
	nextstate = 132;
	condition = 1;
	question = "You are the treasure keeper?";
	text1 = "_Much loot out there! Many dead soldiers. Torn up towns. Drayssas, they always find good things. Bring here. I sort. I take some to hoard. I give some to soldiers._";
	text2 = "_Some of hoard not stay in hoard. Goes out again! Rewards!_";
	
begintalknode 135;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "Can I see Melanchion's hoard?";
	text1 = "The ogre looks thoroughly scandalized by this suggestion. _No! You go down, you be careful. You go too far, go past magic barriers, and defenses kill you. Only I and dragon can go._";
	text2 = "_Others try to steal. They die. No be like them._";
	
begintalknode 136;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "How do you decide what goes into Melanchion's hoard?";
	text1 = "_All the best things! The strongest things! I show them to Melanchion. He touches them. He loves them. I put into hoard. Dragon has mighty hoard!_";
	
begintalknode 137;
	state = 132;
	nextstate = -1;
	condition = 1;
	question = "Can I earn some reward?";
	text1 = "_You talk to dragon. You not first to come to try to earn great treasure. Just do not try to steal treasure. Some do. Melanchion keeps their bones._";
	
begintalknode 138;
	state = 130;
	nextstate = -1;
	condition = gf(63,24) == 0 && gf(63,23) > 0;
	question = "Melanchion sent me here to get a reward.";
	text1 = "Goro nods, making the scraps of skin on his neck wobble disgustingly. _You do things for dragon! You good! You wait here!_ Goro disappears downstairs.";
	text2 = "He returns a few minutes later. _First cell, it is unlocked. You may take. Only first cell. Go no more far!_";
	code =
		sf(63,24,1);
		sf(59,21,1);
	break;
	
begintalknode 139;
	state = 130;
	nextstate = -1;
	condition = gf(63,24) == 1 && gf(63,23) > 1;
	question = "Melanchion sent me here to get a second reward.";
	text1 = "Goro nods vigorously. Loose chunks of his head flop around. _You do more things for dragon! You good! You wait here!_ Goro disappears downstairs.";
	text2 = "He returns a few minutes later. Second cell, it is unlocked. You may take. Only second cell. Go no more far!_";
	code =
		sf(63,24,2);
		sf(59,22,1);
	break;
	
begintalknode 140;
	state = 130;
	nextstate = -1;
	condition = gf(63,24) == 2 && gf(63,23) > 2;
	question = "Melanchion sent me here to get a third reward.";
	text1 = "Goro nods vigorously. Loose chunks of his head flop around. _You do more things for dragon! You good! You wait here!_ Goro disappears downstairs.";
	text2 = "He returns a few minutes later. Third cell, it is unlocked. You may take. Only third cell. Go no more far!_";
	code =
		sf(63,24,3);
		sf(59,23,1);
	break;
	
begintalknode 141;
	state = 130;
	nextstate = -1;
	condition = gf(63,24) == 3 && gf(63,23) > 3;
	question = "Melanchion sent me here to get a fourth reward.";
	text1 = "Goro looks concerned. _You do more things for dragon! You good! But you have to get close to hoard. So close._ Goro disappears downstairs.";
	text2 = "He returns a few minutes later. Last cell, it is unlocked. You may take. But no more far! You close to hoard now, close to death. Have care!_";
	code =
		sf(63,24,4);
		sf(59,24,1);
	break;
	
begintalknode 142;
	state = 130;
	nextstate = -1;
	condition = gf(63,24) == 4;
	question = "Can I get more rewards?";
	text1 = "_No! No! Not if dragon no say. Cells open. Only room left is hoard, and only Goro goes. I can say no more._";

		
// 150

begintalknode 150;
	state = -1;
	nextstate = 150;
	condition = 1;
	question = "Name";
	text1 = "Once again, you meet Breck-Drayssa, the man you rescued from the dungeons of Bargha. He has cleaned himself up and regained a lot of lost weight. Now he wears long robes and tends to the worshippers of the fortress.";
	text2 = "He eventually takes a break from tending to the temple and speaking with worshippers to speak with you. He seems surprisingly uncomfortable, considering the debt he owes you.";
	text3 = "_Ahhhh ... Welcome. I am Breck-Drayssa. Well, I suppose you know that. As you can see, I am back home, back to tending to my true purpose. I hope you take a moment to see what we have built here. Before you leave._";
	text5 = "Breck-Drayssa stands off to the side, silently watching you as you look around. His discomfort at your presence is palpable.";
	action = INTRO;

begintalknode 151;
	state = 150;
	nextstate = 151;
	condition = 1;
	question = "Tell me about this shrine.";
	text1 = "_The followers of Melanchion work hard. They struggle constantly to create a better, more peaceful land. And, when they tire, they come here. For reassurance. For guidance._";
	text2 = "_All who bear the title Drayssa are welcome here._";
	
begintalknode 152;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "Why don't they visit the dragon?";
	text1 = "_Oh, they do. All take their turns being allowed to spend time in Melanchion's presence, chanting and feeling his power. It is a cherished reward._";
	text2 = "_This shrine is more for rest and guidance._";

begintalknode 153;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "And me? Am I welcome here?";
	text1 = "_The dragon welcomes you. Called for you. So you have a special place. You may travel freely. You should not spend too much time talking to the Drayssas, though. You might upset them._";
	
begintalknode 154;
	state = 150;
	nextstate = 152;
	condition = 1;
	question = "And what do you do?";
	text1 = "_I speak to the Drayssas. Answer their questions. Give them guidance. And, at other times, I perform the other task Melanchion has given me._";
	
begintalknode 155;
	state = 152;
	nextstate = -1;
	condition = 1;
	question = "What sort of advice do you give?";
	text1 = "_Of course, all wish to follow the dragon, to help Melanchion to create a new, glorious Empire. But that does not mean that the best path is immediately visible. In fact, it rarely is._";
	text2 = "_When they are unsure how best to help Melanchion, I discuss the options with them and help them find a way to be more efficient._";
	
begintalknode 156;
	state = 152;
	nextstate = 153;
	condition = 1;
	question = "What else does Melanchion have you do?";
	text1 = "_I also gather information. Books. Scrolls. Works of history. There is nothing about the world, below or above, that Melanchion does not want to know._";
	text2 = "_And, of course, Melanchion is most in desire of works of magical research. Tomes. Notes. Alchemical texts. Anything to help our sages to defend us._";
	
begintalknode 157;
	state = 153;
	nextstate = -1;
	condition = 1;
	question = "And does Melanchion pay for that sort of thing?";
	text1 = "_He does. Well, I do. I would pay you well for any research notes you might bring me._";
	code = 
		set_flag(59,12,1);
		toggle_quest(119,1);
	break;	
	
begintalknode 158;
	state = 150;
	nextstate = -1;
	condition = gf(59,12) == 1 && num_of_item(212) > 0;
	question = "I have some research notes for you. (Give them.)";
	text1 = "Breck-Drayssa takes the notes and examines them carefully. _Yes. Very interesting. It will take some time to decipher them, but they might well be helpful._";
	text2 = "He counts you out a small stack of gold coins from his pouch.";
	text3 = "He also removes a crystal from his pouch and hands it to you. _See? We of the dragon can pay well when we are aided._";
	action = REUSABLE;
	code =
		take_item(212);
		change_coins(100);
		award_party_xp(200,30);
		inc_flag(59,14,1);
		if (gf(59,14) == 2)
			reward_give(480);
		else if (gf(59,14) == 3)
			reward_give(241);
		else if (gf(59,14) == 4)
			reward_give(243);
		else if (gf(59,14) == 5)
			reward_give(244);
		else if (gf(59,14) == 6)
			reward_give(242);
		else rs(3);
	break;
	
begintalknode 159;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "I have to go now.";
	text1 = "_Then I wish you safe travels. And I hope that you return to our shrine soon,_ he lies.";
	action = END_TALK;
	
// 170 Glenny-Drayssa

begintalknode 170;
	state = -1;
	nextstate = 170;
	condition = 1;
	question = "Name";
	text1 = "Melanchion expects his servants to work hard. In return, he gives them a rare reward: He feeds them. The kitchen is full of bubbling pots of stew, lizard roasts, and kegs of mushroom ale. You would never guess that there is a famine.";
	text2 = "The head cook is a young human woman. She has muscles built up by years hauling around cauldrons, and her hands and forearms bear many small burns. She walks up to you and gives you a little bow.";
	text3 = "_I am Glenny-Drayssa, traveler. Melanchion has sent word that you are to share in his hospitality. I would be happy to feed you._";
	text5 = "Glenny-Drayssa hovers near you, eager to give you food and drink. She occasionally has to bark orders at her helpers, reminding them to remove bread from the oven or stir the stew. She has a vicious temper when her food is threatened.";
	action = INTRO;

begintalknode 171;
	state = 170;
	nextstate = 171;
	condition = 1;
	question = "You cook for all of the Drayssas?";
	text1 = "_I cook for everyone here. Even the mighty dragon. It is a great honor. I never dreamed my skills would come to such use._";
	
begintalknode 172;
	state = 171;
	nextstate = -1;
	condition = 1;
	question = "What does the dragon eat?";
	text1 = "_Whole roast lizard, one a day. Mighty Melanchion lets me prepare it as I wish. Every day, I try a different mix of stuffings and sauces. The dragon's pleasure is what I live for._ She says it simply and with total conviction.";

begintalknode 173;
	state = 171;
	nextstate = -1;
	condition = 1;
	question = "Were you a cook before you came here?";
	text1 = "_I was. It takes great skill to turn the products of Avernum into something enjoyable. I cooked in New Harston. Then the Blight came, and I fled south. I thought I would never practice my art again._";
	text2 = "_But then I met Breck-Drayssa, who was traveling and looking for new potential followers. He brought me here, and my life started over._";
	
begintalknode 174;
	state = 170;
	nextstate = 172;
	condition = 1;
	question = "Where do you get the food?";
	text1 = "_Some of it is old stores. Some of it is freshly grown. And most of it is foraged. Melanchion only accepts new servants when he is sure we can find enough food for them._";
	
begintalknode 175;
	state = 172;
	nextstate = -1;
	condition = 1;
	question = "Wait ... Did you say freshly grown?";
	text1 = "She nods. _Vassch-Drayssa is making new crops for us to raise. He is very skilled. We will never have anything like the mushrooms we lost, but Avernum will not be without farmers forever._";
	
begintalknode 176;
	state = 170;
	nextstate = -1;
	condition = gf(59,15) == 0;
	question = "I am hungry.";
	text1 = "Glenny-Drayssa goes to the oven and fetches you a mushroom-meal roll. It is fresh, warm, and apparently untainted. _You see,_ she says. _The dragon is so kind to us._";
	code =
		sf(59,15,1);
		reward_give(256);
	break;
	
begintalknode 177;
	state = 170;
	nextstate = -1;
	condition = gf(59,15) > 0;
	question = "I could use more food.";
	text1 = "She looks uncomfortable. _Right now, I only have enough for the workers. The bread I gave you will have to comfort you until I can start a new meal._";
	
begintalknode 178;
	state = 170;
	nextstate = -1;
	condition = 1;
	question = "I don't need anything else.";
	text1 = "_Return when you do. You are welcome here._ She returns to shouting at her helpers and guiding the next meal to completion.";
	action = END_TALK;

// 190 Poila-Tel-Drayssa

begintalknode 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = "You are surprised to find a vahnatai living down here. Humans, nephilim, and so on, sure. But you didn't expect to find that one of these creatures has fallen under Melanchion's influence.";
	text2 = "She stands to greet you. Her cloak is torn and tattered, and her eyes have a strange, glassy appearance. Fortunately, she does speak a halting version of your tongue.";
	text3 = "She points at herself. _I Poila-Tel-Drayssa. I follow the dragon. Dragon says I talk to you. I do. Do not like others, but I talk._";
	text5 = "Poila-Tel-Drayssa stands perfectly still, staring at you with her cold, unreadable eyes. She waits for you to talk. She won't speak unless prompted.";
	action = INTRO;

begintalknode 191;
	state = 190;
	nextstate = 191;
	condition = 1;
	question = "How did you come to be here?";
	text1 = "_I travel here. With Kian-Ihrno, to what is Tenevra. I am separated. Losted. Found by Drayssas. Brought here. Feel dragon glory. I now follow him. We built new empire!_";
	
begintalknode 192;
	state = 191;
	nextstate = -1;
	condition = 1;
	question = "Why did you all come here?";
	text1 = "She shakes her head. _I am not sure. I do not know. Seems so long ago now. I have new purpose._";

begintalknode 193;
	state = 191;
	nextstate = -1;
	condition = gf(63,21) < 2;
	question = "What do you think of Tenevra?";
	text1 = "_Do not be fooled. It is colony. It is invasion. They disrupt peace Melanchion brings. They are not wise._";
	
begintalknode 194;
	state = 191;
	nextstate = -1;
	condition = gf(63,21) > 1;
	question = "Tenevra has been destroyed.";
	text1 = "She nods. _Melanchion not fooled. It was colony. It was invasion. They disrupted peace Melanchion brings, and they pay._";
	
begintalknode 195;
	state = 190;
	nextstate = 192;
	condition = 1;
	question = "Why are you down here?";
	text1 = "_I want alone. Only go up for food and to chant._";
	text2 = "";
	
begintalknode 196;
	state = 192;
	nextstate = -1;
	condition = 1;
	question = "To chant?";
	text1 = "_To kneel to Melanchion. To feel dragon glory. Is honor and reward for Drayssa._";
	
begintalknode 197;
	state = 190;
	nextstate = 193;
	condition = 1;
	question = "What exactly do you do for Melanchion?";
	text1 = "She looks around at the crystals in her chamber. _I study crystal magic. Bring forth power of crystals. Give small vahnatai magic to power of dragon._";
	text2 = "_Would do more. Know things. No secrets. Things to give Melanchion. If I could get._";
	code =
		if (gf(59,13) > 1)
			rs(2);
	break;
	
begintalknode 198;
	state = 193;
	nextstate = -1;
	condition = 1;
	question = "What will the vahnatai think of you sharing their secrets with the dragon?";
	text1 = "_Is not important. Melanchion has better way. I am his now. Being at dragon is like feeling power of crystal soul. Better! Melanchion lives!_";
	
begintalknode 199;
	state = 193;
	nextstate = -1;
	condition = gf(59,13) < 2;
	question = "And what would you get for Melanchion?";
	text1 = "_The vahnatai send thing. Thing to humans. Before we come. Send a ... Mirror. Word is mirror. Send to Castle. Castle? Humans call it Castle._";
	text2 = "_Want it. Want bring it to Melanchion. Can use. Talk. Spy. Bring, and I pay._";
	code = 
		set_flag(59,13,1);
		toggle_quest(120,1);
	break;	
	
begintalknode 200;
	state = 190;
	nextstate = -1;
	condition = gf(59,13) == 1 && has_spec_item(20);
	question = "I found the mirror you wanted. (Give it to her.)";
	text1 = "She eagerly takes the mirror. _Yes. Want. Good. Melanchion will like. I spend much time in presence. You help. I give reward. Not crystal. All crystal for dragon. I give other power. To fight for Melanchion._";
	text2 = "The vahnatai brings you a wand. _This isss good. Will aid you. Yes! And I open a gate for you. Have something that helps you. Dragon is to be pleased!_";
	code = 
		set_flag(59,13,2);
		toggle_quest(120,3);
		award_party_xp(400,35);
		set_spec_item(20,-1);
		sf(59,28,1);
		reward_give(246);
	break;		
	
begintalknode 201;
	state = 190;
	nextstate = -1;
	condition = gf(59,13) == 1 && has_spec_item(20);
	question = "I have the mirror you want, but you can't have it.";
	text1 = "Poila finally shows an emotion. Rage. _I want! I want to take! To give! But dragon says I no hurt. Go. No taunt. Go!_";
	action = END_TALK;
	

	// 210 Vassch-Drayssa

begintalknode 210;
	state = -1;
	nextstate = 210;
	condition = 1;
	question = "Name";
	text1 = "Melanchion has a wide variety of servants, all working tirelessly to build their little nation. Or maybe an empire. It's too early to tell. But, of course, the dragon made sure to get an alchemist.";
	text2 = "This old slithzerikai walks among his bubbling pots. Sometimes he stirs them. Sometimes he tastes the goo. He frequently makes notes in his research journal. Then he sees you.";
	text3 = "His gaze is, even for a slith, glassy and blank. He says, _Ahssss. I know who you are. Not of usss, but to help usss. I am Vassch-Drayssa. Alchemist for the mighty dragon. I hope you have come to help. Or trade._";
	text5 = "Vassch-Drayssa continues to tend to his mixtures and concoctions. _Ahssss. Here to help? To trade? I follow the wordsss of the dragon._";
	action = INTRO;

begintalknode 211;
	state = 210;
	nextstate = -1;
	condition = 1;
	question = "How did you come to be here?";
	text1 = "_Sssss. A good question. A long tale. I ... I ..._ He looks at one of his pots, which is filling the air with foul, dizzying gases.";
	text2 = "_I can't remember. Thisss isss good. Now all isss the dragon._";
	
begintalknode 212;
	state = 210;
	nextstate = 211;
	condition = 1;
	question = "What do you do for Melanchion?";
	text1 = "_Ahsss. I make potionsss. A few potionsss. I do research. Raise plantsss. Test new brewsss, to bring strength to the followersss of Melanchion._";
	text2 = "_Isss good work, and I do much, but isss hard. Few people here, and none can be spared to help me test._";

begintalknode 213;
	state = 211;
	nextstate = -1;
	condition = 1;
	question = "What sort of plants do you raise?";
	text1 = "_Mushroomsss. Some Blighted, some not. Some toadstoolsss, only a little poisonousss. I try to change them, to make something we can eat, or our livestock can eat._";
	text2 = "_Isss hard, but it will please the dragon when I succeed._";
	
begintalknode 214;
	state = 211;
	nextstate = 212;
	condition = gf(59,11) < 2;
	question = "What needs testing?";
	text1 = "He suddenly looks very interested. _You are interested in testing? I can give you a brew to test. Very simple. Just drink. Say what happensss. That isss all. Would you help me?_";
	
begintalknode 215;
	state = 212;
	nextstate = 210;
	condition = gf(59,11) == 0;
	question = "That sounds dangerous. I'm not interested.";
	text1 = "_What? You do not drink strange, untested potionsss? What has happened to adventurer spirit? But I will not force you._";
	
begintalknode 216;
	state = 212;
	nextstate = -1;
	condition = gf(59,11) < 2;
	question = "I will drink your potion.";
	text1 = "_I am so happy! I would not anger dragon by putting helper at risk. Yesss. You will be fine._";
	text2 = "_Go downstairs. Drink from basin. Isss potion for strong spirit. Bringsss cold and calm. All fear is gone, only icy certainty. Isss a good thing._";
	text3 = "He thinks it over. _Isss new. Strong. Might make you a little ill. If it doesss, just go to north. Isss another basin. Will help revive you if you are queasy. Am sure you will not need it._";
	code = 
		set_flag(59,11,1);
		toggle_quest(121,1);
	break;
	
begintalknode 217;
	state = 211;
	nextstate = -1;
	condition = gf(59,11) > 1;
	question = "Anything else need testing?";
	text1 = "_No! Ahhhh ... If the dragon findsss out what I did ... Do not say. No more testsss for me. Not unlessss ... Well, I will think about it._";
	
begintalknode 218;
	state = 210;
	nextstate = -1;
	condition = gf(59,11) == 1 && gf(59,26) > 0;
	question = "I drank from your basin. The results were not ... positive.";
	text1 = "You describe the results of the experiment to the slith. He is shocked and horrified. _You mean I almost ... The helper of the dragon, I ... Oh. no. Please do not tell Melanchion! He will be so angry with me!_";
	text2 = "_I am sorry. I am glad you did not die. I will open the gate and let you read a book of knowledge. Thisss will help you._";
	code = 
		set_flag(59,11,2);
		toggle_quest(121,3);
		award_party_xp(400,35);
		sf(59,25,1);
	break;		
	
begintalknode 219;
	state = 210;
	nextstate = 214;
	condition = 1;
	question = "I can trade with you?";
	text1 = "_Yesss. I am alwaysss buying suppliesss to help in my work. I can sell you potionsss too. I please the dragon by helping you!_";
	
begintalknode 220;
	state = 214;
	nextstate = -1;
	condition = 1;
	question = "I would like to buy potions.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Vassch-Drayssa",
		  "Vassch-Drayssa makes potions for the warriors of Melanchion. He can also sell some of them to you.",
		  79,3,0);	
	break;
	
begintalknode 221;
	state = 214;
	nextstate = -1;
	condition = 1;
	question = "I have something I would like to sell.";
	text1 = "You conclude your business.";	
	code = 
		begin_sell_mode();
	break;

begintalknode 222;
	state = 214;
	nextstate = -1;
	condition = 1;
	question = "Can you make custom potions for me?";
	text1 = "_Ahssss ... I am sorry. Too busy. Too busy._";
	
begintalknode 223;
	state = 214;
	nextstate = 210;
	condition = 1;
	question = "I don't need anything else.";
	text1 = "_All right._";

	
	
//
////

begintalknode 299;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "It was very unwise to offend the dragon Melanchion. He is calmer than most of his kind, but he has his pride. When you break his laws, he is forced to hunt you down.";
	text2 = "You escape, but you are now unable to get him to help repair the Great Portal. This loss dooms Avernum (and you) to a miserable, hungry fate.";
	code =
		erase_char(30000);
	break;