// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(32,0) == 0;
	question = "special";
	text1 = "The servants of Melanchion have not settled this region yet. It is still a forest of odd stone formations, dotted with the signs of many small skirmishes.";
	text2 = "Instead of settlers, you see defenders. Many creatures wander among the stones, hunting for prey. Someone must have bred (or summoned) a variety of perilous fauna to hunt these lands for intruders.";
	text3 = "Somehow, you doubt that these creatures will respect the scale Melanchion gave you.";
	action = SET_SDF 32 0 1;
	code =
		if (has_spec_item(5) == 0)
			rs(3);
	break;
	
begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(32,1) == 0;
	question = "special";
	text1 = "You have found the ruins of a dock. First, Avernites used it to launch the boats that settled the northern frontier.";
	text2 = "Then the slithzerikai seized it. From here, they launched attacks against the few enemy settlements in the Northern Isles.";
	text3 = "Now the forces of Melanchion have taken the docks. They have no use for a navy. Instead, they planted a variety of hostile flora, to inconvenience anyone who would try to pass through here. Including, most likely, you.";
	action = SET_SDF 32 1 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(32,2) == 0;
	question = "special";
	text1 = "Recent cavequakes have turned this pit into a caldera of volcanic activity. You stare out through the open gate into a huge cave full of fumaroles. It is understandably painful to breathe.";
	text2 = "Lumps of basalt rise out of the roiling magma, enabling you to enter. Something else has, oddly, decided to settle here. A gazer floats about the central mound of stone. It stares at you. Its eyestalks writhe with excitement.";
	text3 = "There are also five pylons, dotted among the platforms. They pulse with a malevolent red glow. Considering how well your encounters with gazers tend to go, you get very nervous.";
	action = SET_SDF 32 2 1;

//

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The gazer has completely lost its power. It falls from the air and hits the stone with a sickening, wet thud. You have destroyed it.";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The four glowing pylons emit powerful waves of energy, filling the air all around them with lighting. Then they are quiet. For now. The gazer is already gathering power to charge them again.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Four of the pylons begin to pulse with a fiery energy. Only the southeast pylon seems unaffected. Perhaps the gazer only has enough power to charge four of them at once.";
	text2 = "They start to seem very dangerous.";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to speak with the gazer, but it turns away. You have shamed it, and it refuses to speak with you any longer.";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to speak with the gazer, but it turns away. _We know some of you are lurking in the shadows. Until you all present yourselves to us, we will not deal with you._";

begintalknode 9;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "A blue nimbus surrounds the gazer, projected by the pylons. It is protected from your blows. _If you would fight us, you may not skulk in the shadows. You must all face me!_";


//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You approach the gazer, who bobs unconcerned in the stifling air of the cavern. It looks almost bored as you approach.";
	text2 = "_We are Akhal Many-Eyes. And we know who you are. Melanchion has not paid us the additional tribute for our assistance. We will not serve him. You can take our message back to him. We of many eyes do not fear that lizard._";
	text5 = "Akhal Many-Eyes looks down at you with disdain. _You still disturb us? You do not look like you bring more tribute. We dismiss you._";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "What assistance do you give Melanchion?";
	text1 = "_We create some pets. We summon others and bind their weak minds with our power. We send them through the lands to destroy intruders. And we are not paid what we deserve!_";

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Why is Melanchion angry?";
	text1 = "_The lizard is greedy. We are not paid what we deserve. So we let our control lapse, and some of his precious Drayssas get eaten. We are not sorry. We are amused. And we say the dragon gets what he deserves for cheating us!_";

begintalknode 13;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Maybe I could pay you the tribute?";
	text1 = "_What? You? Not enough! We require regular payment! One sack of trinkets from you does not satisfy our desires, or our pride._";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Prepare yourself. I'm about to beat some humility into you. (Attack.)";
	text1 = "The gazer does not flinch. It neither moves nor utters a word of command, but everything changes. The pylons start to glow with a bright, fiery light. All of them but, oddly, the one to the southeast.";
	text2 = "Then the gates to the north slam shut.";
	text3 = "Akhal Many-Eyes mutters, _Melanchion dares to challenge us? The foolish creature. We will destroy his envoy. We will burn the intruder into bits. Then he will see that we are to be obeyed._";
	text4 = "And then the gazer swoops toward you, its many eyes gleaming with madness.";
	action = END_TALK;
	code =
		sf(32,10,0);
		set_attitude(3493,10);
	break;
	
begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "I'm sorry for disturbing you. (Leave.)";
	text1 = "The gazer makes a disdainful noise. _We thought as much._ It turns away, though some of its eyestalks are always watching you.";
	action = END_TALK;


//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Name";
	text1 = "The gazer is heavily wounded. Thick ooze runs out of the wounds in its sides. One of its eyestalks appears damaged beyond repair. A strange, croaking noise emerges from its mouth. For the first time, it feels fear.";
	text2 = "_We submit,_ it rasps. _We will obey Melanchion's wishes. We require no more tribute. Let us be!_";

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "No. I will destroy you.";
	text1 = "As desperate and wounded as the gazer is, it is still capable of fighting. Its many eyes watch you with loathing, and it resumes the battle.";
	action = END_TALK;

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "I'm glad you learned your lesson.";
	text1 = "Its many eyes stare at you with loathing, but it knows that it has been defeated. It rises up into the shadows to tend to its wounds. The gates to the north slowly open. You have won.";
	action = END_TALK;
	code =
		erase_char(3493);
		erase_char(3494);
		erase_char(3495);
		sf(32,5,1);
		sf(32,10,1);
		
		sf(32,11,0);
		sf(32,12,0);
		sf(32,13,0);
		sf(32,14,0);
		sf(32,15,0);
		
		award_party_xp(400,30);
	break;

begintalknode 40;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The gazer is actually becoming scratched. And annoyed. It concentrates some of its power. The bones on the basalt below it begin to move.";

begintalknode 41;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The gazer is now wounded. It is truly in pain. It lets out a howl of rage. Then it directs all of its eyestalks toward you. They begin to glow with a beguiling blue light.";

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

//

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