// TOWN DIALOGUE SCRIPT
// 	Town 19: Mount Galthrax (L1)

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;

// *** Ithik ***

begintalknode 1;
	state = -1;
	personality = 190;
	nextstate = 1;
	condition = 1;
	question = "Ithik";
	text1 = "You approach Ithik to speak to him. He glances anxiously at the open tunnel behind you to make sure that no undead are behind you, but it appears that none are.";
	text5 = "Ithik waits for your next question.";
	action = INTRO;
	
begintalknode 2;
	state = 1;
	personality = 190;
	nextstate = 1;
	condition = 1;
	question = "Hi, Ithik.";
	text1 = "_Hello,_ he replies.";
	
begintalknode 3;
	state = 1;
	personality = 190;
	nextstate = 2;
	condition = 1;
	question = "Have you explored this place?";
	text1 = "_Yes, I have._ He glances down the tunnel through which you came, his hands fidgeting. _There are many things you should know._";

begintalknode 4;
	state = 2;
	personality = 190;
	nextstate = 3;
	condition = 1;
	question = "What should I know?";
	text1 = "_There is a secret passage in the south wall of this room. It will lead you to a safer place where you can rest and recover._ He looks down the tunnel again, swallowing uneasily.";
	text2 = "_Also, I do not have time to tell you the whole story, but you should know something about the dragon._";
	
begintalknode 5;
	state = 3;
	personality = 190;
	nextstate = 4;
	condition = 1;
	question = "What should I know about the dragon?";
	text1 = "_I am from a city called Vasskolis. It was once a magnificent city, but now we live in its ruins like rats, scavenging the scraps left behind by those who abandoned it. We are alone in the wilderness, surrounded by savagery, attacked on all sides._";
	text2 = "_The dragon Galthrax came to this mountain many years ago. He demanded tribute, but we were too poor. We had nothing to give! Galthrax refused to believe us. He attacked._";
	text3 = "_I do not know how we managed to fend him off, but we did, and for these many years, we have been locked in combat with him. We fight as well as we can, but he is winning._";
	text4 = "_Our situation grows dire._";
	action = SET_SDF 19 10 1;

begintalknode 6;
	state = 4;
	personality = 190;
	nextstate = 5;
	condition = 1;
	question = "What can be done about this?";
	text1 = "_You want to get to Vasskolis. The dragon's armies are in the field, occupying the space between this mountain and the city. The only way you can get to Vasskolis is to distract them somehow._ He pauses, considering.";
	text2 = "_The only way to do that... is to kill the dragon._";
	
begintalknode 7;
	state = 5;
	personality = 190;
	nextstate = 6;
	condition = 1;
	question = "Kill the dragon? How?";
	text1 = "_He has many guards. The great skeleton warriors will come to him in an instant if he is attacked. Together, they would be impossible to defeat. You must find and kill them now, while they are separated, before you face the dragon._";
	text2 = "_Also, now that I know that you are here, I will go. You will not see me again, but I will help you in small ways as you go through this mountain, and when you face the dragon, I will fight alongside you._";
	text3 = "_Additionally, you should know about a secret passage out of the Demon Golem's office. I took it to get straight from the guardpost to the office without fighting the golems you had to fight. You can use it as a shortcut back to the guardpost._";
	text4 = "_Go now. I am afraid that we have talked for too long. The undead patrol this area and could show up at any time. Remember, slay the skeleton warriors before you attack the dragon. I will be with you._";
	text5 = "With that, Ithik slips into the shadows. He is gone.";
	code =
	if (get_flag(18,17) == 1)
		remove_string(3);
	else
		set_flag(18,17,1);
	set_flag(19,11,1);
	erase_char(12);
	end();
break;

// *** Phaedra identification ***

begintalknode 198;
	state = -1;
	personality = 250;
	nextstate = 99;
	condition = 1;
	question = "Phaedra";
	text1 = "You ask Phaedra if she can identify your items for you. _I sure can,_ she replies, grinning.";

begintalknode 199;
	state = 99;
	personality = 250;
	nextstate = -1;
	condition = 1;
	question = "Please do, then.";
	text1 = "_Sure thing. Only 5 coins per item._ She flashes you another grin,  daring you to ask why she is charging you. You don't.";
	action = ID 5;