// TOWN SPECIAL ENCOUNTERS
//    Town 10: Blosk

beginzonescript;

variables;

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

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

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

	set_personality_name(200,"Statue");
	set_personality_name(201,"Vicky");
	set_personality_name(202,"Bruce");
	set_personality_name(203,"Patsy");
	set_personality_name(204,"Oliver");
	set_personality_name(205,"Eddy");
	set_personality_name(206,"Justin");
	set_personality_name(207,"Saffron");
	set_personality_name(208,"Mondrian");
	set_personality_name(209,"Allisandre");
	set_personality_name(210,"Leith");
	set_personality_name(211,"Phaedra");
	set_personality_name(212,"Bartholomew");

	set_crime_tolerance(max_crime);

		if (revive_party()) {
			print_str_color("Entering a friendly town heals your wounds",2);
			print_str_color("  and restores your spell energy.",2);
			}
	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (gf(10,12) > 0)
		erase_char(1013);
	
	if (gf(10,13) < 2) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(1002,"I need help.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(1002,"There is a spy.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(1002,"Welcome, honored soldier.");
		}
	if (gf(10,13) >= 2) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(1002,"What a humiliation.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(1002,"The Empire is everywhere.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(1002,"We must beware.");
		}
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1003,"Ale, darling?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1003,"Room for the night?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1003,"Hail, soldier!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1013,"Sign this letter.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1013,"New report here.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1013,"News from the front.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1013,"This needs an answer.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1032,"Twang!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1032,"Hit!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1032,"Miss.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1034,"Twang!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1034,"Hit!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1034,"Miss.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1004,"Keep shooting!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1004,"Focus!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1004,"The Empire is merciless!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1007,"Darling!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1007,"Here, taste this!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1007,"Where's the ale?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1006,"Beauty surrounds us.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1006,"Life here is a miracle.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1006,"Stop and look.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1006,"Take a breath.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1023,"Hmmm.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1023,"Yes.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1023,"Ah.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1029,"You seem well.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1029,"I can't help you.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1029,"I keep secrets.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1009,"Sigh.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1009,"I'll play later.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1010,"What was that?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1010,"Enemies are everywhere.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1010,"We must always hunt.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1011,"Hah!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1011,"Stab!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1011,"Swish!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1011,"An adventurer! Wow!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1012,"You aren't welcome.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1012,"I am alone.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(1012,"Leave me.");

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

