// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(140,0) == 0;
	question = "special";
	text1 = "There are long streaks of slime on the stone. It's almost fresh. Some of the pools of it are still bubbling and hissing.";
	action = SET_SDF 140 0 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(140,1) == 0;
	question = "special";
	text1 = "Not all of the Western Reaches are completely barren. This cavern is full of mold and fungus, as well as the omnipresent pools of slime. And a few bones.";
	text2 = "There is a worm at the bottom of the pit. It's a huge, ugly, slow-moving creature. It's almost ten feet long, and patches of its skin have faded to a sickly gray.";
	text3 = "It is covered with scars, the signs of many battles. It must be an old creature, and remarkably hardy.";
	text4 = "It's also blind. It slithers around the cave, occasionally grazing on the mushrooms. It's not yet noticed you.";
	action = SET_SDF 140 1 1;

begintalknode 3; // caravan NOTE IS FOR ZONE 154, OOPS
	state = -1;
	nextstate = -1;
	condition = get_sdf(154,1) == 0;
	question = "special";
	text1 = "You stumble upon the remains of a caravan, recently fallen to bandits. They had hidden the wagon down here, in this low chamber, but a pack of nephil rogues found it.";
	text2 = "They are in the back of the chamber now, splitting up the wares from another robbery. Then one of their scouts sees you. He points at you and shouts, _There! Slay the soldier, for the Fang Clan!_";
	action = SET_SDF 154 1 1;
	code =
		alert_char(30021);
	break;
	
begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 10;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hack at the slimy beast. It lunges at you, snapping at the shadowy figures that are tormenting it.";
	text2 = "You then realize that the wounds in its side are starting to seal up. Soon, much of the damage that you have done to it has been healed, leaving behind a trickle of green ichor. This beast must have a remarkable constitution.";
	text3 = "The little bit of goo that has leaked out splatters and dries up quickly. There wasn't enough to grab for Danika.";
	code =
		if (gf(155,14) != 1)
			rs(3);
	break;

begintalknode 11;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You strike harder, slashing and blasting deeper rents into the side of the slimy beast. As before they seal up quickly. However, before they do, a large glob of green slime oozes out of one of the deeper cuts.";
	text2 = "You leap forward with Danika's flask and gather up the slime. Hopefully this will be enough. Now there is only the matter of dealing with the increasingly angry slime beast.";

begintalknode 12;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Several of the pustules on the side of the beast rupture. Several of its young slither out of the vile mess. You learn something interesting about the biology of this creature. Its young are born live. And hungry.";

begintalknode 13;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Your continuing presence begins to irritate the creature. It begins to flail around, hissing and spraying corrosive ooze. You have succeeded in getting it angry.";

begintalknode 14;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "At last, your onslaught has overwhelmed this creature's amazing recuperative powers. It expires. The land of Avernum is now short one remarkable (if vicious and nasty) resident.";

begintalknode 15;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The massive worm's wounds continue to slowly seal themselves up. However, no more of the precious green ichor comes out. It must take time to regenerate that stuff.";

begintalknode 16;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 17;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

//

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