// TOWN DIALOGUE SCRIPT
//    Town 27: Coffin Caves

begintalkscript;

variables;

short i,j,k,r1,choice;

// Roda-Bok

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 1;
	question = "Roda-Bok";
	text1 = "You approach the crystal on the pedestal. When you get close, a voice echoes softly in your head. At first, it's gibberish. You wince. There is a long silence. Then the voice resumes in something like your own tongue.";
	text2 = "_Visitor? At last?_ You ask, _Who is there?_ The voice returns. _I am Roda-Bok. Long have I waited._";
	text5 = "You feel the presence of Roda-Bok in your mind, silent, waiting for a question.";
	action = INTRO;
	
begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(27,12) > 0;
	question = "_I think I reactivated the machinery here?_";
	text1 = "_Good. Yes. It was sensed. It was time. The people will reward you._";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_What are you?_";
	text1 = "_I am Soul Crystal. I am spirit of ... Wait. Why ask? You are alien mind in me. This you not learn._";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_There are magical barriers splitting apart our land._";
	text1 = "_Know nothing of that. Resting here, quiet, a long time._";

begintalknode;
	state = 1;
	nextstate = 5;
	question = "_What are those blue coffin things?_";
	text1 = "_They are of the Resting._";

begintalknode;
	state = 5;
	nextstate = 4;
	question = "_What is the Resting?_";
	text1 = "You sense a feeling of concern coming from the crystal. _Don't know of these things._ There is a pause. _You are not of the people. Like, but not._ Another pause. _I will solve this puzzle._";

begintalknode;
	state = 4;
	nextstate = -1;
	question = "_Am I the puzzle? Perhaps I can help._";
	text1 = "_The puzzle is our existence is change now that you are here. Leave me. I am not when I should know you yet._";
	text2 = "Then there is silence.";
	action = END_TALK;
	
begintalknode;
	state = 1;
	nextstate = 2;
	question = "_What are you doing here?_";
	text1 = "_I wait. End of Resting. Much contemplated. Am ready to share again._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_You can share with me anything you'd like._";
	text1 = "The voice returns, filled with energy. _Centuries of peace have been wondrous chance of meditation. For me, but not for Korhis._";

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_What happened to Korhis?_ ";
	text1 = "_Sensed great agitation from Korhis-Bok. Nearby. I fear he will need much healing._";
	code =
		sf(27,14,1);
	break;
	
begintalknode;
	state = 1;
	nextstate = -1;
	question = "_I will be going._";
	text1 = "_Yes. You brought peace. Wish peace to you. Time to revive._";
	action = END_TALK;

// Liedra-Bok

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 28;
	question = "Liedra-Bok";
	text1 = "You approach the crystal. A light flickers within. A voice echoes inside your head, loud and stern: _Approach, so I may be answered._";
	text2 = "You say, _Who is that? What are you?_ The response is immediate. _I am Liedra-Bok, vahnatai elder. The openings failed. I will be answered._";
	text5 = "The voice of Liedra-Bok echoes in your mind. _The openings failed. What else have you to say. Explain yourself further._";
	action = INTRO;

begintalknode;
	state = 28;
	nextstate = -1;
	question = "Tell Liedra-Bok your name and what you are.";
	text1 = "_Ah. Foreign. Invader. Much changed since the last Resting began. A new world. Travel on. Travel to the land of my people. They decide what is done in their caves._";

begintalknode;
	state = 28;
	nextstate = -1;
	question = "_What are you?_";
	text1 = "_Do not question me, alien. You are intruder, not I._";

begintalknode;
	state = 28;
	nextstate = 29;
	question = "_I could help you find some answers, if I knew the questions._";
	text1 = "_I need answers now, for things are not right._";

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_What isn't right?_";
	text1 = "_I sensed my people here. Not now, not recently, but before. Then I sensed them not, and sensed not the Openings._";

begintalknode;
	state = 30;
	nextstate = -1;
	question = "_Can you be more exact about what you sensed?_";
	text1 = "_The people came and faded. Vanished. Taken. Confuses me. Something must be wrong._";

begintalknode;
	state = 28;
	nextstate = 31;
	condition = gf(27,13) == 0;
	question = "_The openings failed? What do you think is wrong?_";
	text1 = "_The Resting time should end soon, but these vahnatai have not been Awakened._ You feel a sharp, brief jolt of mental pain. There is a pause. _You did not interfere. Must be thought._";
	text2 = "As its voice fades, you hear, _...These vahnatai should be Awakened._";
	
begintalknode;
	state = 31;
	nextstate = 32;
	condition = gf(27,12) == 0;
	question = "_Can you tell me how the Awakening is supposed to start?_";
	text1 = "_You do not matter in this. Is complicated._";

begintalknode;
	state = 32;
	nextstate = -1;
	question = "_But I can try to start the Awakening._";
	text1 = "The voice regretfully returns to your mind, its commanding tone now tinged with notes of sorrow and worry. _Be that? The time of vahnatai Awakened is now. But I sense no longer those who came to do the task. Taken. Gone._";
	text2 = "_Hope is done soon. Until then, I wait._";

begintalknode;
	state = 32;
	nextstate = -1;
	question = "_What makes it so complicated?_";
	text1 = "_Complex. Difficult for simple minds. Instructions. Written. Near. Lost. Rubble. Must find. You do not matter in this._";

begintalknode;
	state = 31;
	nextstate = 28;
	condition = gf(27,12) >= 1;
	question = "_I think that I completed the Awakening for you._";
	text1 = "_Did you? ...I sense you have. I sense the vahnatai here will wake. Go, find my people. Say what you have done. They will welcome it._";
	code =
		award_party_xp(200,8);
		sf(27,13,1);
	break;


// Korhis-Bok

begintalknode;
	tag = 50;
	state = -1;
	nextstate = 54;
	question = "Korhis-Bok";
	text1 = "You approach the crystal and begin to feel disoriented. It takes an effort to remain standing in the face of the confusion radiating from the stone.";
	text5 = "You continue to feel dizzy while you stand near this crystal. It's as if it's throwing off static, making your thoughts meander and get lost as they crawl through your brain.";
	action = INTRO;

begintalknode;
	state = 54;
	nextstate = -1;
	question = "_What are you?_";
	text1 = "_Bok._ There is a long pause. _Kohris-BokBokBokBokBOKBOKBOK!!!_ The mental noise is deafening.";
	action = SET_SDF 27 14 1;
	
begintalknode;
	state = 54;
	nextstate = 56;
	question = "_Are you all right?_";
	text1 = "_I. I I I I I...._ It repeats I for some time, then stops. You sense from it a momentary burst of frustration at its inability to communicate.";

begintalknode;
	state = 56;
	nextstate = 57;
	condition = gf(27,14) > 0;
	question = "_Your name is Korhis-Bok?_";
	text1 = "_YES!_ The force of the word is agonizingly painful. It feels like your scalp constricts around your skull. Being near Korhis-Bok is starting to make you feel very ill.";

begintalknode;
	state = 57;
	nextstate = -1;
	question = "_I have to be going now._ (Back away.)";
	text1 = "_No! Stay! Alone! StaystaystaystaySTAY!_ The screaming in your mind is too much to take. You run away.";
	action = END_TALK;

begintalknode;
	state = 57;
	nextstate = -1;
	question = "_Calm down. You are safe. I mean you no harm._";
	text1 = "_You... aliens. Aliens! Alone, afraid, hate you! HatehatehatehateHATE!_ The voice overwhelms your minds, consumes your thoughts. You run away before it kills you.";
	action = END_TALK;

