// TOWN SCRIPT
//    Town 0: Warrior's Grove

// This is the special encounter script for this town.
// The states INIT_STATE, EXIT_STATE, and START_STATE have
// meanings that are described in the documenation. States you write
// yourself should be numbered from 10-100.

begintownscript;

variables;

int i,j,k,choice;

body;

beginstate INIT_STATE;
// This state called whenever this town is entered.
	enable_add_chars(1);

	set_crime_tolerance(2);
break;

beginstate EXIT_STATE;
// Always called when the town is left.
break;

beginstate START_STATE;
// This state is called every turn the party is in this town.

break;

beginstate 10;
	if (get_flag(0,0) == 250)
		end();
	message_dialog("You find a narrow, concealed walkway between two buildings. Webs hang frome ceiling, and the bones of unfortunate rats crunch underfoot.","");
	set_flag(0,0,250);
break;

beginstate 11;
	reset_dialog();
	add_dialog_str(0,"Do you wish to leave the scenario now?",0);
	add_dialog_choice(0,"No");
	add_dialog_choice(1,"Yes");
	choice = run_dialog(1);
	if (choice == 1)
		end();
	if (choice == 2)
		set_state_continue(12);
break;

beginstate 12;
	end_scenario(1);
break;

