// v1.0.0
// tbase.txt
// Spiderweb Software (spidweb@spidweb.com)

begintownscript;

variables;

int i,j,k,r1,choice;
int gate_opened = 0;

body;

// This state called whenever this town is entered.
beginstate INIT_STATE;
	// Names must appear first.
	//set_name(,"");

	if (town_status(current_town()) < 2) {
		enable_add_chars(1);
		set_crime_tolerance(5);
	}
	else turn_off_training(1);
break;

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

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

beginstate 10;
	block_entry(1);
break;