// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(127,2) == 0;
	question = "special";
	text1 = "Several piles of humanoid bones have been ostentatiously left by these wooden pillars. A sign identifies them as the recent recipients of Dharmon's harsh brand of justice.";
	action = SET_SDF 127 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(127,3) == 0 && char_ok(13734) && get_attitude(13734) < 10;
	question = "special";
	text1 = "This was a foundry. Ore was hauled to here, and metal bars were extracted from it. Metal has always been valuable in Avernum. In the early days, some warriors even used stone weapons. Hard to believe, now.";
	text2 = "A guardian has been left behind to protect the foundry. It is a sentinel, a magically animated suit of armor with blades emerging from its gauntlets.";
	text3 = "When you get close, its head swivels to look at you. A pair of angry red eyes glow within the darkness of its helmet. You are not welcome.";
	text4 = "When you get close, its head swivels to look at you. Then it swivels back to its original position. The glowing eyes within its helmet flicker and then go dark. For some reason, it is not hostile.";
	action = SET_SDF 127 3 1;
	code =
		if (has_spec_item(23))
			rs(3);
			else rs(4);
	break;
	
begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(127,4) == 0;
	question = "special";
	text1 = "As you descend into this abandoned mine, you feel a powerful chill. After the miners left, something else moved in.";
	text2 = "A pair of small, humanoid footprints are visible in the frost on the floor. You lose track of the trail after about ten feet.";
	action = SET_SDF 127 4 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  WARNING!";
	text3 = "  THIEVES! SKRIBBANE EATERS! VAGRANTS!";
	text4 = "  THIS IS WHERE DHARMON WILL PUT YOU!";
	text5 = "  MOVE ON!";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several refugees sitting around this fire, sharing a miserably thin soup and discussing where to go next.";
	text2 = "When you get close, they get very quiet. You note that each of them has a weapon nearby. Usually a crude club or hunting bow, but still. You move on.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This sign, probably identifying who owns this claim, has been defaced.";
	
begintalknode 7; // goblin
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There is a dead goblin here. He ran down into this mine for some reason and got trapped in this dead-end. Then something horrible happened. The body is frozen still.";
	text2 = "Remembering what Dragan told you, you search the area around the goblin. Sure enough, you find something. The creature dropped a small iron key. You find it under a rock and pocket it.";
	code =
		if ((gf(113,3) > 0) && (gf(127,5) == 0)) {
			sf(127,5,1);
			set_spec_item(53,1);
			}
			else rs(2);
	break;

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Someone smashed this sign with a hammer.";

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You have finally tracked the leader of the nephilim bandits down in his lair. He stands in the far alcove, surrounded by his lieutenants and his pet wolves.";
	text2 = "He wears a heavy chain around his neck. There are three glass globes hanging from it. He fingers the globes delicately and hisses at you.";
	text3 = "_Hmrrrr! You have tracked down Chief Kah'Horrr, and you think you will defeat him. No! We of the Fang Clan have lost our lands, but we will not surrender! Not without a true battle!_";
	text4 = "Before you have a chance to respond, he releases the hounds.";

begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Chief Kah'Horrr pulls one of the globes from his chain and throws it against the ground. The gas within it spreads out. You begin to choke.";

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Chief Kah'Horrr pulls one of the globes from his chain and throws it against the ground. The gas within it spreads and then coalesces into several snarling forms.";
	
begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Dharmon, The Castle - East";
	text3 = "  Fort Saffron - North";
	text4 = "  Patrick's Tower - Southeast";
	text5 = "  Fort Remote - South";		

//


//

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