// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(157,2) == 0;
	question = "special";
	text1 = "You are at the entrance to the Patrick's Tower experiment halls, and powerful defenses are in place. At least, that's what the obelisk outside said. It looks pretty quiet and unthreatening.";
	text2 = "It is an impressive stone hall. The floor is covered with ruts and scuff marks, bearing testimony to the many (hundreds? thousands?) of supply wagons that have been brought through here.";
	text3 = "And yet, there are no visible guards. Odd.";
	action = SET_SDF 157 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(157,3) == 0;
	question = "special";
	text1 = "It seems that you have found the guards for the experiment halls. There are eight sentinels in this hall, magical constructs created to mince intruders. Their heads slowly swivel toward you when you enter.";
	text2 = "You don't have anything to show them to gain passage. This tunnel has suddenly started to feel extremely dangerous.";
	text3 = "You finger the turquoise bracelet you received in the tower, desperately hoping that it works as promised.";
	action = SET_SDF 157 3 1;
	code =
		if (has_spec_item(23))
			rs(2);
			else rs(3);
	break;
	
begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(157,4) == 0;
	question = "special";
	text1 = "You have finally tracked down the squatters you were warned about, the infiltrators that snuck into the complex and threaten Horyn's delicate experiments. Here they are, and you aren't impressed.";
	text2 = "They have weapons and armor, sure. Leather jerkins and dented, rusty blades. They leap to their feet and draw their weapons when they see you, but their inexpert positions and trembling hands show a profound lack of skill.";
	text3 = "The squatters are just that, squatters, though at least one of them is skilled at training wolves. They're just desperate, hungry people. It is a difficult situation, but they have to leave this place.";
	action = SET_SDF 157 4 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The obelisk says:";
	text2 = "  PATRICK'S TOWER EXPERIMENT ACCESS";
	text3 = "  QUARANTINE IS IN PLACE!";
	text4 = "  DEFENSES ARE ACTIVE!";
	text5 = "  DO NOT ENTER WITHOUT AUTHORIZATION";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sentinels step off of their platforms, raise their arms, and silently move toward you. Long blades emerge from their forearms. They look nasty.";
	text2 = "The defenses of the tower are slowly becoming active. They are going to try to eject you. In as lethal a way as possible.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sentinel is a marvelous mixture of clockwork and magic, unlike anything available anywhere in Avernum. They are a fantastic creation, tireless and deadly.";
	text2 = "They don't react to your presence at all.";
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = get_sdf(157,5) == 0 && char_ok(16995);
	question = "special";
	text1 = "A deep chasm dominates most of this room. The shaft extends out of sight both up and down.";
	text2 = "There are three enormous wolves curled up by the edge of the chasm. They were asleep. The moment you entered the chamber, their sharp noses detected you. They leap to their feet, snarling.";
	text3 = "They were set here to guard the tunnel, and they are very disciplined. They aren't attacking you yet, but that will change quickly if you get close.";
	text4 = "They really are quite large. Very impressive breeding on someone's part.";
	action = SET_SDF 157 5 1;

	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The road to Patrick's Tower is, appropriately, guarded by magical sentinels. They march around you, silently and tirelessly continuing their vigil.";
	text2 = "They must have instructions to destroy something, some way to distinguish an intruder from a welcome visitor. Fortunately, whatever their test is, you passed.";
	
begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	


//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "One of the squatters, who seems slightly less incompetent with his blade than the others, stands at the front of the group. His sword is actually quite nice. Maybe even valuable. Must be a family heirloom.";
	text2 = "He says, _Halt there, soldier. We have no quarrel with you. I am Dhera. This is our home. We are doing no harm here. We must ask you to go and leave us in peace._";
	code =
		set_act_at_dist(30042,1);
	break;
	
begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Where are you from?";
	text1 = "_We hail from Dharmon. The food there was too scarce and the law too harsh, so we left to find our own fortune. A place where we could keep to ourselves and be left alone._";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "How did you get in here? Past the sentinels, I mean?";
	text1 = "_Sentinels? We saw no sentinels. We slipped in through a mine tunnel. It was a hard climb, but we know how a rope works._";

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Who trained your wolves?";
	text1 = "Your words strike him like a blow. _My beloved pets? The ones you slaughtered? It was me._";

begintalknode 14;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "There are important experiments taking place down here. You have to leave.";
	text1 = "The squatters look at each other. Then they look at your blade. They are terrified. But Dhera says, _We are hungry people. And desperate. We aren't afraid to admit it._";
	text2 = "_There are fields of mushrooms below. Big fields, enough to feed many people. And the cave is free of the Blight ... We could keep growing them. You can't let the wizards destroy them with their experiments!_";

begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I have been ordered to get rid of the squatters. And I will. (Attack.)";
	text1 = "You draw  your blade and attack. Your foes prepare a last, desperate defense. You aren't afraid.";
	action = END_TALK;
	code =
		set_attitude(30042,10);
		sf(157,1,1);
	break;

begintalknode 16;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "The experiments here are for the good of Avernum.";
	text1 = "_You believe that? You really believe the wizards can still help us? They have done nothing, and they will continue to do nothing._";
	text2 = "_You have been to the tower. You have met them. They are barely sane. Their experiment will fail, and we will be denied those fields. You can't let that happen._";

begintalknode 17;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "My orders are to remove you. And I will.";
	text1 = "_You are only following orders? Have you no more ability to think than the tower's sentinels? We are doing no harm. We only want to live and to pick a few mushrooms for our meals._";
	text2 = "_If you have any interest in justice, you will turn and let us alone. Surely there is another task demanding your attention?_";

begintalknode 18;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "This is your last warning. Leave, or I will kill you.";
	text1 = "Dhera's head drops, defeated. He turns and consults with the other squatters. There is a brief, subdued conversation. Then he turns to you. _All right._";
	text2 = "_This is wrong. It is a crime. But I will not surrender the lives of my friends. We will go and trouble the tower no more. But remember, when the wizards waste more fields of mushrooms, the lives that food could have saved._";
	code =
		sf(157,1,1);
	break;
	
begintalknode 19;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "All right. I will let you stay here.";
	text1 = "Oh, well. You have a lot of different missions you can choose from. Dhera nods. _You have chosen wisely. I wish you well. And stay out of our camp. Otherwise, we will have to defend ourselves._";
	text2 = "They don't put down their weapons. They stand at alert, waiting for you to go.";
	action = END_TALK;
	
begintalknode 20;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Enough talking. I have my orders. Patrick's Tower will be rid of you. (Attack.)";
	text1 = "You draw  your blade and attack. Your foes prepare a last, desperate defense. You aren't afraid.";
	action = END_TALK;
	code =
		set_attitude(30042,10);
		sf(157,1,1);
	break;
	
begintalknode 21;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "How are you so sure the experiment will be a failure?";
	text1 = "He laughs bitterly. _We have been here for months. This is not the first experiment of theirs we have seen. We know how their work ends. But now they want no more witnesses, so we must leave._";
	text2 = "The squatters pack up their things and begin to depart. None of them look at you as they go.";
	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 = "";
		