// TOWN SPECIAL ENCOUNTERS
//    Town 55: Gnass

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(1100,"Pathass");
	set_personality_name(1101,"Assotho");
	set_personality_name(1102,"Lairgath");
	set_personality_name(1103,"Orho");
	set_personality_name(1104,"Eth-Ath");
	set_personality_name(1105,"Othoss");
	set_personality_name(1106,"Uss");
	set_personality_name(1107,"Ith");
	set_personality_name(1108,"Toth-Thsss");

	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 (get_ran(1,0,100) < 10)
		give_char_text_bubble(5525,"Times are hard.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5525,"We have lost much.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5525,"The savages remain.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5525,"We watch for raids.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5501,"You are safe here.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5501,"This is a refuge.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5501,"Here we stand.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5528,"Ahhh ...");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5528,"Ohhhh ...");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5528,"All ... lost.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5528,"I will ... fight again.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5503,"Our spears are fine.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5503,"Enjoy our crafts.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5503,"You are welcomed.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5504,"Ow!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5504,"Tread carefully.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5504,"Please go.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5504,"Careful.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5505,"To work.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5505,"Uss, come.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5505,"Ith, stop that.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5505,"Don't eat those.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5506,"Outsider!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5506,"No. No.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5506,"Me no bad!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5507,"Grow.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5507,"Farm.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5507,"Strong!");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5508,"Always be alert.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5508,"Beware raiders.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5508,"The Empire will pay.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5508,"More refugees?");


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

