// TOWN DIALOGUE SCRIPT
//    Town 1: Vasskolis

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;
int i,j,k,choice;

// *** Machrone ***

begintalknode 1;
	state = -1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "Machrone";
	text1 = "_It's good to see you again,_ Machrone says, smiling as you approach.";
	text2 = "He looks distinctly older than the last time you saw him, but it is hard to say exactly how old. He still stands with a page of notes in one hand and a pen in the other, jotting as something occurs to him.";
	text5 = "_Yes. Hmm._ He notes something down. _Something else, was there?_";
	action = INTRO;

begintalknode 2;
	state = 1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "How have you been?";
	text1 = "_Great, thank you,_ he says, grinning. _I'm one of the first to see the land beyond the steel gates! I've scooped all of the competition!_";
	text2 = "He adds, _In fact, I sent out my first report just after you left. It should begin distribution shortly, if it hasn't already. The whole world will know about Leg... er... the Prophet and your exploits. My employers were quite pleased._";
	text3 = "He pats you on the shoulder. _This should do wonders for your popularity. Everyone everywhere will know who you are and how you killed the dragon Galthrax!_ You start to puff up with pride, but then you remember that you're talking with Machrone.";

begintalknode 3;
	state = 1;
	personality = 1;
	nextstate = 1;
	condition = 1;
	question = "What are you doing?";
	text1 = "_I was just trying to secure an interview with the chief here. He hasn't wanted to make any comment for the record on these momentous events, but I think that his perspective is important and will help to understand what we are really doing here._";
	text2 = "He chuckles. _So far I have had no luck, but I will keep trying. The secret to getting that great interview is perseverance, after all._ You wonder momentarily if he's speaking from experience, but of course he can't be.";


// *** Guard ***

begintalknode 7;
	state = -1;
	personality = 2;
	nextstate = 5;
	condition = 1;
	question = "Guard";
	text1 = "The guard stands in front of the door, protecting it. He looks at you briefly.";

begintalknode 8;
	state = 5;
	personality = 2;
	nextstate = 5;
	condition = 1;
	question = "Can I enter?";
	text1 = "_Of course,_ the guard says in the ancient slith language. _You may pass._";


// *** Ithik ***

begintalknode 10;
	state = -1;
	personality = 3;
	nextstate = 10;
	condition = 1;
	question = "Ithik";
	text1 = "You approach Ithik. He looks much better now than he did after he escaped from the dungeons of Nolagh-Khar, healed by the intervening months. You remember the ancient slith language that he taught you and manage a greeting. He smiles.";
	text5 = "_Yes, what else is there?_";
	action = INTRO;

begintalknode 11;
	state = 10;
	personality = 3;
	nextstate = 10;
	condition = 1;
	question = "How have you been?";
	text1 = "_Good,_ he says. _It has been restorative to be home at last. Even if Vasskolis is in some disrepair, it is much better than the demon lord's dungeons, and with the specter of the dragon finally gone, we can rebuild._";

begintalknode 12;
	state = 10;
	personality = 3;
	nextstate = 10;
	condition = 1;
	question = "What do you think of Legare?";
	text1 = "He frowns with thought. _He is a powerful, commanding man,_ he says. _His quest is not just for Avernites; I have not ever seen the inner homeland, either. We are just as effectively barred by the dangers of the river as the exiles were by the door._";
	text2 = "He pauses for a moment. _This 'Goddess' of his is disturbing to me, though. I have never heard of such a deity in our slith pantheon. Either we here in Vasskolis have forgotten divinities in our years of turmoil or he has invented her; neither is good._";
	text3 = "He shakes his head. _This prophet has given so few details about her, however, that she may be a goddess I know but do not recognize. I cannot know anything for certain, but that he has power and conviction; for that alone, I will follow him._";

// *** Talas ***

begintalknode 20;
	state = -1;
	personality = 4;
	nextstate = 15;
	condition = 1;
	question = "Talas";
	text1 = "Talas looks up from his papyrus scrap as you approach. His claws clutch a pen delicately; they are not as easily nimble as fingers, but he makes do with considerable skill. He can do a great deal with his hands, either building or writing.";
	text5 = "_Yes? What other business is there?_";
	action = INTRO;

begintalknode 21;
	state = 15;
	personality = 4;
	nextstate = 15;
	condition = 1;
	question = "How have you been occupied since I've been gone?";
	text1 = "_I've been learning what I can from these homeland sliths,_ he says. _Their supply of knowledge is disappointingly small. I know that more is here, but they simply have forgotten it._";
	text2 = "He spreads his hands, taking in the walls of the library, the mess inside, and the vacant shelves. _The whole city is like this. A century ago, this was a thriving city with many residents both inside and outside the walls. Then it was abandoned._";
	text3 = "He sighs. _So much was here to be learned, now lost._";

begintalknode 22;
	state = 15;
	personality = 4;
	nextstate = 15;
	condition = 1;
	question = "What are you doing?";
	text1 = "_Trying to gather up what little information I can from the few remaining scraps,_ he replies. _This library once held the written heritage of centuries of slith culture at its peak. Now it holds fragments, and even they are charred and damaged._";
	text2 = "He shows you the sheet that he is working on. The top right side is torn diagonally, and the entire page is spotted with black marks. _I am trying to decipher what is left here, to figure out what it once was. It is depressing._";

// Phaedra

begintalknode 25;
	state = -1;
	personality = 5;
	nextstate = 20;
	condition = 1;
	question = "Phaedra";
	text1 = "Phaedra's fruitful belly rests just under the table. Her face is as lively as ever, flashing you a smile. _Hey there,_ she says, brushing back her red hair with a soft hand.";
	text5 = "_Yeah? What else can I tell you about?_ She smiles.";
	action = INTRO;

begintalknode 26;
	state = 20;
	personality = 5;
	nextstate = 21;
	condition = 1;
	question = "You're pregnant!";
	text1 = "_Yeah,_ she says, grinning. _Isn't it wonderful? Miracle of life, you know._ She places a hand on her belly. _It's hard not to be able to adventure as usual, but this is its own kind of excitement. And any day now the little one's going to come out._";

begintalknode 27;
	state = 21;
	personality = 5;
	nextstate = 20;
	condition = 1;
	question = "Wow!";
	text1 = "_I know. When you really think about it, it's overwhelming. I'm in charge of another human being, responsible for bringing him up and filling him with love and making sure that he's ready to face the world._ She laughs. _I'm just hoping to survive._";

begintalknode 28;
	state = 21;
	personality = 5;
	nextstate = 20;
	condition = 1;
	question = "What will you name him?";
	text1 = "_I haven't decided. He's going to need a good, strong name, but I can't think of one yet._ She smiles. _Well, I have a few days still._";

begintalknode 29;
	state = 21;
	personality = 5;
	nextstate = 20;
	condition = 1;
	question = "So, who's the father?";
	text1 = "She smiles shyly. _A good man,_ she says.";

begintalknode 30;
	state = 20;
	personality = 5;
	nextstate = 20;
	condition = 1;
	question = "Are you going to be able to continue with the expedition?";
	text1 = "_I think so,_ she says. _I've been fairly strong throughout the pregnancy, so unless something goes wrong soon, I should be able to come along when we depart._";
	text2 = "She laughs. _Legare was disappointed, though. He wanted me to be his scout. I'll barely be able to keep up, much less go on ahead and come back, at least for a little while. I think that means that you'll have to do it._";

// *** Ethass ***

begintalknode 35;
	state = -1;
	personality = 6;
	nextstate = 25;
	condition = 1;
	question = "Ethass";
	text1 = "Ethass sits across the table from Phaedra, chewing on some mushrooms. She smiles to see you. _You're back!_";
	text2 = "She looks much the same as before, young, lively, but you can see a seriousness that has crept into her face. Her laughter is not as unrestrained as before, and her smile is always limited. You cannot immediately discern why.";
	text5 = "Ethass chews on some more mushrooms. _What else can I help you with, dearie?_";
	action = INTRO;
	
begintalknode 36;
	state = 25;
	personality = 6;
	nextstate = 25;
	condition = 1;
	question = "What have you been doing while I've been gone?";
	text1 = "_Oh, this and that,_ she replies. _I've spent some time in the library in the southwest. I have an affinity for writings, as I'm sure you remember. I've also talked with the locals and learned some about Vasskolis and its history._";
	text2 = "Her eyes drift off into the distance. _But most of all, I've spent my time around the Prophet, helping him with things, assisting him in his daily prayers to the Goddess._";
	
begintalknode 37;
	state = 25;
	personality = 6;
	nextstate = 25;
	condition = 1;
	question = "What have you learned about Vasskolis?";
	text1 = "_Not much more than you already know. The city was founded centuries ago but for unknown reasons abandoned less than a hundred years ago. The current residents are descended from Bahssikavans and Guardpost sliths who came here seventy years ago._";
	text2 = "She thinks. _Due to the prevalence of monsters in this area, they were always fighting for their lives and never had time to rebuild much of the city. Until now, with the dragon killed, they have lived in desperate times._";

// *** Fethiss ***
	
begintalknode 40;
	state = -1;
	personality = 7;
	nextstate = 30;
	condition = 1;
	question = "Fethiss";
	text1 = "The leader of the sliths of Vasskolis stands before his throne. At first, he is imposing, surrounded by armed guards, humming machines, and glorious paintings.";
	text2 = "But the guards carry bent and damaged weapons. The machines may still hum, but they no longer do anything, and several of them are cracked. The paintings are ragged and faded. The glory in this room is vanishing, if not yet vanished.";
	text5 = "_Yes? What else?_ he asks.";
	action = INTRO;
	
begintalknode 41;
	state = 30;
	personality = 7;
	nextstate = 30;
	condition = 1;
	question = "How fares Vasskolis, chief?";
	text1 = "_The city has seen better days,_ he replies, sighing. _Even with the dragon gone and most of the monsters driven back, it will be some time yet before we have rebuilt._";
	text2 = "He spreads his hands in a wide gesture. _The Prophet's coming has brought us hope, though; we may be able to contact, after so many years of silence, our cousins in the inner homeland. We may even be able to return._";
	
begintalknode 42;
	state = 30;
	personality = 7;
	nextstate = 30;
	condition = 1;
	question = "What do you think of Legare?";
	text1 = "_The Prophet's arrival is encouraging. We have sent a few scouts to try to contact our leaders down the river, but none have ever come back. Now he brings enough manpower and strength that he may be able to succeed where others have failed._";
	text2 = "He glances at Pithoss. _The gods must surely be on his side as well. With strength and the approval of the gods, anything is possible._";
	
begintalknode 43;
	state = 30;
	personality = 7;
	nextstate = 31;
	condition = 1;
	question = "How is it to see outsiders?";
	text1 = "_Strange. Very strange._ He thinks. _I have never known of humans at all, and although some remembrance of nephilim survives in our legends, I have never seen one. I would like to see this Avernum someday, and this 'surface' land._";
	text2 = "His voice rises. _But these newcomers signal a change in our lives. We no longer live under the shadow of the dragon, and the monster threats that nearly destroyed our city have now receded. It is time for us to re-establish contact with our cousins._";
	
begintalknode 44;
	state = 31;
	personality = 7;
	nextstate = 30;
	condition = 1;
	question = "Re-establish contact?";
	text1 = "_With the inner homeland. In the time of our grandfathers, we lost contact with all other sliths. The river became too dangerous for travel. Now, with your expedition, we may be able to re-establish contact._";
	text2 = "He looks grim. _It will not be easy. Our capital city was many days' travel from here even when the river was clear and uninfested with beasts. Now it must be even longer._";
	
begintalknode 45;
	state = 30;
	personality = 7;
	nextstate = 30;
	condition = 1;
	question = "What is between here and our destination?";
	text1 = "_I cannot say from experience, but we have asked all our people, and from what we can remember from the tales of our parents and grandparents, there must be several cities along the way. The nearest was Nakhtha, a city renowned for its tasty fish.";
	text2 = "_Beyond that, there was the island city of Thassaka, a great home of learning and scholarly inquiry. It may be your best shelter until the central regions. Then comes a narrow, rocky stretch of river that may be difficult to navigate.";
	text3 = "_At the end of the difficult region is the port city Manikoss, a thriving trading center. Nearby is Fort Alora, a city with strong walls and sturdy guards. These two cities were the strength of the trade route between Thassaka and the central regions.";
	text4 = "_Finally, there is a long expanse of river that is only lightly inhabited. The next city is Danatha, from which point your journey is over land until you reach the capital._ He pauses. _At least, so it was a hundred years ago._";

// *** Pithoss ***
	
begintalknode 50;
	state = -1;
	personality = 8;
	nextstate = 35;
	condition = 1;
	question = "Pithoss";
	text1 = "Pithoss, the great warrior lieutenant of Legare, stands before the throne of the chief of Vasskolis. He is tall, a head taller than you, and as muscular as any slith you have ever seen. He carries a two-tined spear strapped to his back.";
	text5 = "_What else?_ he asks.";
	action = INTRO;
	
begintalknode 51;
	state = 35;
	personality = 8;
	nextstate = 35;
	condition = 1;
	question = "What am I supposed to do now?";
	text1 = "_We are preparing to leave, to continue the journey that we began so many months ago. Legare wants you to scout south down the river, where we will travel next._";
	text2 = "He continues, _Phaedra went over the land a few months ago, but it may have changed since then, and she is not in the right condition to scout again._ He faintly smiles at that.";
	text3 = "_Leave the city and go southeast. Legare will give you exact instructions there. I will follow shortly behind you. And know, also, that we are not completely ready yet. You can look around for a little while longer before you go if you want._";
	
begintalknode 52;
	state = 35;
	personality = 8;
	nextstate = 35;
	condition = 1;
	question = "What sort of preparations are you making for the journey?";
	text1 = "_We know little about how long it will take to travel to the capital or what supplies we will be able to find along the way, so we are taking no chances. We have gathered much food and loaded some pack lizards to help us carry it._";
	text2 = "He adds, _But much of our preparation is spiritual. The Goddess will lead us on this expedition, and we must be prepared to offer her ourselves._";

// *** Silthokh ***
	
begintalknode 60;
	state = -1;
	personality = 9;
	nextstate = 45;
	condition = 1;
	question = "Silthokh";
	text1 = "Silthokh the merchant stands here, looking at the filthy water in the half-dried pool. His eyes move sharply, absorbing details, computing figures, always able to calculate a profit.";
	text2 = "He looks up and recognizes you as you approach. _You're back!_ he says.";
	text5 = " Silthokh continues looking into the filthy water as he waits for your next question.";
	action = INTRO;
	
begintalknode 61;
	state = 45;
	personality = 9;
	nextstate = 45;
	condition = 1;
	question = "What have you been up to?";
	text1 = "_Gathering supplies, like everyone else._ He laughs. _Or rather, everyone else has been saying that they've been gathering supplies, while I've actually been doing it. I'm the quartermaster for the trip, so I have to make sure we have enough things._";
	text2 = "He continues, _I'm in charge not just of food but also weapons and what little we're bringing for shelter. Herbs in case someone gets hurt or sick. And many other things besides._";
	text3 = "He adds, _But of course, I've gathered a few extra items that I won't need to give to people, and you can buy them if you like._";
	
begintalknode 62;
	state = 45;
	personality = 9;
	nextstate = 45;
	condition = 1;
	question = "What do you think about the trip?";
	text1 = "_A large group to transport, only a vague concept of how far we're going, a leader who claims to speak to a goddess that only he knows anything about, hordes of monsters in between us and anything civilized, and no certainty of what we'll find._";
	text2 = "He laughs. _What could be better?_";
	
begintalknode 63;
	state = 45;
	personality = 9;
	nextstate = 45;
	condition = 1;
	question = "Show me your wares.";
	text1 = "You finish shopping.";
	code =
	begin_shop_mode("Silthokh's Items","This slith merchant has a variety of miscellaneous items at reasonable prices, and he will buy your excess, too.",0,2,2);
break;
	
begintalknode 64;
	state = 45;
	personality = 9;
	nextstate = 45;
	condition = 1;
	question = "Can you identify my items?";
	text1 = "_Yes. I've learned a thing or two about strange items in my time, so whatever you've come up with shouldn't be a problem for me._";
	action = ID 5;
	
begintalknode 65;
	state = 45;
	personality = 9;
	nextstate = 45;
	condition = 1;
	question = "Can you teach me anything?";
	text1 = "You finish shopping.";
	code =
	begin_shop_mode("Silthokh's Recipes","Silthokh, from years of digging up alchemical ingredients, knows how to make a variety of potions. He'll teach you for a small price.",14,2,-1);
break;