// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(116,0) == 0;
	question = "special";
	text1 = "You stare out at what was once prime Avernite farmland. Now abandoned, crumbling, and festooned with spiderwebs.";
	text2 = "The fields of mushrooms, completely infected with the blight, have been left untended. Thick, fungal trees are starting to overgrow the fields, and the farmers, having no reason to stay, have left.";
	text3 = "You see shadows scuttling through the distant stands of trees. It is the story all over Avernum. As humans flee, pests move in.";
	action = SET_SDF 116 0 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  The Castle - East";
	text3 = "  Fort Emerald - North";
	text4 = "  Gnass - West";
	text5 = "  Dharmon - Southwest";


begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several soldiers on duty here, keeping the road clear for travelers. Only the road. Once you step off of it, you're on your own.";
	text2 = "This soldier greets you, warns you to watch out for spiders, and returns to his business. He's gotten very little sleep out here. His weapon is stained with green goo, which was probably recently in a giant bug of some sort.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  WARNING!";
	text3 = "  Woods are spider-infested!";
	text4 = "  Do not eat Blighted mushrooms!";
	text5 = "  These messages brought to you by the Avernum Safety Council.";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Fort Emerald - North";
	text3 = "  Gnass - West";
	text4 = "  Dharmon - Southwest";	
	text5 = "  Patrick's Tower - South";
	

//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Sergeant Benmer";
	text1 = "There is a sergeant sitting by the fire, tending to a thin mushroom gruel bubbling in the pot. When you get close, she leaps forward, jumping between you and her food. She relaxes visibly when she sees that you are a soldier.";
	text2 = "She sits back down and gets to stirring. _Greetings to you. Sorry about that. Travelers smell the food, and, well, we don't have any left for sharing. Leads to arguments, as you can imagine._";
	text3 = "_I'm Sergeant Benmer. Can't help you much. Have to watch the road. But I can give directions if you need them._";
	text5 = "Sergeant Benmer continues to stir her stew. She sips it occasionally, and you can see just how thin and watery it is. This is a pretty miserable little outpost.";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "A lot of people beg for stew?";
	text1 = "She laughs. _You don't know the half of it!_";
	text2 = "She seems pretty casual. If she's noticed that she outranks you, she doesn't show it.";
	text3 = "She seems pretty casual. If she's noticed that you outrank her, she doesn't show it.";
	text4 = "_Refugees go west. Refugees go east. And every single one that passes by asks for a bowl of stew. But we need every drop to keep up our strength. To keep them safe._";
	code =
		rs(2); rs(3);
		if (gf(170,0) == 0)
			as(2);
		if (gf(170,0) > 1)
			as(3);
	break;
	
begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Can I have some stew?";
	text1 = "She raises her eyebrows. _Ah. You're making a joke. I remember those._";

begintalknode 13;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "And they argue with you?";
	text1 = "_People get pretty desperate. None of them are starving to death, but they all have an aching in their bellies. Including us._";
	text2 = "_So tempers are high. Sometimes, words get pretty heated. But we haven't had to fight anyone. Yet._";

begintalknode 14;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Where are the refugees going?";
	text1 = "_Mostly to the Great Portal. Some are following rumors of places untouched by the Blight. Some are going to a food depot, or to a portal lottery. Sometimes we see the same faces pass three times in a week._";
	text3 = "_Anywhere a rumor tells them they can build a new life. Now that the Great Portal is gone ..._ She shakes her head. _Things got worse overnight. Everyone is desperate now. You can see it in the eyes. Panic._";
	action = DEP_ON_SDF 170 1 10;
	
begintalknode 15;
	state = 10;
	nextstate = 12;
	condition = 1;
	question = "Tell me about these woods.";
	text1 = "_This? This was farmland. Once. The crops remain, but don't be tempted. Eating them is a mistake you'll only make once._";
	text2 = "_Still, it's not as dangerous as other places. Stay on the road and you'll be fine._";

begintalknode 16;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "What is off the road?";
	text1 = "_Spiders. Big ones. They're shy creatures. They keep to themselves. The ones that don't get weeded out real quick._";
	text2 = "_But, if a meal puts itself right in front of one, it won't be shy._";

begintalknode 17;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "What would happen if I ate one of those mushrooms?";
	text1 = "_All that stuff in your stomach? It'll soon be outside your stomach. If you catch my meaning. And the cramps will be with you for a few days to boot._";
	text2 = "_Don't try it._";

begintalknode 18;
	state = 10;
	nextstate = 13;
	condition = 1;
	question = "What is near here?";
	text1 = "_Well, the Castle is to the east, but I'm sure you know that._";
	text2 = "_Closest to here are Fort Emerald, Gnass, and Dharmon._";

begintalknode 19;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Tell me about Fort Emerald.";
	text1 = "_It's just north of here. The fort we're based out of. It defends the Great Cave from anything coming out of the Scree Caves, farther north._";
	text2 = "_It's closed up pretty tight. You can't get in unless you have orders to go there._";
	
begintalknode 20;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Tell me about Gnass.";
	text1 = "_It's the big slith colony, just west of here. I've been there a few times. Good folks. Ummm ... creatures. Lizards. You know._";
	text2 = "_They're pretty jumpy there. A lot of people think the slithzerikai caused the Blight. Nonsense, if you ask me, but hungry people get crazy._";

begintalknode 21;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "Tell me about Dharmon.";
	text1 = "_A big city, west of here, in tunnels below the Great Cave. I hear the law there is harsh. The mayor is using all means to keep control. And I mean all means. I'd be careful there. Not the best place to go on leave, if you get me._";

begintalknode 22;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Thanks for your help.";
	text1 = "She nods. _Safe travels. And, unless you're looking for action, stay on the roads._";
	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 = "";
		