// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(115,3) == 0;
	question = "special";
	text1 = "You step across the bridge and into the village of Gnass. This has, for many years, been the largest settlement of friendly slithzerikai in Avernum. The hostile tribes have, at times, been larger.";
	text2 = "The paths of Gnass are lined with statues, some dating back to the earliest days of Avernum, of honored slithzerikai of days past. Sliths greatly revere their ancestors and observe their memories by memorializing them in stone.";
	text3 = "As you enter the village, all of the slithzerikai, from the youngest to the oldest, watch you nervously. Sadly, in dark times, you can always count on some Avernites blaming the lizard people for their problems.";
	text4 = "In this time of famine and war, the problem is unusually bad. Especially considering that the war is against savage slithzerikai.";
	action = SET_SDF 115 3 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(115,4) == 0;
	question = "special";
	text1 = "When you step onto this small island, everything suddenly becomes very quiet. Even the sound of the river flowing by becomes muted. Time seems to pass a little slower here.";
	text2 = "The path forks just ahead. One fork leads to statues of chieftains of Gnass from decades past. There is a well-used prayer mat in front of each one, where the sliths can come to pray for guidance.";
	text3 = "The other fork leads to a small shrine. You can see a lone figure kneeling within.";
	action = SET_SDF 115 4 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(115,5) == 0;
	question = "special";
	text1 = "This is the village's breeding pool. Infant slithzerikai, after hatching, spend their time in the water. They only emerge onto land after a few years of life. Dozens of the tiny, fanged creatures frolic in the fresh water.";
	text2 = "The nearby slithzerikai instantly become very alert when you enter this building. You move carefully, making sure not to step on anything precious.";
	action = SET_SDF 115 5 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  LIVE MEAT STORAGE";
	text3 = "  Dangerous! Keep out!";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  GNASS";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  GNASS SMITHY";
	text3 = "  Fine Crafts. All Races Welcome.";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  BREEDING POOLS";
	text3 = "  Please watch your step!";
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Chieftain's Hut";
	
begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";


// Gless-Thsss

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "The chieftain of Gnass sits cross-legged before you, staring deeply into a bonfire. The rug he sits on is completely threadbare, more patches than cloth. Chieftains have been resting on it since the first days of Gnass.";
	text2 = "The chief himself is old and literally withered. His skin is more gray than green, dry, and covered with dozens of long, shallow scratches. He is exhausted. Only his powerful will keeps him sitting upright and facing visitors.";
	text3 = "He motions for you to sit. _I am Gless-Thsss,_ he says in a quiet, raspy voice. _Soldiers of Avernum are always welcome here. Our kind never has anything to hide. How can I help you?_";
	text5 = "Gless-Thsss sits upright, watching you with milky eyes. Even for a slith, he seldom blinks. You sometimes have to look away from his constant, unbroken gaze. _How else may Gnass aid you, soldier of Avernum?_";
	text6 = "The only sign of his great inner turmoil is that he occasionally runs a claw down his forearm or thigh, leaving a shallow scratch. It is a nervous habit. You doubt he notices that he is doing it.";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = gf(115,7) < 2 || gf(161,2) == 0;
	question = "Tell me about Gnass.";
	text1 = "_We are a settlement of slithzerikai, honest, loyal peaceful creatures, loyal to Avernum. We have been allies to the crown since the earliest days. And now, in these days of the Slith Horde, we are loyal as ever._";
	text2 = "_I am chieftain here, and I have been for many long years. Though we are often accused of crimes, we have been ever open and friendly._";
	text3 = "As he speaks, he scratches his shin with a single claw. It leaves a long, thin scratch. It seems like a nervous habit and a sign of how upset he is, despite his calm speech.";
	
begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "What are you accused of?";
	text1 = "_What are we not? Some say we made the Blight, as if we would want to starve ourselves as well. Some say we secretly support the Slith Horde, as if we could have anything in common with those mad, vicious creatures._";
	text2 = "You notice that his speech has developed an almost human quality. It lacks the sibilance of the other slithzerikai. He probably learned to speak this way to seem more trustworthy to outsiders.";
	text3 = "_But we will outlast, and the humans will see that we are their allies. Once again._";

begintalknode 13;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "What do you think of the Slith Horde?";
	text1 = "He chuckles, trying to seem casual, as he digs his claws lightly into his knees. _You ask us that. They all ask us that._";
	text2 = "_If the Slith Horde comes to the Great Cave, they will kill us, as surely as they will kill all the humans. No, more surely. They hate us that much. They see us as traitors._";

begintalknode 14;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "How long have you been leader here?";
	text1 = "_Twenty-five long years. I am aging. It is time soon ... Time for me to step down. But ..._ He shakes his head.";

begintalknode 15;
	state = 12;
	nextstate = -1;
	condition = gf(115,1) == 0;
	question = "But what?";
	text1 = "_I ... It is not time to discuss it now. Things are ... in flux. I cannot say more._";

begintalknode 16;
	state = 12;
	nextstate = -1;
	condition = gf(115,1) > 0;
	question = "But what?";
	text1 = "_I had thought the slithzerikai would choose my son to follow me. But he is ... I no longer have a suitable heir, one all will trust, to lead Gnass._";
	text2 = "_A new leader must be chosen. Groomed. Trained. Until then, in this hut I sit. I ..._ He shakes his head. _Leave me. I will face my burden alone, for a time._ He closes his eyes. And scratches his arm.";
	action = END_TALK;
	
begintalknode 17;
	state = 10;
	nextstate = -1;
	condition = gf(177,1) == 0 && gf(170,1) < 8;
	question = "Do you require any assistance from me?";
	text1 = "_What? Why? What have you heard?_ He stares intently at you, looking for something. Finally, he says, _No. You are not here under orders, are you? I require no help from you._";
	text2 = "_You should return to your superior officer, soldier, and I will return to my duties. Leave me._ Looks like you are dismissed.";
	action = END_TALK;

begintalknode 18;
	state = 10;
	nextstate = 13;
	condition = (gf(177,1) == 1 || gf(170,1) >= 8) && gf(115,7) < 2;
	question = "I am here to help you.";
	text1 = "_You ... You are? My requests to the Castle, they have been received? I am glad._";
	text2 = "_I require aid. Desperately. There has been a ... A disaster. My son, Treviass, he has left. Fled Gnass. And joined with other ... He is flirting with joining cultists. And the horde._";
	text3 = "_He must be found and made to see the madness of his ways. Rescued. If outsiders learn the secret of what my foolish, foolish son has done, it will be a disaster. It will risk us all._";
	code =
		if (gf(115,7) > 0)
			rs(1);
		set_flag(115,7,1);
		toggle_quest(72,1);
	break;
	
begintalknode 19;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "Why did Treviass leave?";
	text1 = "_This is a quiet thing. Nobody should be told. The Slith Horde sent an agent here. I did not know. Under cover of night, that creature came, several times, and tried to lure the disloyal away with tales of a mighty slith Empire._";
	text2 = "_My son was always ... always ... He has always wanted a loftier place for our kind. Not to exist with the other races, but to ... He has had ambitions. I was unable to convince him of the folly of those dreams._";
	
begintalknode 20;
	state = 13;
	nextstate = 18;
	condition = 1;
	question = "Where did Treviass go?";
	text1 = "_He fled in the night, taking only his spear and a single satchel of possessions with him. In one thing, we were fortunate. He left a note behind. Forgot it, I suppose._";
	text2 = "_The note told him to go to the honeycomb of tunnels southwest of Almaria. And that a concealed door was past 'The crumbling statue.' I don't know more than that._";
	code =
		mark_quest_dest(481,758,0,72);
	break;
	
begintalknode 21;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Why must this be kept secret?";
	text1 = "_Because Gnass is already the subject of much distrust. Constant distrust. If certain people found out that the son of the chieftain was consorting with the Slith Horde ..._";
	text2 = "_We of Gnass have always shared a nightmare. It begins with a horde of angry humans with torches running across our bridges. It ends in nothingness. This must be prevented. Even if my son must ..._ He shakes his head.";

begintalknode 22;
	state = 13;
	nextstate = 15;
	condition = 1;
	question = "What do I need to do when I find Treviass?";
	text1 = "_I ..._ There is a long pause. This is difficult for him to say. He scratches the backs of his hands nervously as he speaks. _I think that the cultists of the enemy horde clouded his mind._";
	text2 = "_If you can, convince him to return. If he comes back now, peacefully, all will be forgiven. A burst of youthful foolishness._";

begintalknode 23;
	state = 14;
	nextstate = 13;
	condition = 1;
	question = "Do you know who came here?";
	text1 = "_One of my people who met the creature and did not leave said he claimed to be Khrez-Yss. The Shadow. One of the three warlords of the Slith Horde. I do not believe this. But I suppose it is possible._";

begintalknode 24;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "And if he does not return peacefully?";
	text1 = "_Then ... Then ... He is a traitor. And he must be ... He must suffer the fate he has chosen._";
	text2 = "_That is all I have to tell you. Find him. Find my son. As long as he is with the forces of the Slith Horde, those vile creatures, as long as he is with them, alive or dead, there is no rest for me. Now go. And leave me._";
	action = END_TALK;

begintalknode 25;
	state = 10;
	nextstate = -1;
	condition = gf(115,7) == 1 && gf(161,2) > 0;
	question = "I have sad news. Treviass is dead.";
	text1 = "You tell Gless-Thsss the tale. With an amazing display of self- control, he does not move. He does not speak. He does not howl, even though the effort of restraint causes his whole body to shake.";
	text2 = "When he finally speaks, it is as if it requires special concentration and effort to craft each word. _It is done. Gnass is safe. Justice. It must be justice._";
	text3 = "_Report to the Castle. Say what has happened. I require nothing more of you. Go._ He waves you away. He desperately wants to be alone, so that he can begin to mourn properly.";
	code = 
		set_flag(115,7,2);
		sf(115,1,1);
		toggle_quest(72,3);
		award_party_xp(300,15);
	break;		

begintalknode 26;
	state = 10;
	nextstate = -1;
	condition = gf(115,7) == 1 && gf(161,3) > 0;
	question = "The Slith cultists have been destroyed. Treviass is free.";
	text1 = "Gless-Thsss nods. _Happily, I am aware. My son arrived ahead of you. Although ... There is a wound in my child that will never be healed._";
	text2 = "_There will never be peace within him. All I can do is keep him from causing more harm. He will never be chieftain._";
	text3 = "_But he is back, and he lives. You deserve a gift from us, a gift of honor._ He barks a command. A slith warrior brings you a beautiful slithzerikai spear.";
	text4 = "_Again, I thank you. Return to the Castle. Tell them that your work is done._";
	code = 
		set_flag(115,7,2);
		sf(115,1,1);
		toggle_quest(72,3);
		award_party_xp(400,15);
		reward_give(397);
	break;		
	
begintalknode 27;
	state = 10;
	nextstate = -1;
	condition = gf(115,7) > 1 && gf(161,2) > 0;
	question = "Tell me about Gnass.";
	text1 = "_After what has happened, happened to my son, I cannot talk. I may never be able to talk properly again. Leave me._";
	action = END_TALK;

begintalknode 28;
	state = 10;
	nextstate = -1;
	condition = gf(115,7) < 2 || gf(161,2) == 0;
	question = "Can I get supplies here?";
	text1 = "_We have little food to trade to outsiders. We generate only enough fruit, fish, and meat to feed ourselves. And then, only barely._";
	text2 = "_However, if Ethssyn is still here, he might be willing to sell you his metalwork._";

begintalknode 29;
	state = 18;
	nextstate = 13;
	condition = 1;
	question = "And the note was left behind?";
	text1 = "_Yes. It was odd. Even suspicious. Although my son has never had a ... a devious or complex mind._";
	text2 = "_Though, now that I think of it, there is one more thing I should mention. The note was signed, 'Kahdroth Benttail.' Probably a fake name, but worth mentioning._";

begintalknode 30;
	state = 10;
	nextstate = -1;
	condition = gf(115,6) == 1;
	question = "I found a big, nasty lizard downstairs. I killed it for you.";
	text1 = "The chieftain sighs. _That was our live meat storage. Now we must work to preserve all the meat to keep it from spoiling. I am sure you acted to defend yourself, but you did us no favors._";

begintalknode 31;
	state = 10;
	nextstate = -1;
	condition = gf(132,21) == 0 && has_spec_item(2);
	question = "I found a scroll. It seems to have slithzerikai script on it. I need it deciphered.";
	text1 = "Gless-Thsss examines it. _It does seem to be slith writing, but I do not recognize the alphabet. You should show it to Seleeass, the priestess. She is more learned in these matters than me._";

begintalknode 32;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "That is all I need to know.";
	text1 = "_Then leave me to my work. There is much to ponder, much to plan._ You leave him to his solitude, and his burden.";
	action = END_TALK;

// Aktitoss

begintalknode 35;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "Though this slithzerikai is clearly quite old, he is still in remarkable shape. Decades of wielding picks and hammers and helping to shift massive statues have left him the physique of a slith half his age.";
	text2 = "When you approach him, he is working on a statue. A huge, shapeless lump of rock lies before him. He is going at it with a pick, slowly and painstakingly whittling it into the crude approximation of his subject.";
	text3 = "The detail work, many hours of it, will then begin. When you get close, however, he happily takes a break. He drops the pick, takes a drink of water, and says, _Greetingsss, soldier of Avernum. I am Aktitoss. Crafter of Gnass, until I die._";
	text5 = "Aktitoss says, _Is there anything else you require, soldier? Otherwise, my laborsss will resume. In my time left, there is much to do._";
	action = INTRO;

begintalknode 36;
	state = 30;
	nextstate = 32;
	condition = 1;
	question = "What are you working on?";
	text1 = "_Thisss? It isss a statue of our chieftain. Of Gless-Thsss. All of our chieftainsss, they are remembered on the shrine island._";
	text2 = "_So many statuesss to make, so few yearsss remaining._ He looks sadly at all of the half-finished works around him, eager to resume his labors.";

begintalknode 37;
	state = 30;
	nextstate = 33;
	condition = 1;
	question = "Tell me about your craft.";
	text1 = "_It is of great importance to our kind. The statuesss of a tribe tell itsss story. When a tribe fallsss in war, if the victorsss want to have total victory, to wipe itsss foesss forever from the world, they destroy the statuesss._";
	text2 = "_To me it fallsss to make sure what should be remembered is remembered._";

begintalknode 38;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "You'll spend the rest of your life here?";
	text1 = "_Yesss. Othersss would flee. To the portal. To other townsss. To the Horde. But thisss is where my life'sss work isss. Here, I will stay._";

begintalknode 39;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Some flee to the Horde?";
	text1 = "_A few ... Some of usss believe the liesss of the Slith Horde. They betrayed our kind. I would not speak of them._";

begintalknode 40;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "And what if the Slith Horde comes to the Great Cave?";
	text1 = "_Then I will die at the feet of my statuesss. Those creaturesss will then see what it means to be a true slith._";

begintalknode 41;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "You are making a statue of Gless-Thsss while he is still alive?";
	text1 = "_Of course. How else will I get the perfect likeness? He doesss not mind. He knowsss, when he diesss, a statue of him will remain. It is a true honor._";

begintalknode 42;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Who are these other statues of?";
	text1 = "_Of learned sages and of warriorsss. Of Pathass, our beloved priest. And one of Sss-Thsss, the savage warlord, as a warning to those who would follow the waysss of war._";
	text2 = "_We stoneworkersss keep the history of our people. If we do not remember the lost, they might be forgotten._";

begintalknode 43;
	state = 33;
	nextstate = -1;
	condition = 1;
	question = "Who decides who should be immortalized?";
	text1 = "_I do. But I listen to others. Only a foolish stoneworker ignores the will of the tribe._";

begintalknode 44;
	state = 33;
	nextstate = 34;
	condition = 1;
	question = "Do you only make statues of those you honor?";
	text1 = "_No. I also make statuesss of those we should remember, because they are important in our history or because we can learn from remembering them._";
	text2 = "_One day, when the Slith Horde has been destroyed, I will make statuesss of their leadersss._";

begintalknode 45;
	state = 34;
	nextstate = -1;
	condition = 1;
	question = "Who are the leaders of the horde?";
	text1 = "_Khrez-Yss, the Shadow. Their spy and assassin. Ghavassa-Oss, the Impaler. Their battle chieftain. And Ess-Kalyn, the Manburner. Their wizard. Those three warlords are the twisted leaders of the Horde._";
	text2 = "_For their evil, for the destruction they have caused, I will make sure they are remembered._";

begintalknode 46;
	state = 34;
	nextstate = -1;
	condition = gf(170,8) > 0;
	question = "I took care of that for you. You can start those statues now.";
	text1 = "_Can I? I am pleased. You have made it possible for me to begin a  great work. Those twisted creatures must be remembered._";
	
// Pelin-Ath

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "This young slith is in charge of watching the young hatchlings. Caring for toddlers is already difficult work. When they have razor-sharp fangs and a tendency to go for your legs, it is even more difficult.";
	text2 = "Still, she is able to take a moment's break from herding the little carnivores back into the pool to speak with you. _Welcome, soldier. Gless-Thsss told me to welcome you if you arrived. I am Pelin-Ath, the Broodmother._";
	text3 = "A small slith, only a foot tall, tries to sink its teeth into her foot. A single, deft motion sends the hungry little beast back into the pool.";
	text5 = "Pelin-Ath speaks with you while she looks after the slith young. She hands out bits of meat, caresses, and harsh discipline in equal measures. The young sliths almost never join forces and attempt to swarm her.";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = 51;
	condition = 1;
	question = "That looks like difficult work.";
	text1 = "_Ahssss ... Once, I could lie. I have done thisss enough yearsss to be honest. We love our young, but they ... Aiiii!_ A young slith snuck up on her and attacked her calf. She makes it go away.";
	text2 = "_But we were all so young once. We owe it to them to give them the care we received._";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "The other sliths seemed nervous when I entered this place.";
	text1 = "_Hssss ... Can you blame them? The Breeding Pool is the heart and the future of any tribe._";
	
begintalknode 53;
	state = 50;
	nextstate = 52;
	condition = gf(115,8) < 2;
	question = "Have you been able to get enough food for your young?";
	text1 = "_Ahhhh ... That is a difficult question. It is why Gless-Thsss said I should welcome any envoysss from Avernum. I need help. We need help. If you can spare it._";
	
begintalknode 54;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "Do they ever actually hurt you?";
	text1 = "_You mean, enough to need a visit to the priestessss? No ... We slithsss have tough, tough skin._";
	
begintalknode 55;
	state = 51;
	nextstate = -1;
	condition = 1;
	question = "I see your young, but where are your eggs?";
	text1 = "She seems nervous. _They are hidden. Near here, but well. In these unsettled timesss, Gless-Thsss thought it was for the best. To keep them safe._";
	
begintalknode 56;
	state = 52;
	nextstate = -1;
	condition = gf(115,8) == 0;
	question = "I'm afraid that I'm very busy.";
	text1 = "_Hsssss ... I see. Well, so am I. I must return to the young. Excuse me._";
	action = END_TALK;
	
begintalknode 57;
	state = 52;
	nextstate = 53;
	condition = gf(115,8) < 2;
	question = "I will help you if I can.";
	text1 = "_I am glad. Ahssss ... By order of the Castle, we are supposed to receive constant shipmentsss of meat. The young need it. We are supposed to get them from Dharmon. But the quartermaster there, Puvner, he hasss not sent them._";
	text2 = "_You are a warrior. They will listen to you. Go there and find Puvner and get our shipmentsss again._";
	code = 
		set_flag(115,8,1);
		toggle_quest(73,1);
	break;
	
begintalknode 58;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "You don't have enough meat here?";
	text1 = "_No. We wish we did. We have done all we can to catch enough fish and raise enough lizardsss, but there isss not enough. And some of Avernum, they do not want to give up meat, even to save children. Our children._";

begintalknode 59;
	state = 53;
	nextstate = -1;
	condition = 1;
	question = "Have you spoken to Puvner?";
	text1 = "_We have sent slithsss to Dharmon to see him, but he would not see them. And Dharmon, it wasss not a friendly place to be._";
	text2 = "_But you ... You. they might see._";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = gf(115,8) == 1 && gf(128,2) == 1;
	question = "I spoke to Puvner. You will get your next shipment soon.";
	text1 = "_Ahssss ... I am grateful to you. Though, I think, I will believe the meat comesss when I see the meat. Still, we give you a token for your assistance._";
	text2 = "She gets a cloak from a peg on the wall and hands it to you. _A good, protective garment. Gless-Thsss would be unhappy if you were not paid for your aid._";
	code = 
		set_flag(115,8,2);
		toggle_quest(73,3);
		award_party_xp(400,10);
		reward_give(14);
	break;	
	
begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = gf(115,8) == 1 && gf(128,2) == 2;
	question = "I spoke to Puvner. They don't have the meat, but they'll send it as soon as they get it.";
	text1 = "She looks at you suspiciously. _So we hear. So they tell usss when we go to see them, before they say we can't see Puvner. You are a soldier, so I would not say I doubt you, but you will not be the last messenger we send._";
	text2 = "_I thank you for ... trying. Now I must return to caring for our young. Our hungry young. Excuse me._";
	action = END_TALK;
	code = 
		set_flag(115,8,2);
		toggle_quest(73,3);
		award_party_xp(250,10);
	break;	

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = gf(115,8) == 2;
	question = "How are your young doing?";
	text1 = "_They look spirited, but, if you look closer, you will see they are pale. A little weak, but getting weaker. We are peaceful creatures, we of Gnass, but we will not tolerate seeing our young hungry._";
	text2 = "_Still, at least, you have given us hope. The meat has not arrived, but we will be patient. For now._";
	text3 = "_Now, excuse me. I must return to work._";
	action = END_TALK;
	code =
		if (gf(128,2) != 1)
			rs(2);
	break;


// Ethssyn

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = "There is a single slithzerikai smith at this forge. He is working like a demon.";
	text2 = "Sweat pours down his arms and chest as he puts the final touches on one of the traditional two-tined spears, which will join the bristling arsenal on the wall.";
	text3 = "When he puts the final touch on the points of a spear and cools it off in the pool, he turns to you. _Ahssss ... Greetingsss. I am Ethssyn. The smith of Gnass, until I depart._";
	text5 = "Ethsssyn drinks water and mops his skin with a towel as he speaks with you. He is clearly eager to return to his work. _Yesss? What else would you like from me? I have much to do before I go._";
	text6 = "You are impressed by the row of quality spears on the wall. There are a lot of them, and the slithzerikai are traditionally excellent blacksmiths."; 
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = 71;
	condition = 1;
	question = "That's quite a collection of weaponry.";
	text1 = "_Yesss. I am abandoning my village and going to the surface. Before I go, I have promised Gless-Thsss that I will provide all of the weapons they need to defend themselves against attackers. From the Horde or otherwise._";

begintalknode 72;
	state = 70;
	nextstate = 72;
	condition = 1;
	question = "You are leaving?";
	text1 = "_Hssss. I am. My token in the lottery hasss been picked. When my work is done here, I go to the Great Portal. I will go to Upper Avernum. Though I am scared to be so close to the Empire._";
	text3 = "_Hssss. I wasss. My token in the lottery wasss picked. When my work is done here and it is rebuilt, I go to the Great Portal. I will go to Upper Avernum. Though I am scared to be so close to the Empire._";
	action = DEP_ON_SDF 170 1 10;
	
begintalknode 73;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "Can I purchase some of your goods?";
	text1 = "You conclude your business.";	
	code = 
		if (gf(170,1) < 12)
		begin_shop_mode("Ethsssyn the Smith",
		  "Ethsssyn is a skilled smith, and his wares are of excellent quality. Since he is leaving soon, his prices are low. He wants to earn as much as he can before he leaves.",
		  19,2,0);	
		else begin_shop_mode("Ethsssyn the Smith",
		  "Ethsssyn is a skilled smith, and his wares are of excellent quality. Now that the portal has been destroyed, his prices are much higher.",
		  19,5,0);	
	break;


begintalknode 74;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "I have something I'd like to sell.";
	text1 = "_I see. I am no tinker, but there is one of our kind, my cousin, who trades in front of the Castle gates. A short walk away. You should talk to her._";

begintalknode 75;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "That is all I need.";
	text1 = "_Ahssss ... Then I bid you good day._ And he instantly returns to work.";
	action = END_TALK;
	
begintalknode 76;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "The Horde? You mean the Slith Horde?";
	text1 = "_Yesss. The barbarians hate usss more than they hate the humans. If they ever break through to the Great Cave, they will attack usss as soon as they can. When thisss happensss, we will collapse the bridges, and we will be ready._";

begintalknode 77;
	state = 71;
	nextstate = -1;
	condition = 1;
	question = "From otherwise? Who else might attack you?";
	text1 = "_I ..._ He looks south, toward the Great Cave. _Who knowsss who might hate usss slithsss enough to raid usss._ He adds darkly, _But, whoever does, we will be ready._";

begintalknode 78;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Tell me about the lottery.";
	text1 = "_It happensss in the large townsss. Mine was at the Castle. Those who wish to use the Great Portal can enter, once a year. A few are picked, and they get to use the portal within that year._";
	text2 = "_So many want to use the Portal that it takes great fortune to be picked in the lottery now._";
	text3 = "_They have promised that, when the Portal is rebuilt, those like me who succeeded at the lottery get to use it first._";
	code =
		if (gf(170,10) < 12)
			rs(3);
	break;
	
begintalknode 79;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Why are you afraid of the Empire?";
	text1 = "_Once, under the rule of Emperor Hawthorne, the Empire murdered my kind, along with the nephilim and all magical creaturesss._";
	text2 = "_Emperor Redmark says thisss will not happen. I am not sure. But it is better than starving._";

begintalknode 80;
	state = 72;
	nextstate = -1;
	condition = 1;
	question = "Why do you want to leave?";
	text1 = "He stares down at the floor. _I ... I wasss not brave enough. And I think there is not future, not anymore. If I will live a life and raise young, it must be on the surface. It isss a sad, hard truth._";
	text2 = "_Not all have faced it._";

	
// Seleeass

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "When you arrive at the temple, services are not currently in session. The young priestess sits before the altar, lost in meditation. She occasionally rises to tend to a brazier or read a scroll.";
	text2 = "Fortunately, she doesn't mind visitors in the shrine, though she does make sure the bottoms of your boots are clean. _I welcome you in peace, visitor._ Her speech is unaccented and lacks the slithzerikai sibilance.";
	text3 = "_I welcome you to this place of peace in these troubled times. This is a place of healing and learning. And, as we would help you, we may need assistance in return._";
	text5 = "Seleeass motions for you to spend more time sitting with her. She brews some tea and smiles calmly. _Why else would you speak with me? Comfort? Knowledge? We of Gnass wish to show that we offer only peace._";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = 92;
	condition = 1;
	question = "Tell me about your faith.";
	text1 = "_We slithzerikai revere the spirits of our ancestors, and the spirits that exist in all things, alive and dead._";
	text2 = "_We are peaceful creatures. Well, many of us are. Some have never turned from the old, barbarian ways. They are the savage ones, and they must be fought._";

begintalknode 92;
	state = 90;
	nextstate = 91;
	condition = 1;
	question = "This island is very peaceful.";
	text1 = "_Yes. It is important to have sanctuaries in time of war. Our young warriors often come here for one final blessing before they go to fight the Slith Horde._";
	
begintalknode 93;
	state = 90;
	nextstate = 94;
	condition = 1;
	question = "What can you teach me?";
	text1 = "_When I am not providing guidance, I spend my time in learning and reflection. I even frequently travel to Patrick's Tower for further study._";
	text2 = "_I can teach you about lore, or I can teach you useful rituals. Anything to be useful to those who defend Avernum._";

begintalknode 94;
	state = 90;
	nextstate = -1;
	condition = gf(115,7) == 0;
	question = "You mentioned that you need assistance?";
	text1 = "_Yes, I ... I have nothing to say now. But, should you ever have cause to aid our chieftain, come and speak with me. It will be to your benefit._";

begintalknode 95;
	state = 90;
	nextstate = 97;
	condition = gf(115,7) > 0 && gf(115,9) < 2;
	question = "You mentioned that you need assistance?";
	text1 = "_Yes. You are aiding our chieftain. You are hunting the cultists that lured away his son. When Treviass left, he took something. Something of mine. A set of scrolls. I want them back._";
	code = 
		set_flag(115,9,1);
		toggle_quest(74,1);
	break;

begintalknode 96;
	state = 91;
	nextstate = -1;
	condition = 1;
	question = "You send warriors to fight the horde?";
	text1 = "_Of course. We hate those rapacious barbarians as much as the rest of Avernum does. More, because they dishonor our kind._";
	text2 = "_Every generation, it falls to Gnass to again prove we are a loyal part of Avernum. Thus, our young go to fight on its behalf. And die._";

begintalknode 97;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "You revere all of your ancestors?";
	text1 = "_We do, good and bad. Those who are evil, we forgive in death, and we let them teach us what paths to avoid. That is why you will find so many statues of the cruel warlord Sss-Thsss, who had to be killed in the early days of Avernum._";

begintalknode 98;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "How long have you been priestess here?";
	text1 = "_Ten years, since my mentor, Pathass, died. He was wise. I have made sure that, one day, there will be a statue of him._";

begintalknode 99;
	state = 92;
	nextstate = -1;
	condition = 1;
	question = "So there are savage and peaceful slithzerikai?";
	text1 = "_This is not surprising, I think. Is not the same thing true of humanity?_";

begintalknode 100;
	state = 94;
	nextstate = -1;
	condition = 1;
	question = "I would like to learn lore.";
	text1 = "You conclude your training.";	
	code = 
		i = 5;
		if (gf(115,9) > 1)
			i = 2;
		begin_shop_mode("Seleeass",
		  "Seleeass offers to teach you some of the lore she has learned in her years of study. (You can only improve a given skill at a trainer three times.)",
		  20,i,0);	
	break;


begintalknode 101;
	state = 94;
	nextstate = -1;
	condition = 1;
	question = "I would like to learn magical rituals.";
	text1 = "You conclude your training.";	
	code = 
		i = 5;
		if (gf(115,9) > 1)
			i = 2;
		begin_shop_mode("Seleeass",
		  "Seleeass offers to teach you some of the rituals she has learned in her years of study.",
		  21,i,0);	
	break;

begintalknode 102;
	state = 94;
	nextstate = 95;
	condition = has_spec_item(2) && gf(132,21) == 0;
	question = "I found this scroll. It seems to have slith writing on it. (Show it to her.)";
	text1 = "She takes the scroll and examines it closely. _Yes. This is slith writing. An old style. A tribal style. Not something used by civilized ... Oh ... Oh, dear._";
	text2 = "She slowly deciphers it. _It is from the pen of Khrez-Yss. The Shadow. One of the three warlords of the Slith Horde. It is to a ... A goblin? A creature of that status writing a goblin? Peculiar._";

begintalknode 103;
	state = 94;
	nextstate = 90;
	condition = 1;
	question = "I don't need to learn anything else.";
	text1 = "_All right._";

begintalknode 104;
	state = 95;
	nextstate = 90;
	condition = 1;
	question = "What does it say?";
	text1 = "_It is instructions. In return for aid, for money and magical trinkets, the goblin would harass the people of the Great Cave. It shows that the Slith Horde has an influence even down here._";
	text2 = "_Though,_ she mutters, _we have already learned that. Much to our loss._ She doesn't elaborate.";
	text3 = "_You have done well bringing this to me. The Castle will want to know what you have learned._";
	code =
		sf(132,21,1);
	break;
	
begintalknode 105;
	state = 97;
	nextstate = -1;
	condition = 1;
	question = "Tell me more about Treviass.";
	text1 = "_He ... I hesitate to speak ill of one of our tribe. Especially the son of the chieftain. But ..._";
	text2 = "She shrugs. _You should know. He was never a wise child. Or patient. Or understanding that the true path of our people is one of coexistence with other races._";
	text3 = "_Gless-Thsss always had a blind spot with that boy. And now we all may pay for it._";

begintalknode 106;
	state = 97;
	nextstate = -1;
	condition = 1;
	question = "Do you know anything about the cultists?";
	text1 = "_There have always been a few of us who longed for the dark old days of Sss-Thsss and the power of the slithzerikai tribes. A few of them hide in the Great Cave. And now they aid the Slith Horde._";
	text2 = "_This dark cult is led by Fahdroth Benttail. He is a warped creature. It would be best if he became one of our ancestors. The most good that one could provide is as a cautionary example._";

begintalknode 107;
	state = 97;
	nextstate = -1;
	condition = 1;
	question = "So tell me more about these scrolls.";
	text1 = "_Treviass stole them as he fled, while I slept. I have asked Gless-Thsss for help in regaining them, but he thinks of nothing but his child, so I turn to you._";
	text2 = "_I think they will be found in the chambers of the cult. They are five scrolls of drakeskin bleached white, telling tales of warriors of days long gone. No magic, but great symbolic value. I will reward you personally for their return._";

begintalknode 108;
	state = 90;
	nextstate = -1;
	condition = has_spec_item(24) && gf(115,9) == 1;
	question = "I found those scrolls you mentioned. Here. (Give them to her.)";
	text1 = "She takes the scrolls and inspects them. In a moment, she is consumed with fury. _No wonder they wanted them! They changed them! They wrote over the text, making it seem like our ancestors supported ... supported ..._";
	text2 = "_Aiiii! It will be monthsss before I can repair the damage! Monthsss! Curse those creatures! I am glad they are beyond!_ She realizes that she is shouting. She calms down and returns the scrolls to her shelves.";
	text3 = "Then she removes a ring from her finger and hands it to you. _A personal reward, for the service you have provided. I thank you, and I apologize for my outburst._";
	code = 
		set_flag(115,9,2);
		toggle_quest(74,3);
		award_party_xp(400,12);
		reward_give(175);
		set_spec_item(24,-1);
	break;	

//
	
begintalknode 120;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The slithzerikai guards of Gnass are not hostile to you. They are officially soldiers of Avernum, after all. But they are very alert.";
	text2 = "The fear of humans blaming Gnass for the troubles of Avernum is a constant one, and the guards are constantly on watch for an angry mob.";
	
begintalknode 121;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Several large lizards wander freely around Gnass. Being around the slithzerikai calms these normally irritable creatures. Which is unfortunate for them, as they are destined to serve as food.";
	
begintalknode 122;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "These trees produce small quantities of fruit that are barely edible to the humanoids of Avernum. In normal times, it would be fed to lizards or discarded.";
	text2 = "These days, slithzerikai carefully tend to the trees, carefully caring for them and harvesting even the smallest and wormiest fruit.";
	
begintalknode 123;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This young slith shaman is kneeling and meditating before a shrine to someone named Toth-Thsss. You leave him alone.";
	
begintalknode 124;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are a few farmers in this village, looking after the withered crops and emaciated lizards. They look weak and thin, and they pointedly avoid outsiders.";
	
begintalknode 125;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

	
begintalknode 130;
	state = -1;
	nextstate = 131;
	condition = 1;
	question = "special";
	text1 = "You meet Treviass once again, back home in Gnass. He looks much worse than when you saw him last. He is exhausted, and his skin is pale. As he trudges through the village, the other slithzerikai watch him with distrust. Or worse.";
	text2 = "When he recognizes you, he watches you mutely.";
	
begintalknode 131;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "I see you made it back.";
	text1 = "_Yesss. It would have been best if a bandit or skribbane eater had slain me during my journey home. No such luck._";
	
begintalknode 132;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "Your father took you back in?";
	text1 = "_He made me know for sure. There isss no hope for my people. They will always serve. Serve mad warlords. Serve Avernum. Serve the Empire. There isss no hope._";
	text2 = "_And he said, if I flee again, he will kill me himself. He meant it. I have lost. Here I stay._";
	
begintalknode 133;
	state = 131;
	nextstate = -1;
	condition = 1;
	question = "What will you do now?";
	text1 = "He shakes his head. _I do not know. I had a way to do ... something. I failed. Now I will stay here, and be hated, and find a way ... No. I will keep my own counsel. You did your job. You got your bounty. Leave me be._";
	text2 = "He walks away.";
	action = END_TALK;
	
////

		
begintalknode 299;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = "Unfortunately, the Great Cave was a poor place to begin your life of crime. Most of the soldiers have had to travel northeast to fight the slithzerikai, but enough remain down here to hunt you down.";
	text2 = "You are jailed in Fort Remote. By the time you are able to get free, the multiple disasters that afflict Avernum have doomed you and all around you.";
		code =
		erase_char(30000);
	break;
	
		