name		Baroness
health		300
nomove		1
type		enemy
hostile		player npc
dust		dust
#nopain		1
gfxshadow	1
nodrop		2
cantgrab	1
#aggression	-15
icon		data/chars/Baroness/icon.png
#diesound	data/sounds/die2.wav
animationscript	data/scripts/harden.c
takedamagescript data/scripts/blink.c

palette		data/chars/Baroness/idle1.gif
alternatepal	data/chars/Baroness/blink.gif

load		bullete 

	
anim	idle
	loop	1
	delay	12
	offset	30 105
	bbox	16 5 28 100
	frame	data/chars/Baroness/idle1.gif
	frame	data/chars/Baroness/idle2.gif
	frame	data/chars/Baroness/idle3.gif
	frame	data/chars/Baroness/idle4.gif
	frame	data/chars/Baroness/idle5.gif
	frame	data/chars/Baroness/idle6.gif
	frame	data/chars/Baroness/idle7.gif
			
anim	follow1
	delay	200
	offset	40 112
	bbox	18 17 32 95
	sound	data/chars/Baroness/Bspawn.wav
	frame	data/chars/Baroness/atk2-5.gif
	delay	8
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	target 3 1.5 70 0 0 1
	@cmd	shootT "bulletE" 60 68 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	sound	data/chars/Baroness/pistol.wav
#	@cmd	target 3 1.5 70 0 0 1
	@cmd	shootT "bulletE" 60 68 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	sound	data/chars/Baroness/pistol.wav
#	@cmd	target 3 1.5 70 0 0 1
	@cmd	shootT "bulletE" 60 68 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	delay	150
	frame	data/chars/Baroness/atk2-5.gif
	@cmd	looper 1 3
	frame	data/chars/Baroness/atk2-5.gif
			
anim	attack1
@script
    void self = getlocalvar("self");

    if( frame == 0){
      int MHealth = getentityproperty(self,"maxhealth");
      int Health = getentityproperty(self,"health");
      int r = rand()%30;

      if(Health <= MHealth/2){
        if( r > 0){
          changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW2"));
        } else {
          changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW3"));
        }
      } else if( r > 0){
        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));
      }
    }
@end_script
	range	70 550
	rangez	-50 50
	delay	1
	offset	40 112
	bbox	18 17 32 95
	frame	data/chars/Baroness/atk2-5.gif
	delay	200
	sound	data/sounds/reload.wav
	frame	data/chars/Baroness/atk2-5.gif
	delay	5
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 1
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -1
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	@cmd	looper 2 3
	frame	data/chars/Baroness/atk2-5.gif
		
anim	follow3
	delay	200
	offset	40 112
	bbox	18 17 32 95
	sound	data/chars/Baroness/Bspawn.wav
	frame	data/chars/Baroness/atk2-5.gif
	delay	8
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	target 3 1.5 70 0 0 1
	@cmd	shootT "bulletE" 60 68 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	sound	data/chars/Baroness/pistol.wav
#	@cmd	target 3 1.5 70 0 0 1
	@cmd	shootT "bulletE" 60 68 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	sound	data/chars/Baroness/pistol.wav
#	@cmd	target 3 1.5 70 0 0 1
	@cmd	shootT "bulletE" 60 68 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	sound	data/chars/Baroness/pistol.wav
#	@cmd	target 3 1.5 70 0 0 1
	@cmd	shootT "bulletE" 60 68 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	delay	100
	frame	data/chars/Baroness/atk2-5.gif
	@cmd	looper 1 4
	frame	data/chars/Baroness/atk2-5.gif
			
anim	follow2
	delay	1
	offset	40 112
	bbox	18 17 32 95
	frame	data/chars/Baroness/atk2-5.gif
	delay	150
	sound	data/sounds/reload.wav
	frame	data/chars/Baroness/atk2-5.gif
	delay	4
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -1
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 -0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 1
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.7
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.5
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0.2
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	frame	data/chars/Baroness/atk2-5.gif
	sound	data/chars/Baroness/pistol.wav
	@cmd	shooter "bulletE" 60 68 0 3 0 0
	frame	data/chars/Baroness/atk2-1.gif
	frame	data/chars/Baroness/atk2-2.gif
	frame	data/chars/Baroness/atk2-3.gif
	frame	data/chars/Baroness/atk2-4.gif
	@cmd	looper 2 4
	frame	data/chars/Baroness/atk2-5.gif


anim	fall
drawmethod 280 280
	offset	75 115
	delay	30
	landframe 2
	frame	data/chars/Baroness/fall1.png
	delay	300
	frame	data/chars/Baroness/fall2.png
	delay	12
	frame	data/chars/Baroness/fall3.png
	frame	data/chars/Baroness/fall4.png
			
anim	pain
drawmethod 280 280
	delay	10
	offset	75 115
	bbox	59 12 31 103
	sound	data/chars/Baroness/Bpain.wav
	frame	data/chars/Baroness/pain1.png
	frame	data/chars/Baroness/pain2.png
	frame	data/chars/Baroness/pain3.png
	
anim	rise
	delay	8
	offset	75 115
	frame	data/chars/Baroness/rise1.png
	frame	data/chars/Baroness/rise2.png
	frame	data/chars/Baroness/rise3.png
	frame	data/chars/Baroness/rise4.png
	
			
anim	walk
	loop	1
	delay	12
	offset	75 115
	bbox	59 12 31 103
	frame	data/chars/Baroness/walk01.png
	frame	data/chars/Baroness/walk02.png
	frame	data/chars/Baroness/walk03.png
	frame	data/chars/Baroness/walk04.png
	frame	data/chars/Baroness/walk05.png
	frame	data/chars/Baroness/walk06.png
	frame	data/chars/Baroness/walk07.png
	frame	data/chars/Baroness/walk08.png
	frame	data/chars/Baroness/walk09.png
	frame	data/chars/Baroness/walk10.png
	frame	data/chars/Baroness/walk11.png
	frame	data/chars/Baroness/walk12.png
