// TOWN SPECIAL ENCOUNTERS
//    Town 45: Trapped Halls

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 200;
short last_abil;
short counter = 0;
short set_ter = 0;
short set_att = 0;

body;

//1234

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,);
//	add_range_to_group(,,groupn);

	sf(45,20,0);
	sf(45,21,0);
	sf(45,22,0);
	sf(45,23,0);
	sf(45,24,0);
	sf(45,25,0);
	
	set_name(30001,"Giant Construct");
	set_aggression(30001,30);
	set_coloradj(30001,17);
	set_level(30001,15);
	set_attitude(30001,4);
	
	set_aggression(30002,50);
	set_aggression(30003,50);
	set_level(30004,15);
	set_aggression(30004,30);

	set_aggression(4552,50);
	set_aggression(4556,50);
	
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (gf(44,25) > 0)
		sf(45,29,1);
		
	if ((set_ter == 0) && (gf(6,0) > 1)) {
		set_ter = 1;
		set_terrain(0,7,21,0);
		}
	if ((set_att == 0) && (gf(45,26) > 0)) {
		set_att = 1;
		set_attitude(30001,10);
		}
		
break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

beginstate 14;
break;

//	print_str("");
//	set_terrain_string_range("",1);
//	set_terrain_string_range("The sign says - .",1);

