// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(55,0) == 0;
	question = "special";
	text1 = "There is a small encampment to the south, nestled in a small clearing surrounded by huge stone spires. It looks like a bunch of herb-gatherers, rooting up useful plants and slime from this swamp.";
	text2 = "One thing is strange, though. From here, you can see humans, sitting around a cookfire. There are no slithzerikai in sight.";
	action = SET_SDF 55 0 1;


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 = "There are several slithzerikai farmers here, tending to and expanding this orchard. Cavewood trees don't provide much fruit, but they are better than nothing.";
	text2 = "When they see you, they shout in panic. Being Avernites, they assume that you are here to mindlessly slaughter them. Or do worse.";
	text3 = "Before you can even say a word, they are running for their crude weapons.";
	code =
		alert_char(30007);
	break;
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The people in the pens are desperately tired and hungry. All they want is to get away.";

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "One of the armed humans sitting by the fire says, _Talk to Dedrick. We are just ... uhhh ... prisoners here._";


//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "From here, you get a good look at this camp. It is, indeed, full of humans. Some of them better treated then others.";
	text2 = "In the alcove to the northeast, there are five people, men and women. They are dressed in rags and look desperately hungry. Their hands are stained green, testifying to their many long hours digging in the swamps.";
	text3 = "The four people near the fire, on the other hand, look clean and well fed. And armed. It seems obvious that they have been enslaving their fellow humans, probably to get the approval of the slithzerikai.";
	text4 = "Their leader, realizing how bad this situation looks, approaches you nervously. _We ... We are saved! I am Dedrick. We have long hoped that Avernite soldiers would come. We have kept each other alive as best we could._";
	code =
		set_attitude(30010,10);
		set_strategy(5973,10);
		set_foe_target(5973,5980);
	break;
	
begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Some of you don't look well cared for.";
	text1 = "Dedrick looks at the miserable souls in the alcove. They look away, afraid of what will happen if they contradict their master.";
	text2 = "_It has been hard. Don't let appearances deceive you. We have all had a terrible time. Just struggling to stay alive._";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Are you from all around here?";
	text1 = "_Yes. We are all Formellans. We kept ourselves alive by proving our value to the slithzerikai. All working together. Keeping up a united front. Waiting until the day that you might rescue us._";

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "You are obviously slavers. You don't deserve to live. (Attack.)";
	text1 = "Dedrick's affable exterior instantly disappears. He sneers. _And you would choose to die? Commanding these wretches in order to survive? If you would choose otherwise, you are a fool!_";
	text2 = "The slavemasters jump to their feet and draw their blades. Their prisoners, driven half mad by fear, run out of their pen. They start grabbing food and looking for an escape route.";
	action = END_TALK;
	
begintalknode 14;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Why are you still alive?";
	text1 = "_Oh, well, we are all prisoners of the horde. We work together and forage in the swamps, and they let us live._ He looks at the slaves as if daring them to contradict him. They don't.";
	text2 = "_But now ... You are here. You snuck past the horde. And they don't know you are here. I'm sure ... They would want to._ You can see the gears grinding in his head.";

begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "I don't think you all work together at all. I think you keep the horde happy by enslaving your fellow humans.";
	text1 = "_Enslave? What a horrible word! Enslave! Protect is more like it! Thanks to all our efforts, together, we are all still alive!_ He looks at the slaves. They look away.";
	text2 = "_I think you should consider your words more carefully._";

begintalknode 16;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Why don't you come with me?";
	text1 = "_I ..._ Dedrick looks out to the north. _That is a lot of hostile land. A long way to travel. And some in Avernum might not ... Might not understand how hard it is to survive here._";
	text2 = "_I think we had better all stay here._ Some of the slaves are casting longing glances at the passage to the south.";

begintalknode 17;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "You all wait here then. I'm going to go explore.";
	text1 = "The slaves look confused. The guards look worried. As you turn to go, they engage in a quick, whispered conversation.";
	text2 = "Dedrick clears his throat. _Wait. You know, if the horde learns that spies came here and we let them go ..._ He shakes his head. _We need to survive. We will do what it takes. Only a fool would do otherwise._";
	text3 = "The slavemasters jump to their feet and draw their blades. Their prisoners, driven half mad by fear, run out of their pen. They start grabbing food and looking for an escape route.";
	action = END_TALK;

begintalknode 18;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Well, I am not leaving these slaves here. I am freeing them. What say you to that?";
	text1 = "Dedrick's affable exterior instantly disappears. He sneers. _If the horde learns that spies came here and we let them go ... Avernite or not, we have to kill you. If you would do otherwise, you are a fool!_";
	text2 = "The slavemasters jump to their feet and draw their blades. Their prisoners, driven half mad by fear, run out of their pen. They start grabbing food and looking for an escape route.";
	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 = "";
		