// OUTDOOR SECTION SCRIPT
//    Section: X = 1, Y = 0: Near Lakhoss

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;
if (get_flag(220,0) == 0) {
	set_flag(220,0,1);
	message_dialog("This was once a thriving slith city. Its name was Lakhoss, judging by the signs. It was sacked, abandoned, and overrun with monsters, but that was so long ago that even the monsters have left. Nothing lives here now.","");
	}
break;

beginstate 11;
	run_scenario_script(11);
break;

beginstate 12;
if (get_flag(220,1) == 0) {
	reset_dialog();
	add_dialog_str(0,"Before you is a giant dark altar, at which a number of barbarian sliths are praying. As you watch, they carry a dead body that looks like one of the ones from the quarry up to the altar and begin to hiss over it.",0);
	add_dialog_str(1,"This seems like a religious ritual, and if you had to guess, you'd think that they are desecrating the dead. Do you try to stop them?",0);
	add_dialog_choice(0,"Leave.");
	add_dialog_choice(1,"Try to stop them. (Attack.)");
	if (run_dialog(1) == 1)
		end();
		
	set_flag(220,1,1);
	create_out_spec_enc(0);
	}
break;

beginstate 13;
if (get_flag(220,2) == 0) {
	reset_dialog();
	add_dialog_str(0,"Before you is a giant hole in the ground. Deep it extends, with large rocks and boulders at the bottom, the remains of an ancient quarry for the nearby city. Evidently this rocky ground yielded resources for Lakhoss once upon a time.",0);
	add_dialog_str(1,"The decades since its abandonment have led to landslides and collapses around the sides of the pit. If Legare needs any rock, he can probably find it here, but it's not enough to rebuild the city, at least not without considerable re-excavation.",0);
	add_dialog_str(2,"Near the edge of the pit, you see a few very prominent dead bodies, apparently of sliths. They don't look very old, either, certainly not old enough to be from the time of Lakhoss. There is more to this place than meets the eye.",0);
	set_flag(220,2,run_dialog(1));
	}
break;

beginstate 14;
if (get_flag(220,3) == 0) {
	set_flag(220,3,1);
	message_dialog("Up close, you can see that the dead bodies are quite recent, judging by the fact that they have not been reduced to mere bones yet. They look like normal sliths, except perhaps for a bluish tint to their skin.","Some of the bodies look as though they have been disturbed. Something strange is going on here.");
	}
break;

beginstate 15;
	message_dialog("The barbarians are dead, and their desecration is stopped. As you put away your weapons, you hear a distant, quiet, spectral voice in your head. _We thank you,_ it whispers sibilantly. _Come down the east waterfall, so that we may repay you._","");
	set_flag(220,4,1);
break;