// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(38,0) == 0;
	question = "special";
	text1 = "This swampy land looks like a productive natural source of herbs. Avernum is the best source of some molds and fungi much prized by alchemists. Selling them to the mages of the surface world is quite profitable.";
	text2 = "However, the slithzerikai own these lands, now, and you can see trails through the fungal undergrowth. Someone has been gathering the precious flora, although none of them are out in the fields now.";
	text3 = "You can see a rough stone fortification in the southeast corner of the swamp. There are torches on the walls, and trails of smoke rise from within. The slithzerikai (and their field hands) must be within.";
	action = SET_SDF 38 0 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(38,1) == 0;
	question = "special";
	text1 = "You enter the small slithzerikai stockade and immediately realize who they use to work the swampy fields.";
	text2 = "In the alcoves to the northeast, you can see human and nephil slaves. There are only six of them left, probably the survivors of a much larger group. They look hungry, bedraggled, and miserable.";
	text3 = "And, to the south, you can see several tribal slithzerikai. The savage variety, the ones who would not hesitate to engage in constant and gratuitous cruelty against the people of Avernum.";
	text4 = "The moment they see you, they draw their blades and grab their spears. _More slavessss ..._ one of them hisses. _A fresh supply! Take the intruder!_";
	action = SET_SDF 38 1 1;
	code =
		activate_hidden_group(43);
		add_range_to_group(4110,4113,43);
		set_name(30043,"Horde Slavemaster");
		set_level(30043,28);
		set_new_abil(30043,15);
	break;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to talk to one of the exhausted slaves. However, they are too distracted by the nearby slithzerikai.";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to talk to one of the exhausted slaves. They are too busy gathering supplies and food and preparing to run. One of them says, _Thank you for killing those creatures. Talk to Roagan. We have work to do._";


//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "When you get close to the slaves, you can see how miserably they have been treated. Death was too good a fate for the slavers you destroyed. Some of the survivors are gathering their meager possessions. Staying here would mean death.";
	text2 = "One of the slaves, a young man who has somehow managed to retain some of his spirit, says, _Thank you. This was ... This was more than we expected. We had given up._";
	text3 = "_I am Roagan. I ... I still don't think we have much hope. Not unless you help us._";
	text5 = "Roagan says, _Thank you again for freeing us. It is only a brief reprieve, though. The slithzerikai will surely hunt us down unless you help us._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Where are you from?";
	text1 = "_We are all from Fort Draco and the farms near it. We and our families didn't flee as quickly as we should have. We hoped to defend our homes. That foolish decision cost ..._ His voice catches slightly. _Cost us a lot._";
	text2 = "_But our being from near here gives us hope._";

begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "How long have you been here?";
	text1 = "_For ... We have lost track. We stopped counting. Months, most likely. We had no hope left._";

begintalknode 13;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "What were the slithzerikai having you do?";
	text1 = "_Herbs. Only herbs. Out in the swamps, until we could stand no more, with little food. Happily, work was the only hard use they put us to. They were content to only work us to death._";

begintalknode 14;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Why do you have hope now?";
	text1 = "_We grew up here. It will take years for the sliths to know these tunnels as well as we do. We have hope of getting somewhere safe if we can just get to the lower passages._";
	text2 = "";

begintalknode 15;
	state = 10;
	nextstate = 12;
	condition = gf(170,7) == 0;
	question = "Can you tell us about the sliths in this area?";
	text1 = "He shakes his head. _They kept us in a very small world. I only know one thing._";

begintalknode 16;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "What is that?";
	text1 = "_Most of their army is directly to the east. Don't go there. There are so many of them. Hordes. We've seen them march by._ You ask him how Formello might best be reached.";
	text2 = "_There are two roads to Formello. One goes east from Fort Draco. The fort is to the northwest. Go there, then east._";

begintalknode 17;
	state = 10;
	nextstate = 13;
	condition = gf(38,12) < 2;
	question = "I would like to help you escape.";
	text1 = "_That is a relief. You will have to help us quickly. More sliths could come and slaughter us at any moment._";
	text2 = "_We need to get to the lower tunnels. Then we might be able to get away. The stairs are back there._ He points to the south.";
	text3 = "_However, there is something guarding the way. Something that would happily hunt and eat us._";
	code = 
		sf(38,12,1);
	break;
	
begintalknode 18;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "What is down there?";
	text1 = "_Two drakes. Creatures that work for the horde. That hunt the low tunnels, looking for spies. Sometimes they come up here. Once, a slith gave ... gave one of us to the creatures._";
	text2 = "_If they are dead, we can escape safely._";

begintalknode 19;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Will you need supplies?";
	text1 = "_We will take all we can carry from this fort. Food. Weapons. Fishing poles. We will survive, once we get to the deeper tunnels._";
	text2 = "_And then, maybe, with luck, a little revenge._";
	
begintalknode 20;
	state = 10;
	nextstate = -1;
	condition = gf(38,12) == 1 && gf(38,13) > 1;
	question = "I have killed the drakes.";
	text1 = "You expected for the slaves to wait a moment before fleeing. They don't. _Thank you, warrior. Now we must flee. At any moment, a slith patrol might return. And ... and ... Did you hear that?_";
	text2 = "_It is too late! They will not take us alive! We will die fighting them!_ They begin to run toward the exit.";
	text3 = "At first, you think that they are being paranoid. (Though justifiably so.) And then you hear the ominous sound of stone grinding on stone coming from the south wall.";
	action = END_TALK;
	code =
		sf(38,12,2);
		set_terrain(0,685,180,0);
		
		activate_hidden_group(43);
		add_range_to_group(4114,4118,44);
		set_level(30044,28);
		set_name(4117,"Shaman Kyess'Tk");

		set_name(4118,"Herbmaster Sss'Om");
		set_new_abil(30044,15);

		set_act_at_dist(30045,1);
	break;

begintalknode 21;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just stay here for now.";
	text1 = "_All right, but please hurry. A slith patrol might come and slaughter us at any moment._";
	action = END_TALK;

//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 34;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 35;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 36;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 37;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 38;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 39;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 40;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 41;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 42;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 43;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 44;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

////

begintalknode 299;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		