// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(119,0) == 0;
	question = "special";
	text1 = "You row your craft out onto the massive lake at the south end of the Eastern Gallery. It is a beautiful, peaceful sight, and your cavewood skiff moves smoothly and confidently across the water.";
	text2 = "As you stare out at the dark lake, illuminated by the constant green glow from above, you are able to enjoy a moment of peace. For a short time, you forget about the suicidal mission that has been assigned to you.";
	text3 = "And then the moment passes, and you resume rowing. You have a long way to go to the northern lands. Then a long hike east through enemy territory, in the hope of infiltrating Formello."; 
	action = SET_SDF 119 0 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You read the sign. It says, _Territory Claimed By Mother Alice._ And then it gives a date, several months past. You wonder if Alice knew before she purchased the land that you can easily smell the reek from the nearby trash pit.";
	text2 = "You can probably consider this claim to be checked.";
	code =
		if (gf(130,6) != 1)
			rs(2);
		if (gf(130,7) == 0) {
			sf(130,7,1);
			inc_flag(130,10,1);
			}
	break;
	

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The rat squeaks and runs away. It wishes no quarrel with you.";


begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  The Castle - West";
	text3 = "  Almaria, Great Portal - East";

//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a merchant (of sorts) sitting by the road here, a healthy distance from any settlement. There is a straw mat in front of him. On the mat are a variety of rather unappetizing strips of dried meat.";
	text2 = "_I'm Mert,_ he says. _I have meat for sale. You want to buy some meat? I have meat._";
	text5 = "Mert looks up at you. He occasionally uses his hand to brush off the dust collecting on his unappetizing meat strips. _So. You need meat? I still have meat._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "I would like to know more about this meat.";
	text1 = "Mert looks vexed. _What's to know? It's meat! Look at it!_ He points at it, giving you time to look.";
	text2 = "_See? Meat._";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I want meat!";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Mert's Meat",
		  "Mert, as promised, has meat. It is of questionable quality and origin, but it's definitely meat. You can't take that away from him.",
		  74,6,0);	
	break;


begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I don't want meat.";
	text1 = "_Then Mert doesn't have anything else to say to you._ He points at the sad display of meat. _I have meat. You want meat? Come to Mert. No need for meat? Mert is not for you. Leave me to my other customers._";
	text2 = "He waves you away. Then he goes back to waiting for someone else to come down this road.";

begintalknode 14;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Is it tasty?";
	text1 = "_How could it not be tasty? It is meat._";

begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Is it expensive?";
	text1 = "_It would be a bargain at half the price. Also, it is expensive._";

begintalknode 16;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "Where did this meat come from?";
	text1 = "Mert looks nervous. _What sort of a question is that? What are you accusing Mert of? This is good, healthy, legal meat._ He pokes one of the dried strips gingerly with his forefinger.";
	text2 = "_It's meat. What else do you need to know?_";

begintalknode 17;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "I still need to know where the meat is from.";
	text1 = "_Fine. Go somewhere else. Leave Mert alone. I will go back to my other customers. Meat!_ He calls out to the empty road. _Come get meat!_";
	action = END_TALK;

begintalknode 18;
	state = 12;
	nextstate = 10;
	condition = 1;
	question = "Fine. Whatever it is from, I want in.";
	text1 = "_Now you are talking Mert's language. Let's do some business!_";

begintalknode 19;
	state = 12;
	nextstate = 10;
	condition = 1;
	question = "Mert, I sincerely apologize for doubting you.";
	text1 = "Mert nods. _Don't just apologize to me. Apologize to the meat._ You decline to apologize to the meat.";
	text2 = "_Fair enough,_ Mert says. _Let's get back to business. Meat business._";


//

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 = "";
		