// TOWN DIALOGUE SCRIPT
//    Town 48: The First Level

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

begintalkscript;

variables;
int i,j,k,choice;


// *** Thantaloss ***

begintalknode 1;
	state = -1;
	personality = 480;
	nextstate = 1;
	condition = 1;
	question = "Thantaloss";
	text1 = "This slith stands on the water, not sinking, as if the water were hard as dirt. It is plain water, though: when you touch it, your hand passes right through the surface and becomes wet.";
	text2 = "When he reaches down to do the same, his hands in a shape to cup the water to bring it to his lips to drink, though, his hand cannot pass through the surface. He beats his fist against the surface, to no effect.";
	text3 = "There is a small bunch of grapes floating on the water's surface in front of him, but when he reaches for it, it is just out of his reach. He steps forward -- drawing no closer to the water's edge -- and the grapes are still just out of his reach.";
	text4 = "Sighing, he gives up, only to try again after a few minutes.";
	text5 = "Thantaloss looks frustratedly at the grapes and the water as he waits for your next question.";
	action = INTRO;

begintalknode 2;
	state = 1;
	personality = 480;
	nextstate = 2;
	condition = 1;
	question = "Who are you?";
	text1 = "He looks up at you with mournful eyes, and his story comes spilling from his lips in the classical tongue. _I am Thantaloss, King of Khitaloss, Lord of the Great Cave, most blighted and unfortunate man ever to have lived._";
	text2 = "He groans, _I was the lord of the richest cave, ruling in power for decades, but never respecting the great and ancient gods of the sliths. When sacrifice time came, others offered their lizard beasts and their crops, but I offered none._";
	text3 = "With agonized tones, he continues, _Thus came to my kingdom retribution. Khalthas, most blessed and beloved of the gods, came as a wanderer to be a guest at my hall. I offered him blasphemous meat, taken from executed sliths._ His voice trembles.";
	text4 = "_He discovered my trick and denounced me to my people and to the gods, and my reign ended. I, justly forsaken by the gods, was overthrown and slain, and as I lay dying, Khalthas pronounced my doom: I was always to hunger, but never to be sated._";
	text5 = "He indicates the water and the grapes near him. _And this is how I have come to thirst in the middle of water, but be unable to drink, and to hunger with food in front of me, but be unable to eat. O gods, why did I curse you before?_";

begintalknode 3;
	state = 2;
	personality = 480;
	nextstate = -1;
	condition = 1;
	question = "Wow, that sucks.";
	text1 = "Thantaloss cries out in frustrated agony again, raising his claws, open and outstretched, up to the gods for mercy, although no mercy is forthcoming.";

begintalknode 4;
	state = 2;
	personality = 480;
	nextstate = -1;
	condition = get_flag(48,1) == 0;
	question = "Is there anything I can do to help?";
	text1 = "Thantaloss looks at you with new eyes. _Perhaps you could run your hands across the surface of the water, creating waves that would push the grapes in my direction?_ You nod, and attempt to do so.";
	text2 = "It seems to be working! The grapes drift slightly closer to him, riding the waves, and they are within his reach, and he reaches for them -- but then a wave reaches his feet, and he trips.";
	text3 = "Falling onto the hard water, he misses the grapes, and clutching at them from lying flat on the ground, he cannot reach them. He scrambles forward, struggling, but he cannot reach them.";
	text4 = "Finally, he sighs and stands up, resigned. _Thank you for your efforts,_ he says, _but I am fated to go hungry for all eternity. There is nothing that anyone can do. You have shown kindness on a blighted soul, though, and for that I thank you._";
	action = SET_SDF 48 1 1;

// *** Ikhthioss ***

begintalknode 10;
	state = -1;
	personality = 481;
	nextstate = 5;
	condition = 1;
	question = "Ikhthioss";
	text1 = "This slith is bound to a fiery wheel, spinning in the midst of flames, and his claws clench tightly with the pain.";
	text2 = "You see the flames lick at his feet and then his head, then his chest. Then they char the scales of his chest, which soon heal, only to be charred again. There is no rhythm: the wheel spins faster and then slower and then faster again.";
	text3 = "The shifting pain gives him no possibility for solace, no way of adjusting, no contortion that will save his body from harm. He is being tortured constantly for all eternity.";
	text5 = "Ikhthioss continues to spin, emitting a one short scream, as you ponder your next question.";
	action = INTRO;

begintalknode 11;
	state = 5;
	personality = 481;
	nextstate = 6;
	condition = 1;
	question = "Who are you?";
	text1 = "Gritting his teeth, he forces out the words of the classical tongue. _I am Ikhthioss, King of Danatha, Keeper of the North Pass, Violator of Ksenon._";
	text2 = "The word _ksenon_ is completely untranslatable. It suggests the customary obligations of hospitality, but these customs are so universal and so binding as to be nearly moral law. This man violated these rules or guidelines or laws.";
	text3 = "_When Khalthas had overthrown Thantaloss and conquered most of Khitaloss, he came to Danatha, my small, independent city at the edge of the Great Cave. He asked me for hospitality, which I, as a king, was obligated to give him._";
	text4 = "He screams in agony as the flames engulf his face for a moment, then resuming. _I consulted with an oracle concerning this visitor, and I was told that he would soon rule Danatha in my place._";

begintalknode 12;
	state = 6;
	personality = 481;
	nextstate = 7;
	condition = 1;
	question = "Then what happened?";
	text1 = "_I grew angry and terrified, and I sought to destroy him. I held a feast, and placed poison in his drink, but when I offered it to him, he replied in the following manner:";
	text2 = "_'O Great King, surely one so great and virtuous as you yourself are offers to your guest the sustenance worthy of yourself, while keeping the humbler fare to yourself in generosity. Let it be reversed; I shall eat and drink yours, and you mine.'";
	text3 = "_I declined, insisting that he have the greater share, but while I was speaking with an attendant, he switched our cups, and then he raised it in a toast: 'To Ksenon!' Together we drank, and I imbibed the poison meant for him._";
	text4 = "He gasps with burning pain. _As I sank to the floor, dying, bespoke he my fate: 'Having violated the laws of hospitality, O Evil King, you will be chained to fire, traveling always but never finding solace, only more and more pain in your journey.'_";

begintalknode 13;
	state = 7;
	personality = 481;
	nextstate = -1;
	condition = 1;
	question = "Wow. Too bad.";
	text1 = "Ikhthioss does not respond as he continues to spin through the fire.";

begintalknode 14;
	state = 7;
	personality = 481;
	nextstate = -1;
	condition = 1;
	question = "Can I help you in any way?";
	text1 = "_You may be able to,_ he says. _The chain you can see on the other side of the fire is the chain that moves the wheel that carries me. If you could stop it, I might at last be able to find peace._";
	action = DEP_ON_SDF 48 2 0;

// *** Siisyfoss ***

begintalknode 20;
	state = -1;
	personality = 482;
	nextstate = 10;
	condition = 1;
	question = "Siisyfoss";
	text1 = "This slith here stands before several large rocks, one of which appears movable. He is examining the hill, as if searching for the best route up it.";
	text2 = "You notice that his small, frail body shakes slightly. He is hardly strong enough to push this boulder at all, much less all the way up the hill, and his body trembles from exertion and he sweats profusely as if he has already done considerable work.";
	text3 = "He sees you approach and eyes your strong muscles carefully.";
	text5 = "Siisyfoss continues to size up the hill as he waits for your next question.";
	action = INTRO;

begintalknode 21;
	state = 10;
	personality = 482;
	nextstate = 11;
	condition = 1;
	question = "How did you end up here?";
	text1 = "_I am Siisyfoss, once Prince of Iliointh, then Usurper of Khalthas and Kin-Slayer, now among the Forsaken of the Gods, for even the dark gods will no longer accept my prayers._";
	text2 = "His frail body shakes. _Before he became a wanderer, Khalthas was the King of Iliointh, an ancient city far from Khitaloss. He ruled in peace and justice, beloved of the people._ He leans on a rock for support, the effort of speech making him weak.";
	text3 = "_But I,_ he continues, _was envious of his position and plotted against him. I was his younger brother, and I would have been king had he not been born. I always resented him for the laws of our land that made him king in my place._";
	text4 = "His claws grind in frustration across the rock with which he supports himself. _I, departing from Iliointh and journeying far away, discovered the secrets of the dark gods. I found the cult of Nathaganth._";

begintalknode 22;
	state = 11;
	personality = 482;
	nextstate = 12;
	condition = 1;
	question = "What happened next?";
	text1 = "His voice drops almost to a whisper. _With the aid of Nathaganth, at the head of an army of demon-worshippers, I attacked Iliointh. I defeated Khalthas and drove him out, seizing the city and transforming it into a temple to Nathaganth._";
	text2 = "His eyes shut as he remembers. _But then, having achieved my aim, I had no more use for Nathaganth. A short time later, I burned the temple and purged my followers again, and I tried to return Iliointh to what it was before, a simple city._";
	text3 = "He cries out in agony. _But I could not! With the stain of devil-worship on the town, it never regained its former beauty._ He is nearly to his knees, now, with the weight of his story.";
	text4 = "_One of the last deeds of the great king Khalthas was to return to Iliointh, the city whence he had been exiled, and find me, still trying to rule in his place. He avenged his earlier defeat and found me personally in the throne room. He spoke to me._";

begintalknode 23;
	state = 12;
	personality = 482;
	nextstate = 10;
	condition = 1;
	question = "What did he say?";
	text1 = "_He said that I, having betrayed both good and evil, would find myself helped by no gods in death. He said that I was doomed to push a boulder up a hill, every day, with the same boulder appearing at the bottom of the hill every day._";
	text2 = "He indicates the boulder before him. _This is my task today, as it has been every day for the past thousand years, since Khalthas drew his sword and slew me in the throne room that I stole from him._";
	text3 = "He indicates the top of the hill. _You have completed my task today, but the rock shall be my task again tomorrow, as it has been every day for the past thousand years, since Khalthas drew his sword and slew me in the throne room that I stole from him._";
	code =
	if (get_flag(48,3))
		remove_string(2);
	else
		remove_string(3);
break;

begintalknode 24;
	state = 10;
	personality = 482;
	nextstate = 10;
	condition = 1;
	question = "Is there anything that I can do for you?";
	text1 = "_I must push this boulder up the hill,_ he says with pain in his voice. _I am weak today and am not sure that I can do it. You are strong; you could help me. The boulder must go up the hill._";
	text2 = "He sighs. _I repented long ago for my sins. Please, take pity on my and lift this burden from me just for a short while._";
	text3 = "_You have already done my work for the day,_ he says, gratitude clear in his tone. _That is plenty._";
	code =
	if (get_flag(48,3)) {
		remove_string(1);
		remove_string(2);
		}
	else
		remove_string(3);
break;