// TOWN SPECIAL ENCOUNTERS
//    Town 126: Command Tower

beginzonescript;

variables;

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

body;

//12

beginstate INIT_STATE;
	last_abil = get_current_tick();

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


	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if ((did_adj == 0) && (char_ok(12608))) {
		did_adj = 1;
		change_max_health(30001,150);
	
		set_level(30001,30);
		set_boss_level(30001,1);
 		}
 	
 	if ((gf(15,11) == 0) && (gf(15,8) > 0)) {
		if ((gf(126,20) == 0) && (gf(15,8) < 145)) {
			sf(126,20,1);
			run_game_hardcode(1);
			}
		if ((gf(126,21) == 0) && (gf(15,8) < 100)) {
			sf(126,21,1);
			run_game_hardcode(1);
			}
		if ((gf(126,22) == 0) && (gf(15,8) < 60)) {
			sf(126,22,1);
			run_game_hardcode(1);
			}
		if ((gf(126,23) == 0) && (gf(15,8) < 30)) {
			sf(126,23,1);
			run_game_hardcode(1);
			}
		if ((gf(126,24) == 0) && (gf(15,8) < 10)) {
			sf(126,24,1);
			run_game_hardcode(1);
			}
		}
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);

