// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_name(10260,"Private Crowley");
	set_name(10261,"Avernite Archer");
	set_name(10262,"Avernite Archer");
	set_aggression(10260,50);
	set_aggression(10261,50);
	set_aggression(10262,50);
	
	set_name(10289,"Hellhound Alpha");
	set_boss_level(10289,1);
	set_attack_bonus(10289,10);
	set_new_abil(10289,20);
	set_coloradj(10289,272);
	
	set_aggression(10299,60);
	set_aggression(10300,60);
	set_aggression(10301,60);
	
//	add_range_to_group(,,groupn);

	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
		
	//if ((get_crime_level() >= max_crime) && (im_hostile == 0)) {
	//	make_zone_hostile();
	//	im_hostile = 1;
	//	}

	// if (gf(,) == 0) {
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(10260,"Beware the woods.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(10260,"Cotra is evacuated.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(10260,"Shhh. What was that?");
	//	}

	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_group()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	}
break;

beginstate 10;
	if (gf(95,4) == 0) {
		sf(95,4,1);
		print_str_color("You hear squeaking coming from all around you.",2);
		activate_hidden_group(13);
		}
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

beginstate 20;
	if (is_combat() == FALSE)
		print_str_color("You climb the stairs.",2);
	change_level(722,390,0);
	// direction - 0,1 - north 2,3 - west 4,5 - south 6,7 - east
break;

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