// TOWN DIALOGUE SCRIPT
//    Town 47: Possanatheon

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

begintalkscript;

variables;
int i,j,k,choice;


// *** Possanathoss ***

begintalknode 1;
	state = -1;
	personality = 470;
	nextstate = 1;
	condition = 1;
	question = "Possanathoss";
	text1 = "The ethereal lord of poetry and light turns his majestic gaze to your direction, and you feel the full power of his attention upon you. You approach him humbly, suddenly acutely aware of the fact that you stand in the presence of a god.";
	text2 = "_Speak!_ he commands suddenly, _For I have not had mortal guests in many ages, and I would have your story from your own lips._";
	text5 = "Possanathoss serenely waits for your next question.";
	action = INTRO;

begintalknode 2;
	state = 1;
	personality = 470;
	nextstate = 1;
	condition = 1;
	question = "You are Possanathoss?";
	text1 = "_Yes,_ he replies, his deep voice rumbling, _I am Possanathoss Light-Giver, Wellspring of Poetry, Bearer of the Inner Flame, Grand Philosopher, Master of Oration, and King of the First Heavenly Fortress._ This is the shorter list of his titles.";
	text2 = "_I have been one of the favored gods of the slith pantheon since the time of the Khalthanad, shortly after the time of Khalthas and the founding of the slith empire. I am the patron of poets and many artists, those who work with colors._";

begintalknode 3;
	state = 1;
	personality = 470;
	nextstate = 1;
	condition = get_flag(47,6) == 0;
	question = "(Tell him your story.)";
	text1 = "_That is most interesting,_ he says. _The dying breath of the lord of Thanopolen cursed the soul of your prophet, trapping him in the wrong part of the afterlife._ He ponders this for a long moment.";
	text2 = "_I will help you as best as I can,_ he concludes, _although I fear that it is not much. My servants will give you a robe that is made with powerful magic, and it should protect you from some of the dangers you will face._";
	text3 = "He spreads his arms, taking in the whole castle with a gesture. _You are, of course, welcome to speak to everyone around here, some of whom may have additional information that may be useful to you._";
	text4 = "He adds, regretfully, _I cannot spare any soldiers to accompany you, as we are the first line of defense for the heavenly realms against the darker forces remaining below. We are always on alert for an attack, which could come at any time._";
	code =
	set_flag(47,6,reward_give(394));
break;

begintalknode 4;
	state = 1;
	personality = 470;
	nextstate = 1;
	condition = 1;
	question = "Where are the realms of punishment and damnation?";
	text1 = "_South of here. Follow the path until you reach the stairs leading into the bowels of the land. Beyond there, you will find the horrors that await the wicked._";

begintalknode 5;
	state = 1;
	personality = 470;
	nextstate = 1;
	condition = 1;
	question = "Please grant me some of your divine wisdom.";
	text1 = "He considers you carefully. _Do not be too quick to judge,_ he says  finally, _for not all evil wears black scales and breathes fire. You have learned that there is good in this world and evil, but discerning which is which is the task of the wise._";

// *** Rakhthoss ***

begintalknode 10;
	state = -1;
	personality = 471;
	nextstate = 5;
	condition = 1;
	question = "Rakhthoss";
	text1 = "You approach this heavily-armored and heavily-armed faerie warrior, observing that his eyes distinctly take note of your entrance without looking up from the paper in front of him. He is absorbed in concentration, but he is never unalert.";
	text5 = "Rakhthoss continues to study his battle plans as he waits for your next question.";
	action = INTRO;

begintalknode 11;
	state = 5;
	personality = 471;
	nextstate = 6;
	condition = 1;
	question = "Who are you?";
	text1 = "_I am General Rakhthoss,_ he replies, still examining the paper, on which you can see battle plans drawn. _I am the commander of the forces here in the first line of defense._";

begintalknode 12;
	state = 6;
	personality = 471;
	nextstate = 5;
	condition = 1;
	question = "First line of defense?";
	text1 = "_Yes, Possanatheon is the first line of defense against the forces of darkness who live below. This is the border between the heavenly realms of paradise and the infernal realms of torment, and there is war always. We must defend our land._";
	text2 = "He continues, _The garrisons are elsewhere in the castle, and no, you can't visit them. And you can't get through to the north, either, unless Possanathoss says that you can, and he hasn't. You have no reason to visit Sothana or others._";

begintalknode 13;
	state = 5;
	personality = 471;
	nextstate = 5;
	condition = 1;
	question = "What are you looking at?";
	text1 = "_Battle plans,_ he replies. _I am judging the weaknesses in our fortress and imagining in what ways the attack might come, when it does. For it is not a matter of if, but when: the attack always comes._";

begintalknode 14;
	state = 5;
	personality = 471;
	nextstate = 5;
	condition = 1;
	question = "Can you help me?";
	text1 = "_No,_ he states flatly. _I have no extra weapons or armor. Ask around elsewhere. This is the divine center of inspiration and light; there must be wisdom to be gained here, though probably not arms._";

// *** Thakta ***

begintalknode 20;
	state = -1;
	personality = 472;
	nextstate = 10;
	condition = 1;
	question = "Thakta";
	text1 = "This slith chief is female, which is slightly unusual but not by any means unheard of. Slith women and slith men are almost the same size and shape, nearer than humans.";
	text2 = "She stands, watching the other sliths work, frequently making conversation with whoever comes near. She nods to you as you approach.";
	text5 = "Thakta continues to observe the others working and converse with them.";
	action = INTRO;

begintalknode 21;
	state = 10;
	personality = 472;
	nextstate = 10;
	condition = 1;
	question = "Who are you?";
	text1 = "_I am Thakta,_ she replies. _I was the leader of Thassaka many centuries ago, during the golden age of the empire. Now I live in the house of Possanathoss, and I am in charge of agriculture._ She smiles. _With such fertile fields, I have it easy._";

begintalknode 22;
	state = 10;
	personality = 472;
	nextstate = 10;
	condition = 1;
	question = "Do you just watch them?";
	text1 = "_No,_ she replies, _normally I work alongside them. I'm taking a break right now, though. Being the supervisor has some advantages, you know._ She grins.";

begintalknode 23;
	state = 10;
	personality = 472;
	nextstate = 11;
	condition = (get_flag(47,7) == 0);
	question = "Can you help me at all? (Tell her your story.)";
	text1 = "Thakta listens intently as you explain what you're doing here in the Land of the Dead. She is intrigued. _I would like to help you,_ she says, _but I am not sure. My second-favorite deity after Possanathoss is his dear friend Sothana._";
	text2 = "She queries, _Have you done anything good in the name of Sothana?_";

begintalknode 24;
	state = 11;
	personality = 472;
	nextstate = 10;
	condition = get_flag(52,3) == 1;
	question = "Well, I got rid of a corrupt leader of one of her temples. (Tell the story.)";
	text1 = "You tell Thakta about your deeds in the Temple of Sothana near Manikoss and Fort Alora. She seems quite pleased. _In that case,_ she says, _I will certainly help you!_ She begins explaining a powerful spell to you.";
	text2 = "She tells you the most efficient way to cast Destruction, and you take careful note. ";
	text3 = "Unfortunately, you are completely unfamiliar with the spell, Destruction. You can't follow her explanation. You can't learn anything from her right now.";
	code =
	if (get_flag(292,15) > 0) {
		set_flag(47,7,1);
		set_flag(292,15,3);
		remove_string(3);
		}
	else
		remove_string(2);
break;

begintalknode 25;
	state = 11;
	personality = 472;
	nextstate = 10;
	condition = get_flag(52,3) == 0;
	question = "Er, no, not really.";
	text1 = "_Pity,_ she says. _I'm not sure that you're really worthy of my help, then._";

// *** Librarian ***

begintalknode 30;
	state = -1;
	personality = 473;
	nextstate = 15;
	condition = 1;
	question = "Librarian";
	text1 = "This woman paces the library, holding a great wand that glows with fire. Her eyes are filled with great knowledge and, now, even great wisdom. You can see worry lines on her face, the legacy of a life of great cares.";
	text5 = "The librarian waits, elegantly haughty, for your next question.";
	action = INTRO;

begintalknode 31;
	state = 15;
	personality = 473;
	nextstate = 15;
	condition = 1;
	question = "Who are you?";
	text1 = "_I am the librarian of Possanatheon._ She does not give a name, and her eyes glint icily as if to dare you to ask. She grips her wand tightly, and sparks drop lightly from it.";
	text2 = "_I am the keeper of knowledge here,_ she continues. _The library is much larger than this, extending across a whole level upstairs, but this is the 'General Interest' section for the populace. I am tending to these right now._";

begintalknode 32;
	state = 15;
	personality = 473;
	nextstate = 15;
	condition = 1;
	question = "Are you Erika Redm...?";
	text1 = "Before you can even finish the question, sparks begin pouring from her wand to the ground, dangerously near igniting everything around you and burning the whole place down. She glares at you so furiously that you shut your mouth.";

begintalknode 33;
	state = 15;
	personality = 473;
	nextstate = 16;
	condition = get_flag(47,8) == 0;
	question = "Can you help me?";
	text1 = "_I can,_ she says, her eyes drifting over you as if judging the value of a horse. _And indeed I may. However, I desire knowledge in return. Have you spoken with any ancient beings of interest to an incantrix? Not demons or that filth. Dragons, perhaps?_";

begintalknode 34;
	state = 16;
	personality = 473;
	nextstate = 15;
	condition = get_flag(51,8) == 1;
	question = "I met a dragon named Velthkhogroz. (Tell her about it.)";
	text1 = "You tell the librarian about your meeting with the dragon in the Lava Ocean. She listens intently, and afterwards, she nods approvingly. _Yes, that is interesting. It is worthy of a spell._ She begins explaining a powerful spell to you.";
	text2 = "She tells you the most efficient way to cast Paralyze, and you take careful note. ";
	text3 = "Unfortunately, you are completely unfamiliar with the spell, Paralyze. You can't follow her explanation. You can't learn anything from her right now.";
	code =
	if (get_flag(292,8) > 0) {
		set_flag(47,8,1);
		set_flag(292,8,3);
		remove_string(3);
		}
	else
		remove_string(2);
break;

begintalknode 35;
	state = 16;
	personality = 473;
	nextstate = 15;
	condition = get_flag(51,8) == 0;
	question = "No, not really.";
	text1 = "The librarian rolls her eyes. _I will not just give you aid. You must earn it._";

begintalknode 36;
	state = 15;
	personality = 473;
	nextstate = 15;
	condition = 1;
	question = "Say, you probably know a lot. Can you identify my items?";
	text1 = "_I can identify anything, for a small price._";
	action = ID 5;