// TOWN DIALOGUE SCRIPT
//    Town 44: Tower of Sixus

begintalkscript;

variables;

short i,j,k,r1,choice;

// Statue

begintalknode;
	tag = 10;
	state = -1;
	nextstate = 12;
	question = "Statue";
	text1 = "The statue before you is a lumpy granite construct, hundreds of pounds of magically animated rock. The only exceptional thing about this ugly statue is that it is alive. It's watching you carefully.";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = gf(44,24) == 0;
	question = "_What is your name?_";
	text1 = "It slowly shakes its head. Stone dust falls to the floor. _I have no name, just a purpose._";

begintalknode;
	state = 13;
	nextstate = 12;
	question = "_And what would that purpose be?_";
	text1 = "_I speak with those who wish to meet with the wizard Sixus._";
	code =
		sf(44,24,1);
	break;
	
begintalknode;
	state = 12;
	nextstate = 3;
	condition = gf(44,25) == 0 && gf(44,24) > 0;
	question = "_I would like to meet Sixus._";
	text1 = "_Sixus is my master, and my creator. He and his followers have fled to a truly secret place. I may tell you where, if it would be best. To do so, I need information._";

begintalknode;
	state = 3;
	nextstate = -1;
	question = "_I need to find out why Sixus fled. Do you know?_";
	text1 = "_I know very little. You have asked me a question which is outside the bounds of my knowledge._";
	
begintalknode;
	state = 3;
	nextstate = 4;
	question = "_What kind of information do you need?_";
	text1 = "_To show you are not hostile. I can tell your truth and falseness. Beware. Tell me. Who sent you here to find Sixus?_";

begintalknode;
	state = 4;
	nextstate = -1;
	condition = gf(6,13) >= 1;
	question = "_Someone named Bevan sent me._";
	text1 = "__";
	action = END_TALK;
	code =
	run_hardcode(123);
	break;

begintalknode;
	state = 4;
	nextstate = -1;
	condition = gf(6,13) == 0;
	question = "_I don't have to answer your questions. Tell me where to find Sixus, or pay._";
	text1 = "The statue's eyes flash red.";
	action = END_TALK;
	code =
		sf(45,29,1); // open trapped halls gate
		set_attitude(4451,10);
	break;

begintalknode;
	state = 4;
	nextstate = -1;
	condition = gf(6,13) == 0;
	question = "_Ummm. nobody. Never mind._";
	text1 = "The statue grows silent.";
	action = END_TALK;


begintalknode;
	state = 12;
	nextstate = -1;
	condition = gf(6,13) == 0 && gf(44,24) > 0;
	question = "_Who is Sixus?_";
	text1 = "_I am instructed to tell you that, if you have to ask, you shouldn't be told._ The statue closes its eyes.";
	action = END_TALK;

begintalknode;
	state = 12;
	nextstate = -1;
	condition = gf(6,13) >= 2 && gf(44,24) > 0;
	question = "_I have already encountered Sixus._";
	text1 = "_Then I have nothing to say to you._ The statue closes its eyes.";
	action = END_TALK;

