// TOWN DIALOGUE SCRIPT
//    Town 40: Athron's Lair

begintalkscript;

variables;

short i,j,k,r1,choice;

// Athron

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 1;
	question = "Athron";
	text1 = "You finally stand before Athron. She towers above you, three times your height. She looks down upon you with distrust, distaste and, you are surprised to note, more than a little nervousness.";
	text2 = "She takes a deep breath, trying to calm herself. When she exhales, little flames come out. _I am Athron, queen of serpents. You are now here, disrupting my precious solitude. What do you want?_";
	text5 = "Athron watches you impatiently. She also seems, strangely, somewhat nervous. She really doesn't like having you here. You wonder what could make such a mighty creature afraid.";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_You seem nervous. You have nothing to fear from me._";
	text1 = "She ponders this for a moment. _So you say. I allow few to see me now that I am looking after my brood. I will not put my offspring at risk._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_Your brood? You have children?_";
	text1 = "She seems reluctant to talk about it, but the pride of a new parent overcomes her. _Soon, I will. For the first time in over a century, new dragonlings are about to hatch._";

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_Who had the last brood?_";
	text1 = "_My mother. The five dragons of these caverns were the last brood to be hatched anywhere near here, well over a century ago. My siblings._";
	code =
		sf(40,26,1);
	break;
	
begintalknode;
	state = 1;
	nextstate = 9;
	condition = gf(40,26) > 0;
	question = "_Who are your siblings?_";
	text1 = "_They are four. Senile Motrax. Defeated Sulfras. Dead Pyrog. Servile Khoth._";

begintalknode;
	state = 9;
	nextstate = -1;
	question = "_Why do you call Motrax senile?_";
	text1 = "_He is imprisoned in his weak mind. His body was also fast wearing out, even before the Empire attacked him. I pity him. Hopefully, he will soon seek an honorable death._";

begintalknode;
	state = 9;
	nextstate = -1;
	question = "_Who defeated Sulfras?_";
	text1 = "_Sulfras is the mightiest of us five, now held down and ordered about by Empire wizards. When she gains freedom, vengeance will be mighty._";
	text3 = "_Sulfras is the mightiest of us five, but then the Empire imprisoned her. The dishonor of being rescued by mere humans may overcome her. And it should._";
	action = DEP_ON_SDF 65 11 0;

begintalknode;
	state = 9;
	nextstate = -1;
	question = "_Pyrog was slain?_";
	text1 = "_Pyrog was dark and cruel. And stupid. She was slain a few years ago, by a band of powerful and cunning adventurers. She was arrogant and careless. She had it coming._";

begintalknode;
	state = 9;
	nextstate = 10;
	question = "_Servile Khoth? Who does he serve?_";
	text1 = "A rumbling voice emerges from her throat. _Dishonorable Khoth! He now serves Garzahd! He has turned traitor, assisting the Empire in return for its mercy! Curse his name!_";

begintalknode;
	state = 10;
	nextstate = 1;
	question = "_Who's Garzahd?_";
	text1 = "_Commander of the Empire forces down here. A mighty mage. Hopefully someone will kill him soon._";
	text3 = "_Commander of the Empire forces down here. A mighty mage. I hear that you have slain him. That was a favor to dragonkind. Well done._";
	action = DEP_ON_SDF 16 11 0;


begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Congratulations on your eggs._";
	text1 = "Her voice swells with pride _The mighty spawn of me and my mate, who rests on the other side of the world. A dark doom awaits any thief who would interfere with them._";

begintalknode;
	state = 4;
	nextstate = -1;
	question = "_A mate? Tell us about him._";
	text1 = "She rears up angrily. _I dare not! He, like myself, hides from the accursed Empire. It hunts and butchers us without mercy. If I tell you of my mate, he may then be found. I cannot allow it._";

begintalknode;
	state = 4;
	nextstate = -1;
	question = "_I'm sure that no thief would dare take your eggs._";
	text1 = "Her voice trembles with potential violence. _There are many who would use my eggs for sinister purposes. The Empire, for example, whose thieves roam these caves. I promise you, this will not happen._";
	text2 = "_I warn you. Enter my inner sanctum, and I will burn you down._";
	
begintalknode;
	state = 1;
	nextstate = 5;
	question = "_I seek information._";
	text1 = "_You went to great effort to see me, mortal. You passed mighty trials to gain the knowledge I possess. In particular, I have made much study of the Empire's actions in these caverns. Their passes. Their portal. Of what do you wish to know?_";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_Do you know anything about the Empire's pass system?_";
	text1 = "_Yes. I study the Empire much. I have no choice. The Empire hunts my kind constantly. The Empire gives the passes to favored soldiers, to gain access to protected areas. Of this I know no more._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_Have you heard of the portal the Empire is building?_";
	text1 = "_The Empire is building a portal to bring soldiers down here en masse. If it is completed, you humans of Avernum are doomed. I know no more._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_What do you think of Avernum?_";
	text1 = "_Tolerable. Avernum is annoying, but the Empire is murderous._";

begintalknode;
	state = 5;
	nextstate = -1;
	question = "_Are you familiar with the vahnatai?_";
	text1 = "_I learned of them soon after Avernum did. Once they made their presence known, I sent my spirit wandering to the lower caves. They are a dignified and wise people, who know how to respect a being's privacy._";

begintalknode;
	state = 5;
	nextstate = 6;
	question = "_Do you know anything about the missing Crystal Souls?_";
	text1 = "Athron cocks her head and thinks. _Yes, one time when my spirit was traveling, it detected another spirit in distress. I went to it, but could not get close. It had been stolen from its home, and was definitely vahnatai. I know its hiding place._";

begintalknode;
	state = 6;
	nextstate = 7;
	question = "_Where is the Crystal Soul hidden?_";
	text1 = "_I asked it to tell me where it is. It did. It was in the Empire fort called Angierach. I can tell you little more than that._ (You take note of this.)";
	action = SET_SDF 40 16 1;
	
begintalknode;
	state = 7;
	nextstate = -1;
	question = "_Do you know more about Angierach than its name?_";
	text1 = "_I can tell you little more. It is a place of dark and grim experiments, and great magic and evil. I pity any spirit imprisoned there. Erika might be able to help you enter there. I won't._";



begintalknode;
	state = 1;
	nextstate = 12;
	condition = gf(40,16) > 0;
	question = "_Can you share any more of your great knowledge with us?_";
	text1 = "Athron snorts. _Do not take advantage of my hospitality. You are lucky I did not merely slay you when you entered._ She thinks for a moment, and then relents. _I think that I left a human tome with some magical notes about my caves somewhere._";
	text2 = "_If you find it, you can read it, but do not try to waste my time by getting me to educate you. Your lives are too short to make my efforts on your behalf worthwhile._";

begintalknode;
	state = 12;
	nextstate = -1;
	question = "_How long do dragons live?_";
	text1 = "_Centuries. I will be able to tell you what our natural lifespan is, as soon as a dragon expires of old age. It has not happened yet._";

