// TOWN DIALOGUE SCRIPT
//    Town 52: Empire Archives

begintalkscript;

variables;

short i,j,k,r1,choice;

// Vikner

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 1;
	question = "Vikner";
	text1 = "A small, wizened man is cowering in the corner of his office. He wears long, silk robes, with the crown symbol of the Empire on the chest.";
	text2 = "When you approach him, he stammers, _I ... I ... I'm Vik ... Vik ... Vikner. P ... Please don't hurt me! I'm just a librarian._";
	text5 = "Vikner continues to cower in the corner, whimpering and moaning. _Please ... Please don't hurt me. I shuffle papers. That's all._";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	question = "_Tell me what you do here._";
	text1 = "_I ... I'm the archivalist ... archivist ... I keep the records._";

begintalknode;
	state = 2;
	nextstate = 3;
	question = "_What sort of records?_";
	text1 = "_Empire records. I don't study them. I just maintain them. I ... I'm just a librarian. I didn't want to come to Avernum! Please don't hurt me!_";

begintalknode;
	state = 3;
	nextstate = 1;
	question = "_No one wants to come to Avernum._";
	text1 = "_I'd never even heard of it until I was br ... br ... brought down here! I'll help you! D ... Don't hurt me!_";

begintalknode;
	state = 3;
	nextstate = 1;
	question = "_I will spare you if you cooperate._";
	text1 = "_Please don't hurt me! I'll help you if I can._";

begintalknode;
	state = 1;
	nextstate = 7;
	question = "_A librarian? This is just a giant library?_";
	text1 = "_Mostly yes. That's what's here! Archives! All sorts of records, most of them b ... b ... boring!_";

begintalknode;
	state = 7;
	nextstate = 8;
	question = "_How boring are they?_";
	text1 = "_Lots of accounting ledgers and forms. We have to s ... save them! So much. It's a tangle. So hard to find anything. And there are prisoners, too! And traps and guards._";

begintalknode;
	state = 8;
	nextstate = -1;
	question = "_Traps and guards?_";
	text1 = "He starts to shiver uncontrollably. You have to wait for him to calm down. _Yes, but I can't help. I only work on the top level, in the unsecured areas. I can't do anything about the guards._";

begintalknode;
	state = 8;
	nextstate = -1;
	question = "_How would I find a book I need?_";
	text1 = "_You look in the indexes. They're on this level! Northeast and southeast corners! You want something, they'll tell you where to go. Please don't hurt me!_";

begintalknode;
	state = 8;
	nextstate = 9;
	question = "_Was it your idea to store prisoners here too?_";
	text1 = "_No, oh no. I d ... didn't want prisoners here. I'm just a librarian. But they wouldn't listen. There are two mages downstairs._";

begintalknode;
	state = 9;
	nextstate = -1;
	question = "_Who are they?_";
	text1 = "_They're Avernites. That's all I know. Please don't hurt me._";

begintalknode;
	state = 1;
	nextstate = 10;
	question = "_I want to know more about what is stored here._";
	text1 = "_Everything. Countless things are here. All sorts of things. It's amazing how much is here._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Why would the Empire go to the trouble of storing things in the underworld?_";
	text1 = "_It was Garzahd's idea. He said secure records should be sent down here. I think he just wanted to hold the information. The secrets. They mean power for him._";

begintalknode;
	state = 10;
	nextstate = 11;
	question = "_Give me an example._";
	text1 = "_Ummm ... OK, I'll tell you. Please don't hurt me!_";

begintalknode;
	state = 11;
	nextstate = 12;
	question = "_Well, out with it. I'm waiting._";
	text1 = "_The Empire. We're building a big portal. It will bring people down to Avernum. Soldiers. Lots of them. More than we ever could before. You can find out about the portal here. In the records._";

begintalknode;
	state = 12;
	nextstate = -1;
	question = "_Where in the records?_";
	text1 = "He points east. _Look in the indexes. There! They say where everything is! Look there though ... you won't have a chance otherwise. There's just too many records. Please don't hurt me!_";

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_I an tired of your whining. Time to die!_";
	text1 = "Though Vikner is terrified, he's not helpless. He prepares to defend himself as best he can.";
	action = END_TALK;
	code =
		set_attitude(5233,10);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	question = "_Fine. I spare you. You can leave._";
	text1 = "_Leave my post? I'd be killed! The punishment for abandoning a post is death! I'll just wait here. Please don't hurt me._";
	action = END_TALK;

