// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

	add_range_to_group(12528,12533,43);
	set_name(30043,"Woods Spider");
	set_name(12533,"Aranea");
	set_coloradj(12533,4);
	change_max_health(12533,40);
	set_aggression(30043,75);
	
	add_range_to_group(12534,12537,44);
	set_name(30044,"Woods Spider");
	set_aggression(30044,75);
	
	add_range_to_group(12538,12541,45);
	set_name(30045,"Woods Spider");
	set_aggression(30045,60);
	
	set_name(12542,"Avernite Soldier");
	set_name(12543,"Avernite Soldier");
	set_name(12544,"Sergeant Benmer");
	set_name(12545,"Avernite Soldier");
	set_name(12546,"Avernite Soldier");
	
	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(12544,"This is my stew.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12544,"We aren't sharing food.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(12544,"Stay on the roads.");
	//	}

	//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;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

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