// TOWN DIALOGUE SCRIPT
//    Town 25: Iron Mines

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

begintalkscript;

variables;

short i,j,k,r1,choice;

begintalknode 1;
	state = -1;
	personality = 500;
	nextstate = 1;
	condition = 1;
	question = "Scyld";
	text1 = "The tip of the Falcon-King's drawn blade is driven into the wall, the ruby upon its hilt blazing with inner fire. He stands facing the north in a fixed grimace, exerting all the force he can forward.";
	text2 = "He does not turn. _Sssscyld._";
	code =
	toggle_quest(5,0);
	break;


begintalknode 2;
	state = 1;
	personality = 500;
	nextstate = 2;
	condition = 1;
	question = "Can we help?";
	text1 = "He blinks with effort, still driving his blade forward. _No! Do not speak! I cannot break it!_";

begintalknode 3;
	state = 2;
	personality = 500;
	nextstate = 3;
	condition = 1;
	question = "Speak, break";
	text1 = "_There are five. And they are seeking._";
	text2 = "His hands clench tightly about the sword's hilt.";

begintalknode 4;
	state = 3;
	personality = 500;
	nextstate = 4;
	condition = 1;
	question = "Five, seeking";
	text1 = "_All back. They will go all back! The mirrors are vanishing._";

begintalknode 5;
	state = 4;
	personality = 500;
	nextstate = 5;
	condition = 1;
	question = "Back, mirrors";
	text1 = "_The fifth piece found. Incomplete before. Now, now they are all here, and all will be rescinded._";
	text2 = "He closes his eyes and drives blindly ahead.";

begintalknode 6;
	state = 5;
	personality = 500;
	nextstate = 6;
	condition = 1;
	question = "Pieces, rescinded";
	text1 = "_Five relics beyond the mirrors, each a unique power. This is one, and the foundation of a kingdom. But one limit._";
	text2 = "As though in answer, the ruby flickers briefly, then renews its burning.";

begintalknode 7;
	state = 6;
	personality = 500;
	nextstate = 7;
	condition = 1;
	question = "Relics, limit";
	text1 = "He forces words painfully.";
	text2 = "_None can hold more than one. But Finn's is lost, and the same has found the fifth. The ban is broken, and the retribution comes._";

begintalknode 8;
	state = 7;
	personality = 500;
	nextstate = 8;
	condition = 1;
	question = "Fifth, retribution";
	text1 = "_They will all come. Here, beneath the mountains, is the calling. It cannot be refused! I will pay for this delay. But you must find the weapon._";

begintalknode 9;
	state = 8;
	personality = 500;
	nextstate = 9;
	condition = 1;
	question = "Delay, weapon";
	text1 = "_The blade is wrenching me away. I will keep it here for as long as..._ He pauses, unable to speak as he fights against the sword.";
	text2 = "_You must go to the mist-realm._";

begintalknode 10;
	state = 9;
	personality = 500;
	nextstate = 10;
	condition = 1;
	question = "Mist realm";
	text1 = "_West. North and west, in the sea. That is where these gems came of._ His voice quivers with excitement as though struck by a sudden thought.";
	text2 = "_There is a sixth, a sixth to rule them._";
	code =
	toggle_quest(6,1);	
	run_town_script(16);
	break;

begintalknode 11;
	state = 10;
	personality = 500;
	nextstate = 11;
	condition = 1;
	question = "Sixth, rule";
	text1 = "_Yes! It can break the hold! There is hope. Find it and return. Here, to the heart of the mountain._";

begintalknode 12;
	state = 11;
	personality = 500;
	nextstate = -1;
	condition = 1;
	question = "Heart mountain";
	text1 = "_There is no time! The western isle!_";
	text2 = "He strains as a blind man against the wall.";

begintalknode 15;
	state = -1;
	personality = 501;
	nextstate = 21;
	condition = 1;
	question = "Scyld";
	text1 = "The appearance of the Falcon-King is appalling to even you. His body is virtually transparent, leaving a skeleton to your sight. The fire of the ruby upon his sword in the wall is burning him away.";
	text2 = "A strained whisper escapes his mouth. _I..._";
	

begintalknode 16;
	state = 21;
	personality = 501;
	nextstate = 22;
	condition = 1;
	question = "What happened to you?";
	text1 = "_Heart of the mountain. No more._";
	code =
	toggle_quest(6,0);
	break;	

begintalknode 17;
	state = 22;
	personality = 501;
	nextstate = 23;
	condition = 1;
	question = "Heart";
	text1 = "_It comes. I cannot hold any more. It is calling._";
	text2 = "The frame of his body fills with a crimson glow.";

begintalknode 18;
	state = 23;
	personality = 501;
	nextstate = -1;
	condition = 1;
	question = "Calling";
	text1 = "_Down..._";
	text2 = "With a blast of fiery light, Scyld vanishes. The gem, by itself, levitates in mid-air for an instant, then flashes by you out the door.";
	action = END_TALK;
	code =
		erase_char(character_talking_to());
	break;

begintalknode 190;
	state = 100;
	personality = 38;
	nextstate = 101;
	condition = 1;
	question = "Immortal Sage give us wisdom to understand these items.";
	text1 = "You seek guidance from above.";
	
begintalknode 191;
	state = 101;
	personality = 38;
	nextstate = 102;
	condition = 1;
	question = "Immortal Sage give us wisdom to understand these items.";
	text1 = "Your items are identified.";
	action = ID 0;
	
begintalknode 192;
	state = 102;
	personality = 38;
	nextstate = -1;
	condition = 1;
	question = "We have all the information we need for now.";
	text1 = "You finish the identification.";
	action = END_TALK;	
	