#GENERAL
*name = "mercenary_dumb";
*faction = "npc";
*enemy_faction = "evil";

*rad        = 1.0;
*mass       = 30.0;
*elasticity = 0.3;
*drag       = 0.5;
*friction   = 4.0;
*hardness   = 0.4;
*roll       = 1.0;

*model = "npc_soldier_01";
*model_scale = 1.0;

#ATTRIBUTE "ccrange";
#BASE      2.0;
#ATTRIBUTE "ccspeed";
#BASE      3.0;
#ATTRIBUTE "ccdamage";
#BASE      4.0;
#ATTRIBUTE "attract";
#BASE      20.0;

#ATTRIBUTE "leak";
#BASE      0.0;

#ATTRIBUTE "speed";
#BASE      20.0;

#ATTRIBUTE "power";
#BASE      0.0;

#ATTRIBUTE "health";
#BASE      200.0;

#ATTRIBUTE "res";
#BASE      1.0;

#ATTRIBUTE "rot_speed";
#BASE      100.0;

#ATTRIBUTE "exp";
#BASE      0.0;

#ON_DAMAGE
 //sound_play("ow.wav", this_x(), this_y(), 1);

#INTERACTION
#ACTION

#EVENT
##BEGIN

#PROMPT "BARBER";
#TEXT 
if(eq(avar("mercenary_dumb_alive"), 1),
  "Whew! That was a close shave there. I'll wait here for the next group. You go on ahead, and take this stuff. You'll need it.",
    if(eq(avar("mercenary_dumb_alive"), 2),
	  "Get going now! The main fighting is just ahead!",
	    "Shh! You're gonna get me killed!"));

#RESPONSE "";
#GUARD eq(avar("mercenary_dumb_alive"), 0);
#TEXT "Sorry.";

#RESPONSE "";
#GUARD eq(avar("mercenary_dumb_alive"), 1);
#ACTION avar("mercenary_dumb_alive", 2);
  item_make("banana_02", add(rand(-2,2), 151), add(rand(-2,2), 24));
  item_make("coin_01", add(rand(-2,2), 151), add(rand(-2,2), 24));
  item_make("coin_01", add(rand(-2,2), 151), add(rand(-2,2), 24));
  item_make("coin_02", add(rand(-2,2), 151), add(rand(-2,2), 24));
#TEXT "Got it!";

#RESPONSE "";
#GUARD eq(avar("mercenary_dumb_alive"), 2);
#TEXT "Okay.";

##END

#CONTROL "script";
##BEGIN

#SEQUENCE "wait";
# rotate_to(225, .25);
# wait( 1000 );

##END