// TOWN DIALOGUE SCRIPT
//    Town 28: Avit

begintalkscript;

variables;

short i,j,k,r1,choice;

// Tekora-Tel

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 1;
	question = "Tekora-Tel";
	text1 = "A tall vahnatai with a thin gold headband stands at the head of the table. She motions for you to sit next to her. _I am Tekora-Tel, leader-woman of this village. I bid you welcome, humans._";
	text2 = "She is speaking in your tongue, very deliberately and carefully. _We have learned hard. Work in our learning._";
	text5 = "Tekora-Tel sits and watches you. Her large, gray eyes analyze you intently. They have no pupils. You can never tell exactly what she's focusing on.";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_What is it you do?_";
	text1 = "_I am a Tel, a ..._ She thinks. _A mayor, you will call it. We have worked and built and learned hard. Prepare for your arrival._";

begintalknode;
	state = 2;
	nextstate = -1;
	condition = gf(28,9) == 0;
	question = "_Now I am here._";
	text1 = "_Yes. We feared you could not make a journey. We have great joy to see you here. There may be hope. Now be speaking with Bon-Ihrno, who lives near. He will tell you stories of what has been happening._";
	text2 = "_As for me ..._ She indicates the papers before her. _I must be back to my planning._";

begintalknode;
	state = 2;
	nextstate = -1;
	condition = gf(28,9) > 0;
	question = "_Now I am here._";
	text1 = "_You are here. Make ritual. Learn our speech. Now go to Egli, to Olgai. Spread word. Let all vahnatai see the human persons, so they get no fear or hate._";
	text2 = "_As for me ..._ She indicates the papers before her. _I must be back to my planning._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_What are you building?_";
	text1 = "_We vahnatai awakened out of our slumber to find lands and cities in ruins. We are working hard to build them anew._";

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_How long have all of you been slumbering?_";
	text1 = "_I know unexact in human time. The vahnatai now awake out of a great Resting. You should speak to Bon-Ihrno. It is his thoughts that you come here. He rests on a small island near to the east._";

begintalknode;
	state = 3;
	nextstate = -1;
	condition = gf(27,12) >= 1;
	question = "_During my journey here, I think we reawakened some vahnatai._";
	text1 = "_We know. We know of your journey. We watched you during it. Your conduct there was brave and strong. It reflected well upon you in our eyes._";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_What have you been learning?_";
	text1 = "_We of this town are the only vahnatai who have some wish for speaking and dealing with outside human persons. Is us who have been your language learning. Is hard. We think may profit greatly._";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_You can speak my tongue?_";
	text1 = "_All vahnatai of Avit speak speech from your persons. We all are allied with Bon-Ihrno. He wanted it out of us. Speak with him of it. Much learning from him._";

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(20,0) == 0 && gf(28,20) == 0;
	question = "_I'd like to know who brought me here._";
	text1 = "_This is Bon-Ihrno. Speak with this honor elder. Is on small island in town middle. He guides you._";

// Sera

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 28;
	question = "Sera";
	text1 = "On the floor before you, a vahnatai male sits cross-legged on a prayer mat. He opens his eyes, revealing the usual, unsettling pure gray eyes. You think he is still looking at the pools, but, since he doesn't have pupils, you can't be sure.";
	text2 = "He says, without turning his head, _I am Sera. Welcome. Here, I wait._ Fortunately, he speaks your tongue.";
	text5 = "Sera stares at his pools. His position and long, spindly legs give him the appearance of some strange, gray-skinned insect. _What else? We talk. I wait._";
	action = INTRO;

begintalknode;
	state = 28;
	nextstate = 29;
	question = "_What are you doing here?_";
	text1 = "_I am a Ponder. And I wait._ As he speaks, his eyes continue to face perfectly forward. His mouth barely moves. The rest of him is perfectly still. It is very eerie.";

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_OK, what's a Ponder?_";
	text1 = "_A Ponder does thinking and watching, and guides the people without bias. I am blessed to be a Ponder. We wait. Me, and my Iglit._";

begintalknode;
	state = 30;
	nextstate = -1;
	question = "_Iglit?_";
	text1 = "_My partner, from before the Resting. She should be near. She has given thought to your coming. You should hear what is out of her._";

begintalknode;
	state = 28;
	nextstate = 31;
	question = "_What are you waiting for?_";
	text1 = "_You. Your kind. I keep pools prepared for human persons. Is a vahnatai ritual you can be performing. It is our Ritual of Welcoming. We use to mark ..._ He struggles for a word. _Outsiders? Yes. Mark as being our guests._";
	text2 = "_I can teach you, so you can be welcomed by us._";
	text3 = "_I wait for others who might follow you. Both from human persons and lost ones of our kind, so they may be taken into us. Ritual of Welcoming._";
	action = DEP_ON_SDF 28 9 0;

begintalknode;
	state = 31;
	nextstate = -1;
	question = "_What is involved in the ritual?_";
	text1 = "_The ritual is skimming your fingers in a caress across all the waters, going from darkest hue to lightest, as you are now going from the dark of being outside us to the light of acceptance._ He nods to the pools, as if motioning you to them.";
	text3 = "_The ritual is performed. You are marked. Words out of you are understood. We will all see that you are welcomed. Warning. If you are evil to us, you take our anger._";
	action = DEP_ON_SDF 28 9 0;

begintalknode;
	state = 28;
	nextstate = -1;
	question = "_What are those pools there for?_";
	text1 = "_For the ritual. I tend them as I wait._";
	text3 = "_For you, nothing. You have been welcomed to us. They are here for those who follow you. Follow to be welcomed in peace._";
	action = DEP_ON_SDF 28 9 0;

begintalknode;
	state = 28;
	nextstate = -1;
	condition = gf(20,0) == 0 && gf(28,20) == 0;
	question = "_I'd like to know who brought me here._";
	text1 = "_Ahhh. Bon-Ihrno. Much honor. Wise. Bringer of peace. And you. Is on small island in town middle. See him soon. Take his words._";

// Iglit

begintalknode;
	tag = 50;
	state = -1;
	nextstate = 55;
	question = "Iglit";
	text1 = "A vahnatai woman wanders the half-done streets of this city, seemingly lost in thought. When you approach, she stops concentrating and turns to you. She nods. _Greetings, human person. I am Iglit. I am pondering the problem of human persons._";
	text5 = "Iglit waits patiently for you to speak. She wears the long, billowing, slightly fluorescent wrap typical of the vahnatai. As she waits, tiny air currents cause the garment to float gently about her. _Still here to help, human person?_";
	action = INTRO;

begintalknode;
	state = 55;
	nextstate = -1;
	condition = 1;
	question = "_Why do you say 'human persons'?_";
	text1 = "_There are so many persons. Vahnatai persons. Human persons. Slithzerikai persons. Nephilim persons. Goblin persons. And so on._";
	text2 = "_Many are new to us. Much to learn. Much for a Ponder._";

begintalknode;
	state = 55;
	nextstate = 56;
	question = "_What do you do for the vahnatai?_";
	text1 = "_I am a Ponder. And right now, I am pondering the human persons._";

begintalknode;
	state = 56;
	nextstate = 59;
	question = "_What is a Ponder?_";
	text1 = "_It is a rough ... Translate? Yes. Translate of our word for it to your talk. A Ponder is a vahnatai person who watches and thinks. Our advice need not be taken, but very often should be._ ";
	text2 = "She can speak your tongue reasonably well. Like all of the vahnatai, her voice is very soft and high-pitched.";

begintalknode;
	state = 59;
	nextstate = -1;
	condition = gf(20,0) >= 1;
	question = "_I have been before the Council and gotten them to bring down the barriers._";
	text1 = "She stares intently at you. _You have done much. I wish I had Ponder advice for you._";
	text2 = "She thinks. _No. It is strange. Your destiny is a wild one. Spins far from my vision. I will not speak. The future of you ... I must not play with._";
	
begintalknode;
	state = 55;
	nextstate = 57;
	condition = gf(20,0) == 0;
	question = "_What problems do the humans cause?_";
	text1 = "_Is hard. Know not what I should tell. Our great Council in Olgai will attack human persons with magic barriers. Avit feels attack is fast and may be on wrong humans. We want you for Olgai Council for questions. You are the first human come here._";
	text2 = "_Right now, Olgai not wise refuse to see you, saying you are not of us. But I thought of a trick._";

begintalknode;
	state = 57;
	nextstate = 58;
	question = "_What do you propose?_";
	text1 = "_A full member of our tribe may always see the Council. A not-member of the tribe may become a full member by going through the tests. We have argued that nothing in the laws say a not-member has to be vahnatai, so you may join us by being tested._";
	text2 = "_It is clever, and tricky. But if you pass through the tests, you may see the Council, and they may see sanity._";

begintalknode;
	state = 58;
	nextstate = -1;
	question = "_Tell me more about the tests?_";
	text1 = "_There are three tests. They are used to earn position in our tribe, and to redeem those who we find to be crimes._ She pauses, not sure if she used the right word. _Go ask Forla-Te about the tests. She will help you._";
	text2 = "_She is not happy about the bringing of humans here, but, unlike some, she sees the wisdom of the Ponders._";
	action = SET_SDF 28 11 1;
	
begintalknode;
	state = 55;
	nextstate = -1;
	condition = gf(20,0) > 0;
	question = "_What problems do the humans cause?_";
	text1 = "_You were to Olgai. You learn of thefts. Of crimes. Work with them now. Clean crimes of human persons. My part is done._";

// Aif

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 82;
	question = "Aif";
	text1 = "A vahnatai warrior, waveblade at the ready, sits staring into the fire. His head is cocked, as if he's listening to something far away. You ask his name. He whispers, so that you can barely hear, _Aif._";
	text5 = "The vahnatai guard continues his vigil, listening carefully for signs of an intrusion. This vahnatai must have extremely sharp hearing.";
	action = INTRO;

begintalknode;
	state = 82;
	nextstate = 83;
	question = "_Are you looking for something?_";
	text1 = "_Quiet. I'm searching._";

begintalknode;
	state = 83;
	nextstate = 84;
	question = "_Sorry,_ you whisper. _Searching for what?_";
	text1 = "_We take turns listening. More useful than sight. Don't talk to me, human. Must be safe._ He looks away.";
	action = END_TALK;
	
// Keripa

begintalknode;
	tag = 90;
	state = -1;
	nextstate = 109;
	question = "Keripa";
	text1 = "A vahnatai sits by the fire, carefully and quietly running a stone around the edge of a razordisk. He doesn't look up at you, and he doesn't wait for you to speak. _I am Keripa, human outsider._";
	text5 = "Keripa sharpens each edge of the razordisk, and then he goes around and sharpens it again. He has the patience and care of a true craftsman.";
	action = INTRO;

begintalknode;
	state = 109;
	nextstate = 110;
	question = "_Are you a warrior?_";
	text1 = "He holds the razordisk out for a moment, then goes back to sharpening it.";

begintalknode;
	state = 110;
	nextstate = 111;
	question = "_Can you show me how to throw a razordisk?_";
	text1 = "_I think, no. I am throwing these all life. I take the tip off a stalagmite at far of sight. May Gods help you humans if you are guilty of the theft._ ";
	text2 = "His use of your tongue is awkward, but it gets the job done. He sounds as quiet and thoughtful as any other vahnatai, but he is clearly angry.";

begintalknode;
	state = 111;
	nextstate = -1;
	condition = gf(30,14) == 0;
	question = "_I haven't stolen anything!_";
	text1 = "He looks up at you. _I not say. Not my job to question Bon-Ihrno precious peace. Go talk to him. Leave me._ He returns to his work.";
	action = END_TALK;

begintalknode;
	state = 111;
	nextstate = -1;
	condition = gf(30,14) >= 1;
	question = "_But I have returned a stolen Crystal Soul!_";
	text1 = "_You think that you are different from human who stole them. Humans are humans. Some say fight is not done._ He resumes his sharpening, ignoring you.";
	action = END_TALK;

// Azik

begintalknode;
	tag = 110;
	state = -1;
	nextstate = 136;
	question = "Azik";
	text1 = "A vahnatai warrior sits here, absorbing the heat from the fire. As you approach, she looks at your weapons with great interest. She stands and says, _Welcome to our circle. I am Azik._ Having introduced herself, she sits again.";
	text5 = "Azik continues to concentrate on your weapon. She stares at it with her blank, inscrutable eyes. Whether she is trying to figure out what it would be like to use your blade or how she could best kill someone wielding it, you can't tell.";
	action = INTRO;

begintalknode;
	state = 136;
	nextstate = 137;
	question = "_Why are you all sitting around the fire?_";
	text1 = "_We are here to defend Avit, with blade and disk. Weapons of vahnatai persons._";

begintalknode;
	state = 137;
	nextstate = 138;
	question = "_I'd like to know more about your weapons._";
	text1 = "_Our weapons are different from yours. I would like learn use one your swords one day, even though they are clumsy._";

begintalknode;
	state = 138;
	nextstate = -1;
	question = "_My weapon might be clumsy, but it gets the job done._";
	text1 = "_Yes. They look like they work. Our weaponsmiths curve our blades to show their skill. The finer the curves, the greater the smith. At times, I'm not sure it is wise. A fine waveblade takes long to make._";

begintalknode;
	state = 136;
	nextstate = 139;
	question = "_You are a warrior of the vahnatai people?_";
	text1 = "_Yes. You have fought our warriors. That is what they say. Your journey here was watched from afar. We know you were forced to fight the people. It was interested to see how we fought against you._";

begintalknode;
	state = 139;
	nextstate = -1;
	condition = gf(28,12) == 0;
	question = "_They were mighty warriors. It was an honor to do battle with them._";
	text1 = "_Kind of you to say. Your kind making words is noted._";
	action = SET_SDF 28 12 1;

begintalknode;
	state = 139;
	nextstate = -1;
	condition = gf(28,12) == 0;
	question = "_They were weak. I dispatched them with ease._";
	text1 = "_Mmm. You think. Others of our kind are much stronger. Some wish nothing more than to wash their blades outsider blood. Be warned._";
	action = SET_SDF 28 12 1;

// Stal

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 163;
	question = "Stal";
	text1 = "A vahnatai warrior sits warming herself at the fire. She often turns to look for creatures approaching the town. You introduce yourself. She says, _I am called Stal. In words of human persons, means 'swift'._";
	text5 = "Stal looks to the north, then turns her head to look to the east, and so on. Her long neck swivels her head in all directions, watching for intruders. She is still listening to you, though.";
	action = INTRO;

begintalknode;
	state = 163;
	nextstate = 164;
	question = "_What are your responsibilities?_";
	text1 = "_I'm one of the too few guards for Avit. We keep always watch for attack._";

begintalknode;
	state = 164;
	nextstate = 165;
	question = "_Who would want to attack Avit?_";
	text1 = "_The hellhounds and chitrachs have not learned we are in a home. Just few can do great damage if we not stop them._";

begintalknode;
	state = 165;
	nextstate = -1;
	question = "_All of your cities are in ruins?_";
	text1 = "_Yes, but we are making new our cities. Brick and brick and home and home. It will not take chitrach to stop us._";

begintalknode;
	state = 165;
	nextstate = -1;
	question = "_What can you tell me about the hellhounds and chitrach?_";
	text1 = "_Hellhounds are big and strong, but clumsy and dumb. Real danger is the chitrach. If we don't watch, a swarm could easily destroy a whole village. You not have the foul chitrach in your land in big numbers. You are lucky._";
	text2 = "She returns to scanning Avit's surroundings with fresh enthusiasm. You leave her to her task.";
	action = END_TALK;

// Vahnatai Warrior

begintalknode;
	tag = 150;
	state = -1;
	nextstate = 190;
	question = "Vahnatai Warrior";
	text1 = "A vahnatai warrior rests on his delicate bed. These beings must be amazingly light for such fragile contraptions to support them. His eyes are closed and his arms cross his chest.";
	text5 = "Your presence gets no response.";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	question = "_Hi._";
	text1 = "He says nothing. His chest barely moves. His eyes stay closed. The vahnatai must be incredibly deep sleepers.";
	action = END_TALK;

// Forla-Te

begintalknode;
	tag = 170;
	state = -1;
	nextstate = 217;
	question = "Forla-Te";
	text1 = "This female vahnatai is formidably armed. Wickedly pointed razordisks are strapped across her chest, and a heavy, two-handed waveblade is strapped across her back.";
	text2 = "Unfortunately, she isn't at all happy to see you. The vahnatai are alien to you, but some things are obvious. _Hmmph. Outsider. Allowed. I am Forla-Te, commander of Avit._";
	text5 = "Forla-Te watches you carefully, almost seeming to hope for an excuse to rip you apart. She looks like she could do it, too.";
	action = INTRO;

begintalknode;
	state = 217;
	nextstate = -1;
	condition = gf(30,11) >= 1;
	question = "_I returned your Crystal Souls to you._";
	text1 = "_And that is enough to earn my forgiveness. It does not end my anger, but it ends my desire for vengeance._";
	text2 = "She thinks. _But not all feel as I do. Is all I can give._ She turns away.";
	action = END_TALK;

begintalknode;
	state = 217;
	nextstate = 218;
	condition = gf(30,11) == 0;
	question = "_Greetings, warrior._";
	text1 = "The pale gray of her face darkens slightly. _I am supposed to be helping to you, not liking._ Her use of your tongue is slow and awkward. _I must be acting like you weren't stealing._";

begintalknode;
	state = 218;
	nextstate = 219;
	condition = gf(30,11) == 0;
	question = "_I haven't stolen anything from the vahnatai._";
	text1 = "She smiles grimly. _I said not things about humans stealing._ Her voice suddenly turns bitter. _To say humans stealing is interfere with peace. That would be wrong. Forbidden._";

begintalknode;
	state = 219;
	nextstate = -1;
	question = "_You want peace between our peoples, right?_";
	text1 = "_Yes. Peace._ She spits out the word as if it was poison.";

begintalknode;
	state = 219;
	nextstate = -1;
	condition = 1;
	question = "_Forbidden? By who?_";
	text1 = "_Bon-Ihrno soft peace talk listened to. Not always be. When you fail, we rise._";

begintalknode;
	state = 217;
	nextstate = 221;
	condition = gf(28,11) >= 1 && gf(20,0) == 0;
	question = "_I was told that you could help with some tests._";
	text1 = "She looks angry that you know to ask. _Yes. Have orders. Help you reach Olgai Council. Prove yourself as worthy outsider._";

begintalknode;
	state = 221;
	nextstate = 220;
	condition = 1;
	question = "_Go on._";
	text1 = "_I must talk of three tests. All south and southeast, of Strength, Speed, and Patience. When in test, one of you only can entering and pass through. Are dangerous._";
	text2 = "_To see Council, must do right number. They demand you do enough._";

begintalknode;
	state = 220;
	nextstate = -1;
	question = "_And what number will be enough?_";
	code =
	run_hardcode(105);
	break;

begintalknode;
	state = 217;
	nextstate = -1;
	condition = gf(25,9) >= 1 && gf(20,0) == 0;
	question = "_Are you aware that I found a book of human magic in the possession of some hostile vahnatai?_";
	text1 = "She thinks. _Heard of Bon-Ihrno's watching. Book in ruined fort on river, yes?_";
	text2 = "_We are aware. It upsets us. To think some of us might be helping your thief kind. Upsets us. We were glad you learned it. Means do fewer tests to please Council._";

begintalknode;
	state = 217;
	nextstate = -1;
	condition = gf(31,18) >= 1 && gf(28,6) == 0;
	question = "_I'm looking for a warped tree behind the barracks._";
	text1 = "She looks confused. _Whatever for?_ She points at the east wall. _There is hidden door there. So we tend the plants. Sickly tree is back there. Sad thing._";

begintalknode;
	state = 217;
	nextstate = -1;
	condition = 1;
	question = "_Can you train me?_";
	text1 = "_This I not do. Even if you no steal Crystal Souls, you steal. Human persons steal caves. Take food lands of vahnatai. You not our friends. Never will be._";

// Bott

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 244;
	question = "Bott";
	text1 = "This farmer tends long, crooked rows of mushrooms. His gray skin is creased and pale, and his back is heavily bent. He wears the standard luminescent vahnatai wrap, but it is creased and dirty. He stands up straight and straightens his wrap. _Me Bott._";
	text5 = "Bott tugs at his torn and dirty wrap self-consciously as he speaks with you. He looks very old and tired.";
	action = INTRO;

begintalknode;
	state = 244;
	nextstate = 245;
	question = "_Are you a farmer?_";
	text1 = "_Fahr murh? Not know. Make food. Only me awake now, to make food for lots. Much work. But food you to buy, if want._";

begintalknode;
	state = 245;
	nextstate = -1;
	question = "_Sure. I want to buy some food._";
	text1 = "You conclude your business.";
	code =
		begin_shop_mode("Bott's Mushrooms","You recognize the mushrooms Bott is selling. Happily, the fungus eaten by the vahnatai are also edible to your kind.",26,3,3);
	break;

begintalknode;
	state = 245;
	nextstate = 246;
	question = "_You're the only one here who makes food?_";
	text1 = "_Yes, yes, all us being waked, but me only food maker, and work and work and not get full pay for it._";
	text2 = "He looks around slyly. _So when me find secret, me deserve it be mine and not to Tekora-Tel go, yes, yes?_";
	text3 = "_Me tell secret for only 50 shiny things, yes? Fair for me so hard working, yes?_";
	text4 = "_That why tell scroll rubble secret door southwest house. Clear, yes?_";
	code =
		if (gf(28,2) > 0) {
			rs(2); rs(3);
			}
			else rs(4);
	break;
	
begintalknode;
	state = 246;
	nextstate = -1;
	condition = gf(28,2) == 0;
	question = "_Who is Tekora-Tel?_";
	text1 = "_Tekora-Tel our leader, she tell me to be working and food making, as it me duty. But me do more work, and me should get more. Fair, yes yes? Me!_";

begintalknode;
	state = 246;
	nextstate = -1;
	condition = gf(28,2) == 0;
	question = "_Sure, tell me your secret._";
	text1 = "He grabs the money and stores it in a pocket in his wrap. _Me find scroll! Magic! Hidden in rubble behind me house in southwest! Good magic!_";
	text3 = "_Money for me! No fifty, no secret from me!_";
	code =
		if (coins_amount() >= 50) {
			change_coins(-50);
			sf(28,2,1);
			rs(3);
			}
			else rs(1);
	break;

begintalknode;
	state = 244;
	nextstate = -1;
	condition = 1;
	question = "_I'd like to know more about the vahnatai._";
	text1 = "_Talk Bon-Ihrno. Center of town. Bring you here. Big brain. Make me learn you talk. He talk you good!_";
	
// Bon-Ihrno

begintalknode;
	tag = 210;
	state = -1;
	nextstate = 271;
	question = "Bon-Ihrno";
	text1 = "You approach an ancient vahnatai. He sits and meditates under an unusually tall cavewood tree, as the town is rebuilt around him.";
	text2 = "When you approach, he stands and turns to you. When he speaks, you recognize him as the vahnatai who contacted you in Formello. _I am Bon-Ihrno. Welcome, human outsider, to the land of the vahnatai._";
	text3 = "_There is much we need to learn about you human persons, and we have long to journey._";
	text5 = "Bon-Ihrno stares at you with his featureless gray eyes. The dense network of wrinkles in his gray skin betrays him as ancient, but he is still healthy and nimble.";
	action = INTRO;

begintalknode;
	state = 271;
	nextstate = 272;
	condition = gf(28,20) == 0;
	question = "_I've seen you before. Why did you call me to come and see you?_";
	text1 = "He smiles and shakes his head. _Oh, so much work. Learning your tongue, learning of your people, struggling for peace. It is all so hard, after the theft._ He struggles to speak your language, but he's doing all right.";

begintalknode;
	state = 272;
	nextstate = 283;
	question = "_That does sound like a lot of work._";
	text1 = "_Yes. After the Resting, when we found of the theft and learned of your people, we all had to learn so much so fast. Some, on how to attack, some on how to talk to you._";
	
begintalknode;
	state = 283;
	nextstate = 271;
	condition = 1;
	question = "_And now that I am here?_";
	text1 = "_I have much to tell you. Of the Resting. Of the great theft. Of what you must do._";
	action = SET_SDF 28 20 1;
	
begintalknode;
	state = 271;
	nextstate = -1;
	condition = gf(28,20) > 0;
	question = "_Why were the vahnatai people Resting?_";
	text1 = "_Ah, yes. I must say the tale. Every millennium or so, despite our best efforts, we vahnatai use up the food in the caves. When this happens, we are able to magically hibernate, to give everything time to recuperate. We only just woke from our last Resting a year ago._";
	text2 = "_When this happened, we discovered a horrible theft. Three of the Crystal Souls were gone!_";

begintalknode;
	state = 271;
	nextstate = 274;
	condition = gf(28,20) > 0 && gf(30,11) > 0;
	question = "_What was the theft?_";
	text1 = "_Something that was corrected. We no longer need to discuss it._";
	
begintalknode;
	state = 271;
	nextstate = 274;
	condition = gf(28,20) > 0 && gf(30,11) == 0;
	question = "_What was the theft?_";
	text1 = "_We Vahnatai recently rose from a Resting of centuries. When we awoke, we discovered a horrible theft. Three of the Crystal Souls were gone!_";

begintalknode;
	state = 274;
	nextstate = 275;
	question = "_What is a soul crystal?_";
	text1 = "_Not soul crystals, Crystal Souls. It is not a crystal with a soul inside it, it is a soul taking crystal form. A soul of an honored leader, a Bok, staying with us in physical form to provide comfort and guidance. They are our race's greatest prize._";
	text2 = "_To have stolen them is one of the greatest crimes against us one can commit._";

begintalknode;
	state = 275;
	nextstate = -1;
	condition = gf(20,0) > 0;
	question = "_What must be done now?_";
	text1 = "_You must continue your work with the Council in Olgai. You have met with them. The barriers are down. My part is done._";

begintalknode;
	state = 275;
	nextstate = -1;
	condition = gf(20,0) == 0;
	question = "_How did the theft happen?_";
	text1 = "_When we ended the Resting, we rebuilt the home of the Souls of our greatest Boks. Not long after, three were stolen, the guards slain by human weapons!_ He quivers with anger. _This taught us of humans, and it was then the Council called for your doom._";
	text2 = "_It is because of this that I had you come here. You must go to the Council to be read._";
	
begintalknode;
	state = 271;
	nextstate = 276;
	condition = gf(28,20) > 0 && gf(28,21) == 0;
	question = "_What must I do?_";
	text1 = "_The Council in Olgai called for the doom of the humans in the underworld. If a disastrous war is to be prevented, we must act fast. It is because of this that I had you come here. You must go to the Council to be read._";
	
begintalknode;
	state = 276;
	nextstate = 277;
	question = "_What will going before the Council accomplish?_";
	text1 = "_I believe there may be many types of humans, with many beliefs, and using our magics to destroy all of you is, for now, wrong. If we could get the Council of Three to question you, then the truth could be known, and we could act with wisdom._ ";
	text2 = "_Their magics are awesome. If your people are not to die, you must prepare. We have gifts for you._";

begintalknode;
	state = 277;
	nextstate = -1;
	question = "_What sort of magic can the Council perform?_";
	text1 = "_The Council, our overly hasty rulers, created the barriers that choke your lands. They even now prepare disease spells, which will ravage and decay your people, and enormous shockwaves, which will bury them in giant cave-ins._";
	text2 = "_If you stole our Crystal Souls, it is what you deserve. It would be justice. But if not, it would be a great crime._";

begintalknode;
	state = 277;
	nextstate = 271;
	condition = 1;
	question = "_What is the first gift?_";
	text1 = "_A welcoming. A blessing of vahnatai speech. Go now. Go to the Chamber of Meditations, in the northeast corner of town. Speak with Sera and perform the Ritual of Welcoming._";
	text1 = "_It is a very simple, highly magical ritual we have modified so you can take part in it without damage hopefully. It will mark you so that you can travel in our lands free from attack. When it is done, return to me._";
	code =
		toggle_quest(108,3);
		toggle_quest(109,1);
		sf(28,21,1);
	break;

begintalknode;
	state = 271;
	nextstate = 278;
	condition = gf(28,9) > 0 && gf(28,21) > 0 && gf(28,22) < 2 && gf(20,0) == 0;
	question = "_I performed the ritual in the Chamber of Meditations._ (Use the vahnatai tongue.)";
	text1 = "Bon-Ihrno nods, very pleased. _Now you speak like us, but you are not one of us. You must take part in our ways to speak to the Council. With Forla-Te's help with the tests, you need to win entry. Then, maybe, there can be peace._";
	text2 = "He removes a scroll from his pouch and hands it to you. _This is a map of our lands. Very rough, but it may help._";
	action = SET_SDF 28 11 1;
	code =
		sf(28,22,1);
		toggle_quest(109,3);
		toggle_quest(110,1);
		set_spec_item(6,1);
	break;

begintalknode;
	state = 278;
	nextstate = -1;
	question = "_You really believe that peace is possible between our races?_";
	text1 = "_Some say peace is impossible, since humans took our leaders' Souls and killed their guards, but I want peace with the humans not responsible. Just because some of you may be evil doesn't mean you all are._";
	text2 = "_Alas, to some, this is a radical, foolish view._";	
	
begintalknode;
	state = 278;
	nextstate = -1;
	condition = 1;
	question = "_Tell me more about the Council._";
	text1 = "_The Council, rulers of our tribe, sits in Olgai. Now that you are capable of speaking with them, we also can make you a guest of the vahnatai, enabling you to enter and see them._";

begintalknode;
	state = 278;
	nextstate = -1;
	condition = 1;
	question = "_How do I make the Council see me?_";
	text1 = "_By tests. Ritual tests of the vahnatai, used to make those of other tribes prove worthiness to join ours. Go now and speak with Forla-Te. She is in the southeast barracks._";
	text2 = "_Make her tell you of the tests. She will not want to. When they are done to her satisfaction, you may go to Olgai and meet our Council._";

begintalknode;
	state = 271;
	nextstate = -1;
	condition = gf(28,20) > 0 && gf(28,22) > 0 && (gf(28,10) >= gf(28,7)) && gf(20,0) == 0;
	question = "_I believe I have completed enough tests to face the Council in Olgai._";
	text1 = "_Then go there. Open yourself to them. Hide nothing. Submit. Only then can you gain their trust. Only then can their wrath be turned aside. I hope they do not kill you. Good luck._";
	code =
		sf(28,22,2);
	break;
	
begintalknode;
	state = 271;
	nextstate = -1;
	condition = gf(28,20) > 0;
	question = "_What sorts of things do you still need to learn about my people?_";
	text1 = "_There is much we do not understand about your kinds, the human and nephil and slith persons. We do not know how many tribes you have, or how they behave towards each other. Our magic is stronger than yours, but we do not know how much. We do not know your beliefs, or your morals._";
	text2 = "_We are learning, though. But not as fast as we should be._";

begintalknode;
	state = 271;
	nextstate = -1;
	condition = gf(20,0) >= 1 && gf(30,11) == 0;
	question = "_The barriers have been taken down. I will try to recover your Crystal Souls._";
	text1 = "_This fills me with glad. Perhaps my efforts will lead to the good. Perhaps eternal war between your people and mine is not necessary._";

begintalknode;
	state = 271;
	nextstate = -1;
	condition = gf(30,11) >= 1;
	question = "_I have recovered all three of the Crystal Souls._";
	text1 = "_So I heard. So there is hope. There is still struggle in the minds of our people, struggle to find how to regard you. But us who want peace, we now have arguments on our side. Your bravery may have saved many lives in the future, and I bow to you._";
	text2 = "He bows deeply.";

begintalknode;
	state = 271;
	nextstate = 279;
	condition = gf(28,20) > 0;
	question = "_How did you learn our language? And how did you send your image to Formello?_";
	text1 = "_We vahnatai, we are a magical race. It is needed for us to survive in the caves for the many years. Our magic is strong. We walk paths humans do not. It is how I invited you to take the journey here._";
	text2 = "_We are impressed you survived the journey, I add._";
	
begintalknode;
	state = 279;
	nextstate = -1;
	question = "_We would learn of your magic, if I could._";
	text1 = "_That may be possible. Or maybe not. Take the ferry to Egli, to southeast. There, on island, you might be able to persuade some to teach you of our powers._";

begintalknode;
	state = 279;
	nextstate = -1;
	question = "_How is your magic different from ours?_";
	text1 = "_So many ways. We draw our power from the innate flow and energy of the rock and the caves and the heat of the deep earth, and, most importantly, crystals. Crystals are sacred, pure things, source of inspiration and focus._";

begintalknode;
	state = 279;
	nextstate = -1;
	question = "_During our journey here, we were attacked by several groups of vahnatai. Did you know of this?_";
	text1 = "_We are not all of one mind. Some of us have different regard for aliens, as some of us call you humans and nephilim and sliths. And some would prefer that politics not be muddied by idea of peace with you._";

begintalknode;
	state = 271;
	nextstate = 280;
	condition = gf(28,20) > 0;
	question = "_During the journey, I passed the tomb of someone named Dahris-Bok. Know anything about it?_";
	text1 = "_A Crystal Soul, the spirit of one of our revered leaders. It is sad that you were unable to pay homage to him. We have sent some of our people to appease his rage._";
	text3 = "_A Crystal Soul, the spirit of one of our revered leaders. It was good of you to pay homage to him. This impressed us. We were thankful for your honor._";
	action = DEP_ON_SDF 26 14 0;

begintalknode;
	state = 280;
	nextstate = -1;
	condition = dread_curse(0) > 0;
	question = "_I received a nasty curse. Is there anyone who can cure it?_";
	text1 = "He looks at you carefully. Then he backs away nervously. _I do not know. It is a dark curse. Very bad. I lack the power to tamper with it. Perhaps someone in Egli can help you. It is to the southeast._";

begintalknode;
	state = 271;
	nextstate = -1;
	condition = gf(28,20) > 0;
	question = "_You are an older vahnatai?_";
	text1 = "_Yes. My age is ... you surface things have something called a year. I believe that my time spent in waking is over two hundred of your years. Such is the greatness of my age. As is our custom, I do not count the years I spent in Resting._";

begintalknode;
	state = 271;
	nextstate = -1;
	condition = gf(28,20) > 0;
	question = "_I'll be moving on._";
	text1 = "_Good. Yes. Continue your journey toward peace. Much depends on you. Our hopes travel with you._";
	action = END_TALK;
