// TOWN SPECIAL ENCOUNTERS
//    Town 33: Resting Cell #4

beginzonescript;

variables;

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

body;

// 1 2 4 3 5 6 7 8 9

beginstate INIT_STATE;
	last_abil = get_current_tick();

	set_aggression(30001,60);
	set_aggression(30002,60);
	set_aggression(30003,60);
	set_aggression(30004,60);
	set_aggression(30005,60);
	set_aggression(30006,60);
	set_aggression(30007,60);
	set_aggression(30008,50);
	
	set_name(3309,"Small Ice Pudding");
	set_level(3309,15);
	set_name(3321,"Small Ice Pudding");
	set_level(3321,15);
	set_name(3337,"Small Ice Pudding");
	set_level(3337,15);
	set_name(3338,"Small Ice Pudding");
	set_level(3338,15);
	set_name(3339,"Small Ice Pudding");
	set_level(3339,15);
	set_name(3363,"Small Ice Pudding");
	set_level(3363,15);
	
	set_name(30009,"Vicious Ice Lizard");
	set_level(30009,14);
	set_boss_level(30009,1);
	
//	set_name(,);
//	add_range_to_group(,,groupn);

	set_personality_name(660,"Bohen");
	set_personality_name(661,"Abra");

	if (gf(28,9) == 0) {
		erase_char(3300);
		erase_char(3301);
		}
		
	set_crime_tolerance(max_crime);

	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3300,"Death awaits.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3300,"A hard Awakening.");
	if ((get_ran(1,0,100) < 10) && (gf(33,12) < 2))
		give_char_text_bubble(3300,"We need support.");
	if ((get_ran(1,0,100) < 10) && (gf(33,12) >= 2))
		give_char_text_bubble(3300,"You made things slightly better.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3301,"Leave controls alone.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(3301,"Hmmmm. Mmmmm.");
	if ((get_ran(1,0,100) < 10) && (gf(33,12) < 2))
		give_char_text_bubble(3301,"Luck brought you here.");
	if ((get_ran(1,0,100) < 10) && (gf(33,12) >= 2))
		give_char_text_bubble(3301,"You have saved many.");

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);

