// basicnpc.txt
// A very simple, naive text. Creature attacks anything it hates nearby.
// Once it has won, it returns to its home.
// NPC that doesn't move or do anything
//   Cell 1,2 - Stuff done flag. If both 0, nothing. Otherwise when this is killed, set to 1.

begincreaturescript;

variables;

short i,target;

body;

beginstate INIT_STATE;
	set_name(ME,"The Gremlin King");
	set_char_unkillable(ME,1);
	
	set_walk_speed(ME,0);
	set_combat_activity(ME,2);

		place_particle_num(ME,15,12,3);		
		place_particle_num(ME,15,13,3);
		place_particle_num(ME,16,12,3);		
		place_particle_num(ME,16,13,3);
	break;

beginstate DEAD_STATE;
break;

beginstate START_STATE; 
	if ((get_nearest_party_char(6) >= 0) || (who_shot_me() >= 0))
		talk_no_exit(70);
break;

beginstate TALKING_STATE;
	talk_no_exit(70);
break;