// TOWN DIALOGUE SCRIPT
//    Town 4: Camp

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

begintalkscript;

variables;
int i,j,k,choice;


// *** Talas ***

begintalknode 1;
	state = -1;
	personality = 40;
	nextstate = 1;
	condition = 1;
	question = "Talas";
	text1 = "Talas looks tired. He has been doing work recently. He greets you as you approach.";
	text5 = "_What else can I do for you?_ Talas asks.";
	action = INTRO;

begintalknode 2;
	state = 1;
	personality = 40;
	nextstate = 1;
	condition = 1;
	question = "What has been keeping you busy?";
	text1 = "_Salvaging what I could from our supplies,_ he says. _We weren't exactly prepared for this. I have been figuring out what I have to improvise with. I think that I can build boats with what we've got, but it will not be easy._";

begintalknode 3;
	state = 1;
	personality = 40;
	nextstate = 1;
	condition = 1;
	question = "What did you think of Legare's parting of the river?";
	text1 = "Talas frowns. _It was... impressive. He showed power._ He glances at Silthokh. _Great... power._ He seems slightly uncomfortable and does not say more.";
	
// *** Silthokh ***

begintalknode 10;
	state = -1;
	personality = 41;
	nextstate = 10;
	condition = 1;
	question = "Silthokh";
	text1 = "Silthokh looks uncomfortable as you approach. He taps his claws together, making a clicking sound. Whatever he, Talas, and Ithik were talking about, it must've been something they shouldn't have been.";
	text2 = "He manages a smile, though. _Hello,_ he says. _What can I do for you?_";
	text5 = "_Yes, of course, what else can I do for you?_ Silthokh asks.";
	action = INTRO;

begintalknode 11;
	state = 10;
	personality = 41;
	nextstate = 10;
	condition = 1;
	question = "Are you still selling items?";
	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.",1,2,2);
break;

begintalknode 12;
	state = 10;
	personality = 41;
	nextstate = 10;
	condition = 1;
	question = "Can you identify my items?";
	text1 = "_Of course, for a small fee. Just to cover my costs, you understand._";
	action = ID 5;
	
begintalknode 13;
	state = 10;
	personality = 41;
	nextstate = 10;
	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;

begintalknode 14;
	state = 10;
	personality = 41;
	nextstate = 10;
	condition = 1;
	question = "What were you three talking about?";
	text1 = "_Noth... nothing,_ he says, hesitating. _Nothing important. Just how we were going to share this tent._ He's obviously lying, but you can't seem to get him to say anything else about it.";
	
// *** Ithik ***

begintalknode 20;
	state = -1;
	personality = 42;
	nextstate = 20;
	condition = 1;
	question = "Ithik";
	text1 = "Ithik shifts uneasily, not meeting your eyes for a long moment. He seems guilty in some way, but you can only guess why. _Greetings,_ he says.";
	text5 = "Ithik waits for your next question.";
	action = INTRO;

begintalknode 21;
	state = 20;
	personality = 42;
	nextstate = 20;
	condition = 1;
	question = "What did you think of Legare's miracle?";
	text1 = "Ithik looks extremely uncomfortable. _It was... impressive. Magical. Big._ He looks down at his claws. _You know. Like all the stuff that Leg... I mean... the Prophet does._";

begintalknode 22;
	state = 20;
	personality = 42;
	nextstate = 21;
	condition = 1;
	question = "What do you think of the trip to the center of the homeland?";
	text1 = "_It means as much to me as to an Avernite,_ he replies. _Vasskolis was a far outpost of the Empire of Khalthas. Neither I nor my ancestors have seen true civilization for generations. It will be good to see Nakhtha and Manikoss and the other cities._";

begintalknode 23;
	state = 21;
	personality = 42;
	nextstate = 20;
	condition = 1;
	question = "Interesting.";
	text1 = "_Yes._";

begintalknode 24;
	state = 21;
	personality = 42;
	nextstate = 20;
	condition = 1;
	question = "The Empire of Khalthas?";
	text1 = "_The civilization of the homeland. That's what we call it. Our founder was Khalthas, nearly a thousand years ago. He was the hero of an epic poem, our national epic, the Khalthanad. My father taught me a few verses of it when I was young._";
	text2 = "He adds, _We didn't have a copy of it anywhere in Vasskolis. I have only ever heard a few lines. My first question to the other sliths we meet will be, 'Do you have a complete copy of the Khalthanad?' I've always wanted to hear the rest of it._";

begintalknode 25;
	state = 20;
	personality = 42;
	nextstate = 20;
	condition = 1;
	question = "What were you three talking about?";
	text1 = "He looks away. _Nothing._ He's hiding something, but nothing you say will make him tell you.";
	
// *** Phaedra ***

begintalknode 30;
	state = -1;
	personality = 43;
	nextstate = 30;
	condition = 1;
	question = "Phaedra";
	text1 = "Phaedra sits, occasionally telling Ethass a move on the chessboard. You imagine that she doesn't sit on the ground because it would be uncomfortable, since she is pregnant. She smiles as you approach. _What's up?_ she asks.";
	text5 = "Phaedra ponders her next move as she waits for your next question.";
	action = INTRO;

begintalknode 31;
	state = 30;
	personality = 43;
	nextstate = 30;
	condition = 1;
	question = "How are you feeling after that rush out of Vasskolis?";
	text1 = "_I'm okay,_ she replies. _They didn't make me carry anything, so I had it easier than everyone else. I don't think I'll be going anywhere else any time soon, though._ She laughs and pats her belly. _The little one would rather that I not, I think._";

begintalknode 32;
	state = 30;
	personality = 43;
	nextstate = 30;
	condition = 1;
	question = "What did you think of Legare's miracle?";
	text1 = "_It was impressive,_ she responds, _but it makes me wonder. He has power; we know that. But we don't know that his power is divine! I was struck, watching that, by the fact that an awesomely powerful mage could've done exactly the same thing._";
	text2 = "She thinks. _Any of the great archmages of a few decades ago would've had that kind of power. Solberg, X, Erika, Garzahd...._ She trails off. _But I'm just speculating out loud,_ she adds with a nervous laugh. _I don't know._";

begintalknode 33;
	state = 30;
	personality = 43;
	nextstate = 30;
	condition = 1;
	question = "How is the chess game going?";
	text1 = "_Well. I love chess. I always play it with my best friends. I'm ahead by a nephil archer right now, so I'm hoping that I'll win._ She glances down at the board. _But who knows? Ethass is a good player._";

begintalknode 34;
	state = 30;
	personality = 43;
	nextstate = 30;
	condition = 1;
	question = "So, who's the father?";
	text1 = "She smiles shyly. _A good man,_ she replies. She clearly will say no more than that.";

begintalknode 35;
	state = 30;
	personality = 43;
	nextstate = 30;
	condition = 1;
	question = "Did you scout around at all?";
	text1 = "_Oh, yes,_ she says, remembering. _A few months ago, traveling south, I found the ruins of a city, Lakhoss, according to the people in Vasskolis. I saw some very unpleasant sliths nearby, barbarians, bigger and more vicious than any I've ever seen._";
	text2 = "She continues, _They growled in a language that I didn't recognize, although I caught one word repeated several times, a name, I think: Rashank. I made sure to get out of there before they saw me._";
	text3 = "She thinks for a moment. _They seemed not at all like the sliths in Vasskolis. I think something has made them foul. I wonder what._ She fades off for a moment. _Well, be careful around them, anyway._";
	
// *** Ethass ***

begintalknode 40;
	state = -1;
	personality = 44;
	nextstate = 40;
	condition = 1;
	question = "Ethass";
	text1 = "Ethass sits, contemplating the chessboard. She moves a piece and waits for Phaedra's response. Then she looks up at you. _Hi,_ she says.";
	text5 = "Ethass concentrates on the board as she waits for your next question.";
	action = INTRO;

begintalknode 41;
	state = 40;
	personality = 44;
	nextstate = 40;
	condition = 1;
	question = "What is your job on this trip?";
	text1 = "_Mostly it's to take care of Phaedra. And also_ -- something strange comes into her voice -- _to attend on the Prophet. But right now the Prophet is busy, so I'm here with Phaedra._";
	text2 = "She adds, _I don't have a job quite like Silthokh or Talas, who are in charge of supplies and construction, respectively, but most of the sliths on this expedition don't. We just pitch in wherever we're needed._";

begintalknode 42;
	state = 40;
	personality = 44;
	nextstate = 40;
	condition = 1;
	question = "What did you think of Legare's miracle?";
	text1 = "Reverence pervades her tone. _It was amazing, truly amazing. Pure proof that the Goddess is real and blesses this journey._";

begintalknode 43;
	state = 40;
	personality = 44;
	nextstate = 40;
	condition = 1;
	question = "How is the game going?";
	text1 = "_Phaedra is really good. I'm losing._ Ethass laughs. _Oh well._";
	
// *** Machrone ***

begintalknode 50;
	state = -1;
	personality = 45;
	nextstate = 50;
	condition = 1;
	question = "Machrone";
	text1 = "Machrone looks around the pen, scribbling notes as always and grinning. He fumbles with something in his pocket for a moment before he sees you approach and greets you with a firm, _Hello!_";
	text5 = "Machrone jots another note as he waits for your next question.";
	action = INTRO;

begintalknode 51;
	state = 50;
	personality = 45;
	nextstate = 50;
	condition = 1;
	question = "What's the news? Anything interesting?";
	text1 = "_We seem to have driven back the forces of Gnass finally. Their pursuit of our blasphemy seems to have ended. They still hold the west shore, though, so we cannot go back: we must press on towards our destiny._";

begintalknode 52;
	state = 50;
	personality = 45;
	nextstate = 50;
	condition = 1;
	question = "Did you not merit a spot in a tent?";
	text1 = "Machrone smiles with a bit of chagrin. _Ah, yes, well, the leaders decided that since my work is the least physically strenuous here, I would not need the quiet and shelter provided by a tent, best reserved for the physically exhausted like Talas._";
	text2 = "He adds, _I'm sure it was meant as no slight to my importance. After all, it is through me that the entire rest of the world will hear about all of your deeds._ He smiles proudly.";

begintalknode 53;
	state = 50;
	personality = 45;
	nextstate = 50;
	condition = 1;
	question = "What was that in your pocket?";
	text1 = "_A most recent arrival,_ he says with a broad grin. _It's an Orb of Far Speech, which allows me to dictate my reports to someone in Valorim who will then print them and disseminate them widely throughout Avernum and the Empire._";
	text2 = "He pats his pocket. _By means of this orb, the entire world will know what we're doing. Yes, indeed, this is the best assignment a new reporter could have wished for._";
	text3 = "You wonder if anyone is even listening on the other end when he gives his reports.";
	
// *** Pithoss ***

begintalknode 60;
	state = -1;
	personality = 45;
	nextstate = 55;
	condition = 1;
	question = "Pithoss";
	text1 = "Pithoss nods to you as you approach. _Greetings,_ he says. _I have instructions for you._";
	text5 = "_What else is there?_ Pithoss asks, his voice hissing gently.";
	action = INTRO;

begintalknode 61;
	state = 55;
	personality = 45;
	nextstate = 55;
	condition = 1;
	question = "What should I do now?";
	text1 = "_We have no idea how far it is to civilization. The major city before Vasskolis was Thassaka, but it may be equally cut off from the inner homeland. To be careful, we must prepare for the worst: a journey of several weeks down the river._ He pauses.";
	text2 = "_We are not yet ready for river travel. We were going to build boats, but we did not have time before the attack. We only have one boat. Go back to the east riverbank where we emerged, where that boat is waiting for you. Take it and travel south._";
	text3 = "He continues, _We need you to tell us what is ahead. Scout and clear the way. These tunnels are known to be filled with dangerous monsters. Eliminate the ones in the way. We have many with us who are not warriors, and we can ill afford another battle._";
	text4 = "He finishes, _When you have found a good stopping place for us, or an obstacle that you cannot pass, return here and consult with me again._";
	code =
	set_flag(4,1,1);
	set_flag(3,1,1);
	toggle_quest(0,1);
break;

begintalknode 62;
	state = 55;
	personality = 45;
	nextstate = 55;
	condition = 1;
	question = "What did you think of Legare's miracle?";
	text1 = "Pithoss's expression is impossible to read, but you can tell that something troubles him about this. _It was... impressive. The Goddess is truly powerful._";

begintalknode 63;
	state = 55;
	personality = 45;
	nextstate = 55;
	condition = 1;
	question = "Where is everyone? There aren't many people in camp.";
	text1 = "_Yes,_ Pithoss says. _Many are away doing work for the expedition, one way or another. Some are gathering wood for fire. Some are catching fish down by the river. At most times, only a few members of the expedition will be in camp._";

begintalknode 64;
	state = 55;
	personality = 45;
	nextstate = 55;
	condition = get_flag(221,0) == 1;
	question = "I found some waterfalls down the river. (Tell him what you've seen.)";
	text1 = "Pithoss listens carefully. _It sounds as though you've found no new stopping place for the expedition,_ he says. _Proceed down the waterfalls. We must know what is beyond them. Just know that you will need to find some other way to return._";