// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(24,0) == 0;
	question = "special";
	text1 = "You look out over the farmlands east of Fort Draco. Once lush and productive, the Blight left them abandoned and useless. There are, unusually, few signs of battle here. The farmers fled well before the horde arrived.";
	text2 = "There are no signs of inhabitation here. You don't hear anything beyond the regular wildlife, and you don't smell the smoke of cookfires. Everything is eerily calm.";
	text3 = "And yet, you can't shake the feeling that you are being watched ...";
	action = SET_SDF 24 0 1;



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

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several giant lizards wandering the land between the farms, masterless and forlorn. It is surprising that nobody has hunted down and eaten them yet. An oversight that will no doubt soon be corrected.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The version of Khrez-Yss you were hacking was only a shade. It fades away, leaving behind nothing but mist.";
	text2 = "The other copies laugh and press the attack, blades at the ready.";
	code =
		erase_char(2628 + gf(24,4) - 1);
	break;
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Your attack on the copy of Khrez-Yss lands. Something splatters on the ground. You look down and see what it is. Blood. Actual blood. This is the real version.";
	text2 = "His subterfuge discovered, Khrez-Yss lets out a long, angry hiss. _No ... Thisss is not my way. Thisss isss not my way to kill. I let myself be carelessss. I will wait for you. And, when you find me again, I will be prepared._";
	text3 = "You lunge at him and try to shut him up permanently. Before you can stop him, he pulls a crystal from a chain around his neck and dashes it against the stone floor. A concealing mist rises from it.";
	text4 = "When the white gas clears, you are not surprised to find that Khrez-Yss is gone.";
	code =
		award_party_xp(500,30);
		erase_char(2628);
		erase_char(2629);
		erase_char(2630);
		erase_char(2631);
	break;



//

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a lone slithzerikai standing by the side of the road here. He is wrapped in a cloak. His face is swathed in shadow, though you can see many trinkets and necklaces around his neck and arms.";
	text2 = "He looks familiar. You believe that you have seen him before, watching you from between the bars in Lord Trinket's lair. You think that this was the slith infiltrator who equipped that mad goblin. You stare at him, and he stares back.";
	text3 = "_Yessss ..._ he says, his voice full of malevolence. _You know me. I know you. And you know I have come for you._";

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "You are Khrez-Yss, the Shadow.";
	text1 = "_Yesss! You know me. You know I walk at will through your landsss. You know what I mean, what I do, the doom I bring to your people._";
	text2 = "_And, now that I see you, I know that my guessss was correct._";

begintalknode 12;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "I have no idea who you are.";
	text1 = "He nods. _I am disappointed. I had thought you knew more, that you were wiser. That you, who evaded death at my handsss, were more than just a blunderer. I am Khrez-Yss, called the Shadow!_";
	text2 = "_And, now that I see you, I know that my guessss was correct._";

begintalknode 13;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "I think I know who you are, but I'd like to hear you say it.";
	text1 = "_Yesss .. I will say so. I am Khrez-Yss, the Shadow, the one who walks at will through your landsss. The one who underminesss you, who bringsss your doom._";
	text2 = "_And, now that I see you, I know that my guessss was correct._";

begintalknode 14;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "Your guess?";
	text1 = "_I heard the reportsss, the sightingsss, heard of the missing soldiersss, and I saw the patternsss none of those other warriorsss could. Even now, they don't alwaysss listen to me._";
	text2 = "_I knew from the evidence that you were here, so I came here to wait for you. And you have stumbled into me._";
	text3 = "You can see him fingering the short, vicious blade that hangs from his belt. He is a small, wary figure, but he doesn't seem too intimidating in a fight. You've faced worse.";

begintalknode 15;
	state = 12;
	nextstate = 14;
	condition = 1;
	question = "And now that you've found me, what do you want?";
	text1 = "_I must kill you. I will present your head to the Scourge. I will gain glory for thisss, for stopping your threat when none could. Such confrontation isss not my way, but sometimesss it is the only way to get respect._";
	text2 = "_Is there anything you would ask, any final wordsss before it all ends?_";

begintalknode 16;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "It is good to see you! Now I have a chance to kill you! (Attack!)";
	text1 = "_Yesss!_ he shouts. _At last, I must do what my servants could not. You have earned the right to be dealt with by me personally. This will bring me great influence with the Scourge._";
	text2 = "He draws his blade with one hand and touches an amulet at his neck with another. As you prepare to rush him, trying to stop him before he can do any tricks, his form shimmers.";
	text3 = "And, a moment later, there isn't one Khrez-Yss. There are four identical copies. Each wearing charms. Each bearing a blade.";

begintalknode 17;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "These tricks don't scare me.";
	text1 = "Khrez-Yss responds, four sibilant voices in perfect unison. _I won't bother with asking you to surrender. Heroesss like you can only be killed. Be ready. It isss time!_";
	text2 = "And they advance upon you ...";
	action = END_TALK;
	code =
		sf(24,3,1);
		
		set_terrain(0,692,90,47);
		set_terrain(0,692,91,49);
		
		activate_hidden_group(25);
		add_range_to_group(2623,2626,29);
		set_name(30029,"Shadow Lackey");
		set_level(30029,28);
		alert_char(30029);
		force_char_status(30029,24,5);
		
		spawn_creature(2628);
		spawn_creature(2629);
		spawn_creature(2630);
		spawn_creature(2631);
		add_range_to_group(2628,2631,30);
		set_resistance(2628,0,80);
		set_resistance(2629,1,80);
		set_resistance(2630,2,80);
		set_resistance(2631,6,80);
		erase_char(2627);
		
	break;
	
begintalknode 18;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "Why did the Slith Horde invade in the first place?";
	text1 = "_Honor! Once, all these landsss were claimed by usss. Then the humansss came and took them. We will have a wound that cannot be healed asss long asss you remain._";
	text2 = "_And that is enough talking. It isss time._";

begintalknode 19;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "Who is the Scourge?";
	text1 = "_The mighty horde is commanded in war by me, the Impaler, and the Manburner. But we do not have absolute power. The Scourge, a circle of shamansss, watchesss usss and can take away the power we have._";
	text2 = "_But, when you are dead, the Scourge will have lessss ability to control us._";
	text3 = "_And that is enough talking. It isss time._";
	
begintalknode 20;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "How can I get into Formello?";
	text1 = "_You can't. I knew that you might manage. You humansss seem to always find a way. That isss why I made sure to stop you._";
	text2 = "_And that is enough talking. It isss time._";

begintalknode 21;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "I have nothing to say to you.";
	text2 = "_Then you have costs yourself a few preciousss minutesss of life. Gone now. It isss time._";

begintalknode 22;
	state = 15;
	nextstate = 13;
	condition = 1;
	question = "Time for what, monster?";
	text1 = "_Time for me to do what my servants could not. You have earned the right to be dealt with by me personally. This will bring me great influence with the Scourge._";
	text2 = "He draws his blade with one hand and touches an amulet at his neck with another. As you prepare to rush him, trying to stop him before he can do any tricks, his form shimmers.";
	text3 = "And, a moment later, there isn't one Khrez-Yss. There are four identical copies. Each wearing charms. Each bearing a blade.";

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

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

//

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