// OUTDOOR SECTION SCRIPT
//    Section: X = 0, Y = 1: The Black Land

beginoutdoorscript;

variables;

int choice,dummy;

body;

beginstate INIT_STATE;
// This state called whenever this section is loaded into memory.
break;

beginstate START_STATE;
// Starting state of the section, called every turn the party 
// stands inside this section until you change the state.
break;

beginstate 10;
	message_dialog("If you get too close to the lava-fall, you may be sucked under and suffer a horrible burning death. You wisely stay back.","");
	block_entry(1);
break;

beginstate 11;
if (get_flag(201,0) == 0) {
	set_flag(201,0,1);
	message_dialog("Just ahead, the cave turns so dark that you cannot make out even the walls. There is none of the magical fungus that lights the rest of the caves, and moreover, the darkness seems to inhabit this place as a living thing.","You will have to make your way through this area nearly blind. Or perhaps not! In the distance, you can see a deep lava flow. It gives enough light to see, although not well. The scent of sulfur grows stronger, and the air is almost burning hot.");
	}
break;

beginstate 12;
if ((get_flag(7,6) == 1) && (get_flag(8,0) == 1)) {
	if (get_flag(201,1) == 0) {
		set_flag(201,1,1);
		message_dialog("You arrive at a gigantic gate, beyond which is a faint glimmer of light. No one is in sight. Suddenly, a disembodied voice speaks in your mind: _What is the password? State the name of our god and our clan._","Remembering the dying words of the slith leader in Nakhtha and remembering your experiences in the barbarian camp, you reply, _Rashank Thkhi._ The gates open. You are free to pass.");
		end();
		}
	end();
	}

	block_entry(1);
	if (get_flag(7,6) == 1)
		message_dialog("You arrive at a gigantic gate, beyond which is a faint glimmer of light. No one is in sight. Suddenly, a disembodied voice speaks in your mind: _What is the password? State the name of our god and our clan._","You fumble for a moment. Remembering the dying words of the slith leader in Nakhtha, you say, _Rashank._ It seems unsatisfactory, though, as the gates do not open. There must be more to the password than just that one word.");
	if (get_flag(8,0) == 1)
		message_dialog("You arrive at a gigantic gate, beyond which is a faint glimmer of light. No one is in sight. Suddenly, a disembodied voice speaks in your mind: _What is the password? State the name of our god and our clan._","You fumble for a moment. Remembering your experiences in the barbarian camp, you say, _Thkhi._ It seems unsatisfactory, though, as the gates do not open. There must be more to the password than just that one word.");
	if ((get_flag(7,6) == 0) && (get_flag(8,0) == 0))
		message_dialog("You arrive at a gigantic gate, beyond which is a faint glimmer of light. No one is in sight. Suddenly, a disembodied voice speaks in your mind: _What is the password? State the name of our god and our clan._","You have no idea, so after a few lame guesses that show no signs of opening the gates, you leave.");
	
break;

beginstate 13;
	message_dialog("As you approach this gate, you hear lots of guards drawing their weapons. Wisely, you back away.","");
	block_entry(1);
break;