// TOWN DIALOGUE SCRIPT
//    Town 3: Marralis

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

begintalkscript;

variables;

int i,j,k,r1,choice;

begintalknode 1;
	state = -1;
	personality = 0;
	nextstate = -1;
	condition = 1;
	question = "Watchman";
	text1 = "The guard absolutely refuses to talk to you. He'll let nothing distract him from his duty.";
	action = END_TALK;
	
begintalknode 2;
	state = 1;
	personality = 1;
	nextstate = 2;
	condition = 1;
	question = "Cave guard";
	text1 = "This Watchman stands in front of an old, weathered doorway. It doesn't look as old as the memorial to fire, but it looks nearly as ancient.";
	text2 = "The guard gives you a cold look. _Stay out of trouble. Stay away from here._";
begintalknode 3;
	state = 2;
	personality = 1;
	nextstate = 2;
	condition = 1;
	question = "What do you do here?";
	text1 = "The guard sighs. _We protect the eternal fires. So long as Megiddo stands, we will guard them. We will never let them perish._ It sounds like this was initially something he believed in, but his passion has died.";
	text2 = "_And sometimes, General Seth comes here. General Seth himself sometimes tends the fires. And sometimes,_ the guard raps on the door behind him. _Sometimes, General Seth journeys into the caverns underneath the Fire Temple._";
begintalknode 4;
	state = 2;
	personality = 1;
	nextstate = 2;
	condition = get_flag(0,22) == 0;
	question = "What's behind that door? Can I go through?";
	text1 = "The guard laughs harshly. _It would be better if you didn't. There are fierce monsters within; huge bats, the size of a child. And spiders, the size of two children!_ He shakes his head. _It is far from safe._";
begintalknode 5;
	state = 2;
	personality = 1;
	nextstate = 2;
	condition = get_flag(0,22) == 250;
	question = "Warren said there's a cavern around here, and he said we should go inside.";
	text1 = "The guard looks at you with skepticism. _If Warren says you can enter... you can enter. I hope you know what you're getting into, though._ The guard moves out of your way.";
	code = 
		erase_char(7);
		activate_hidden_group(1);
		end();
		set_flag(3,3,250);
	break;