//Outdoors around Mertis
beginoutdoorscript;

variables;
int choice;

body;

beginstate INIT_STATE;

break;

beginstate START_STATE;

break;

beginstate 10;
	if(get_flag(3,5) == 0 && get_flag(3,6) == 0){
		reset_dialog();
		add_dialog_str(0,"You haven't yet finished your mission, but you could just leave the area and find some other use for your time. ",0);
		add_dialog_choice(0,"Stay");
		add_dialog_choice(1,"Leave");
		choice = run_dialog(0);
		if(choice == 1)
			block_entry(1);
		else
			end_scenario(0);
	}
	else if(get_flag(3,5) != get_flag(3,6)){
		reset_dialog();
		add_dialog_str(0,"You completed your mission, but you're not sure if you've done all you can here. ",0);
		add_dialog_choice(0,"Stay");
		add_dialog_choice(1,"Leave");
		choice = run_dialog(0);
		if(choice == 1)
			block_entry(1);
		else
			end_scenario(1);
	}
	else{
		reset_dialog();
		add_dialog_str(0,"You completed your mission, and there isn't much more for you do do here. It may be time to move on to other adventures",0);
		add_dialog_choice(0,"Stay");
		add_dialog_choice(1,"Leave");
		choice = run_dialog(0);
		if(choice == 1)
			block_entry(1);
		else
			end_scenario(1);
	}
break;

beginstate 11;
	if(get_flag(100,1)==0){
		set_flag(100,1,1);
		message_dialog("Interestingly the owners of this farm appear to be a large family of Nephilim. They wave to you as you pass by, no differently than any of the human farmers. ","20 years ago in Avernum you never would have seen such a sight.");
	}
break;

beginstate 12;
	if(get_flag(100,2)==0){
		set_flag(100,2,1);
		message_dialog("This is the location of the legendary Spiral Pit, one of the worst and most persistant danger spots in Avernum.","About 10 years ago a team of wizards from the Tower of Magi deliberately collapsed as much of the pit as they could, and they are supposed to be keeping close survailance of the area using scrying spells to prevent any more undead outbreaks.");
	}
break;