// TOWN DIALOGUE SCRIPT
// 	Town 13: Central Bahssikava

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

begintalkscript;

variables;

// *** Mining Ghost ***

begintalknode 1;
	state = -1;
	personality = 130;
	nextstate = 1;
	condition = 1;
	question = "Mining Ghost";
	text1 = "A slith ghost kneels here sorting stones. He flinches as you approach, but then, when he looks up, he looks positively ecstatic. _You have come!_ he hisses softly. _Quick! We don't have much time! What do you want?_";
	text5 = "_What else is there? My guard will be back any minute!_";
	action = INTRO;
	
begintalknode 2;
	state = 1;
	personality = 130;
	nextstate = 1;
	condition = 1;
	question = "Who are you?";
	text1 = "_In life, I was a Bahssikavan merchant. I owned a restaurant just south of the river, selling fresh cave fish of the highest quality, seasoned with the finest salts and spices. But that was before the cavequake._";
	text2 = "_Now I am a miner. I mine crystals for the demon overlords. If I do not, they will torture me until I do. This is the fate of all Bahssikavans. Please, we need your help._";

begintalknode 3;
	state = 1;
	personality = 130;
	nextstate = 1;
	condition = 1;
	question = "What do the demons do with the crystals that you mine?";
	text1 = "_I don't know. They don't tell me. There is a storage room through a tunnel in the south. Sometimes the demons carry the crates and barrels away to the west and bring them back empty, so whatever they do with the crystals, it must be done west of here._";

begintalknode 4;
	state = 1;
	personality = 130;
	nextstate = 2;
	condition = get_flag(13,6) == 0;
	question = "What can I do to help you?";
	text1 = "_Right now, there is not much you can do. The demons are very strong, and there are many of them here. If you are to free us, you must distract the demons somehow._";

begintalknode 5;
	state = 2;
	personality = 130;
	nextstate = 1;
	condition = 1;
	question = "How can I distract them?";
	text1 = "_There are important facilities across the river. If I wanted create a diversion for the demons, I would look there first._";

begintalknode 6;
	state = 1;
	personality = 130;
	nextstate = -1;
	condition = get_flag(13,17) == 1;
	question = "I killed the demon masters. You're free!";
	text1 = "_You did?_ He looks out one of the windows. _I knew I heard commotion! Thank you, thank you, thank you! I owe you my very soul! I must go now, but you will be rewarded._";
	text2 = "He adds, _Defeat the demon lord Nolagh-Khar, and all of us will be free! Then we will show you the true meaning of gratitude._ With those words, he disappears.";
	code =
	award_party_xp(30,50);
	set_flag(13,16,1);
	erase_char(7);
	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;