// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(72,0) == 0;
	question = "special";
	text1 = "You get a good look at the farmland south of Spire. It looks like this expanse of cave was once fairly productive. Then the Blight came and devastated the crops with predictable thoroughness.";
	text2 = "The farmers are currently in the process of replacing the mushrooms with fruit trees, even though those will produce far less food than what was there.";
	text3 = "Though Spire has little food, the farmers seem far better off than you'd expect. They are thin but not emaciated, unhappy but not desperate. This is interesting, as little of the aid that came through the Great Portal came out here.";
	action = SET_SDF 72 0 1;


begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Blighted mushrooms do still have one use: Giant lizards can eat them, and it doesn't spoil their meat. Several of the foul-tempered beasts are out grazing.";
	text2 = "Happily, they are all muzzled and their claws are filed down. They can't do much harm to you.";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The people of the Abyss are normally cold and unfriendly to outsiders. That goes double for Avernite soldiers. None of them speak with you.";
	text2 = "You do notice, however, that they must be getting food from somewhere. They're hungry but not starving. Interesting.";



//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is one farmer out here who is willing to talk to you. He is in his sixties. He's survived many, many years of harsh life out here in the Abyss. He's worn out, but he struggles on.";
	text2 = "When you approach, he offers you a cup of water. _Avernite soldier. Don't see many of your kind out here. I'm Goodman Rem._";
	text3 = "_I hate to say it, but I'm willing to trade with you. I need the money._";
	text5 = "Goodman Rem sits cross-legged on his dirty pallet and looks up at you. _I'm still willing to trade. Don't like it, but I have no choice._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Tell me about the Abyss.";
	text1 = "_The only place left in this whole world for people who want to be free. I answer to nobody, and nobody answers to me. No laws but the most basic ones. As it should be._";

begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "And Avernum isn't like that?";
	text1 = "He snorts. _Under mighty King Starrus? Avernum just wants to be another little Empire down here. More laws, more taxes, more control._";
	text2 = "_Avernum? Pfaugh! Don't congratulate yourselves too much!_";

begintalknode 13;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "But isn't it dangerous?";
	text1 = "_Very. And hard. It's a rough life. I've buried many ... many ..._ He shakes his head. _But I've sent children out into a free world. We're a lonely light out here in the Abyss._";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Where have you been getting your food?";
	text1 = "He shakes his head. _I'm talking to you too much as it is. I have a reputation to look out for. Reputation is important out here._";

begintalknode 15;
	state = 10;
	nextstate = 12;
	condition = 1;
	question = "You have something to sell me?";
	text1 = "_Out here, we gain wealth in good times and sell it to survive in the hard times. It's how we are. I have a few trinkets I'd sell you. For a fair price, mind._";

begintalknode 16;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "Let me see what you have.";
	text1 = "You conclude your business.";	
	code = 
		begin_shop_mode("Rem's Trinkets",
		  "Rem has bought or found (or stolen) a surprising number of trinkets. Some of them are actually valuable.",
		  55,5,0);	
	break;


begintalknode 17;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "Can I sell you something?";
	text1 = "He snorts. _We out here are proud, but poor. I don't have money to spare._";

begintalknode 18;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "I don't need anything.";
	text1 = "_Then move on. I only spoke with you to trade._ He waves you off.";
	action = END_TALK;

begintalknode 19;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "There is something I'd like to know.";
	text1 = "He shakes his head. _I only wanted to trade. If you have no money to spare, I don't have anything to say to you. Avernite._ He waves you off.";
	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 = "";
		