// .txt

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,"");

	add_range_to_group(17712,17717,43);
	set_aggression(30043,70);
	
	add_range_to_group(17718,17722,44);
	add_range_to_group(17723,17727,45);
	add_range_to_group(17728,17732,46);
	
	set_name(17733,"Flaming Goop");
	set_level(17733,15);
	set_coloradj(17733,260);
	set_aggression(17733,70);
	set_name(17734,"Flaming Goop");
	set_level(17734,15);
	set_coloradj(17734,260);
	set_aggression(17734,70);
	set_name(17735,"Flaming Goop");
	set_level(17735,15);
	set_coloradj(17735,260);
	set_aggression(17735,70);
	set_name(17736,"Flaming Goop");
	set_level(17736,15);
	set_coloradj(17736,260);
	set_aggression(17736,70);

	set_resistance(17733,2,100);
	set_resistance(17734,2,100);
	set_resistance(17735,2,100);
	set_resistance(17736,2,100);
	
	add_range_to_group(17757,17760,47);
	if (gf(164,2) > 0)
		erase_char(30047);
		
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	if (gf(164,19) > 0) {
		if ((char_ok(17757)) && (get_attitude(17757) < 10))
			set_attitude(30047,10);
		}
	
	if ((summ == 0) && (gf(164,3) == 1)) {
		summ = 1;
		spawn_creature(17762);
		}
	
	//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(,"");
	//	}

	//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(164,21) == 0) {
		sf(164,21,2);
		print_str_color("You hear more rumbling. Another fumarole comes to life",3);
		print_str_color("behind you.",3);
		}
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);
