// TOWN SPECIAL ENCOUNTERS
//    Town 56: Fort Emerald

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(1120,"Silverio");
	set_personality_name(1121,"General Landren");
	set_personality_name(1122,"Captain Schnitzius");
	set_personality_name(1123,"Buck");
	set_personality_name(1124,"Tessa");
	set_personality_name(1125,"Heustess");
	set_personality_name(1126,"Theresa");
	set_personality_name(1127,"Brian");

	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(5614,"Shhhh.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5614,"Was that ... no.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5614,"Be alert.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5611,"");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5611,"");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5611,"");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5617,"It's an honor.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5617,"I'm eager to help.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5617,"So good to see you.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5617,"A new raid leaves soon.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5603,"Hmmmm.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5603,"Ommmmm.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5603,"Join us.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5605,"Barriers are a challenge.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5605,"Repairs are needed.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5605,"Hello, raider.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5605,"Any news?");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5624,"Stupid Brian.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5624,"I'm a fool.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5624,"Leave me alone.");
	if (get_ran(1,0,100) < 10)
		give_char_text_bubble(5624,"Don't be greedy.");
	if (gf(56,13) < 2) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5607,"Ohhhh.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5607,"Hurts.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5607,"This is the end.");
		}
	if (gf(56,13) >= 2) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5607,"Thanks again.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5607,"I'm better.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(5607,"Ready to fight again!");
		}


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

