// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(78,0) == 0;
	question = "special";
	text1 = "The road you are on runs from Fort Dranlon, to the west, to Cotra and Silvar. Some effort has been exerted to keep the trees from overgrowing the path. Without maintenance, however, the fungal forest will soon creep over everything.";
	text2 = "The road bears the signs of several recent, vicious battles. Passing caravans were hit by intense, lightning-fast ambushes. Magical attacks scarred the stone. It's unlikely that there were survivors.";
	action = SET_SDF 78 0 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(78,1) == 0;
	question = "special";
	text1 = "Chitrachs have been hard at work in this tunnel, trying to burrow their way under Fort Dranlon. It looks like the excavation efforts have recently resumed. Chitrach forelegs are hard enough to slowly burrow through solid rock."; 
	action = SET_SDF 78 1 1;



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

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Fort Dranlon - West";
	text3 = "  Cotra, Silvar - Southeast";


begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You hear a hissing and clicking, coming from all around you. The nearby piles of scree start to shift around on their own.";
	text2 = "And then chitrachs erupt out of the piles of the stone. You have stumbled into an ambush!";
	text3 = "And then your chitrach-shaped brooch glows slightly. The strange sounds stop. Everything is still again.";
	code =
		if (has_spec_item(13) == 0)
			rs(3);
			else rs(2);
	break;


//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 16;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 17;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 18;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 19;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 20;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 21;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 22;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 23;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 24;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 200;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The caravan has stopped for a rest. The fungal forest around you seems ominously quiet. Some of the refugees sit down and fail to relax. The marks of earlier ambushes are still plainly visible nearby.";
	text2 = "Then one of them points to the south. _What was that? There was ... something._ You look where he is pointing. You don't see anything, at first.";
	text3 = "And then you see them. A least a half a dozen of them, human, materializing out of the trees. Most to the south, some to the west. Toward you. As they get close, two of them hold out their arms. Clouds of flame appear around their hands.";
	text4 = "The refugees scream. Then they turn and run back toward Fort Dranlon. Without your help, none of them will survive.";
	
begintalknode 201;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You come face to face with a man in plate armor. He must be their leader. An odd black amulet hangs from around his neck.";
	text2 = "He lifts his visor and looks at you. _It's ... Yes. It's you. We will be rewarded with a generous bounty for killing you._ He lowers his spear and charges.";

begintalknode 202;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The leader of the brigands runs into the undergrowth and disappears. You look around, but he is gone. That is very unfortunate. Had you killed him, you might have learned something useful.";
	text2 = "At least you have a little bit of information to carry back to the commander.";

begintalknode 203;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The leader of the marauders falls to his knees, gasping and coughing blood. His spear falls to the ground.";
	text2 = "_You ..._ he gasps. _You will not take me back._ In an instant, he has a long, vicious dagger in his hand. _I will not be taken._ You try to stop him, but he's too fast. One quick, lethal motion, and he is dead.";
	text3 = "Now that he is still, you get a closer look at the odd amulet around his neck. It is an intricate onyx carving of a chitrach. Interesting. You take it.";
	code =
		set_spec_item(13,1);
		sf(78,5,2);
	break;
	
begintalknode 204;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This is one of the refugees who have been selected to head back to Silvar. All of them look miserable and terrified. From what you've heard, they have good reason to be afraid.";
	text2 = "This is one of the refugees who want to head back to Silvar. After the marauder attack, there is little chance that they will have the courage to leave Fort Dranlon any time soon."; 
	code =
		if (gf(77,4) < 3)
			rs(1);
			else rs(2);
	break;	
////

begintalknode 299;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		