
####animationscript function main#####
# data/sprites/pause.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/sprites/dust.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


if(frame == 9){

void self = getlocalvar("self");

killentity(self);

}

        return;
    }

}

####animationscript function main#####
# data/chars/cheng/flame.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -0.7, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 0.7, 0, 0);

		}

	        if(frame==23)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/en3/molo.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {


                void self = getlocalvar("self");

 		if (frame == 8){

		changeentityproperty(self, "velocity", 0, 0, 6);

		}

	        if(frame==13)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/amon/exp.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


                void self = getlocalvar("self");

 		if (frame == 8){

		changeentityproperty(self, "velocity", 0, 0, 6);

		}

	        if(frame==13)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/amon/amfx.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


                void self = getlocalvar("self");

                int map =getglobalvar("bikermap");

                 if( frame == 0 )

                {

                changeentityproperty(getlocalvar("self"), "map", map);

                 }

	        if(frame==4)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/amon/amon.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 5){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                	void	dummy;

	if (frame==0){

	setglobalvar("bikermap", getentityproperty(getlocalvar("self"), "map"));

	}

  	if(frame==1){

	clearspawnentry();

	setspawnentry("name","amfx");

	dummy	= spawn();

	changeentityproperty(dummy,"parent", self);

        changeentityproperty(dummy, "map", getglobalvar("bikermap" + self));

	bindentity(dummy,	self, -40,-5,-25,1,0);

	}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 4.5, 0, 5.4);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -4.5, 0, 5.4);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 10)){

		changeentityproperty(self, "velocity", 2.6, 0, -1.7);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 10)){

		changeentityproperty(self, "velocity", -2.6, 0, -1.7);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

	        return;
    }
    if(animnum==27)
    {


	void	self = getlocalvar("self");

	void	dummy;

	if (frame==0){

	setglobalvar("bikermap", getentityproperty(getlocalvar("self"), "map"));

	}

  	if(frame==1){

	clearspawnentry();

	setspawnentry("name","amfx");

	dummy	= spawn();

	changeentityproperty(dummy,"parent", self);

        changeentityproperty(dummy, "map", getglobalvar("bikermap" + self));

	bindentity(dummy,	self, -40,-5,0,1,0);

	}

	 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5.3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5.3, 0, 0);

		}

		if (frame == 8){

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==44)
    {


	void	self = getlocalvar("self");

	void	opo = getentityproperty(self,"opponent");

	int	opox = getentityproperty(opo,"x");

	int	opoz = getentityproperty(opo,"z");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

 		changeentityproperty(self, "position", opox + 170 ,opoz + 2);

 		changeentityproperty(self, "velocity", -7.3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "position", opox - 170,opoz + 2 );

		changeentityproperty(self, "velocity", 7.3, 0, 0);

 		}

		if (frame == 4 ){

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

		if (frame == 6 ){

 		}

	        return;
    }
    if(animnum==45)
    {


	void	self = getlocalvar("self");

	void	opo = getentityproperty(self,"opponent");

	int	opox = getentityproperty(opo,"x");

	int	opoz = getentityproperty(opo,"z");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

 		changeentityproperty(self, "position", opox + 170 ,opoz + 2);

 		changeentityproperty(self, "velocity", -7.3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "position", opox - 170,opoz + 2 );

		changeentityproperty(self, "velocity", 7.3, 0, 0);

 		}

		if (frame == 4 ){

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

		if (frame == 6 ){

 		}

	        return;
    }
    if(animnum==56)
    {


if(frame==6)

{

    void vSelf = getlocalvar("self");

    void dummy;

    clearspawnentry();

    setspawnentry("name", "exp");

    dummy = spawn();

    changeentityproperty(dummy, "parent", vSelf);

    bindentity(dummy, vSelf, 0,5,0,1,0);

    setglobalvar("bikermap", getentityproperty(getlocalvar("self"), "map"));

}

      if(frame==7)

      {

          void vSelf = getlocalvar("self");

      bindentity(vSelf, NULL());

}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/burke/burke.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

               if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.1, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.1, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 3)){

		changeentityproperty(self, "velocity", 1.5, 0, 6.6);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 3)){

		changeentityproperty(self, "velocity", -1.5, 0, 6.6);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 12)){

		changeentityproperty(self, "velocity", 1.7, 0, -1.3);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 12)){

		changeentityproperty(self, "velocity", -1.7, 0, -1.3);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if (frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5.4, 0, 0);

		}

		if(frame == 8){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

    		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==1)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir1",1);

    }

	        return;
    }

}

####animationscript function main#####
# data/chars/cheng/cheng.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3.6, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 4.2, 0, 5);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -4.2, 0, 5);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 11)){

		changeentityproperty(self, "velocity", 2.9, 0, -1.2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 11)){

		changeentityproperty(self, "velocity", -2.9, 0, -1.2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 2.8, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -2.8, 0, 0);

		}

		if(frame == 14){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 7)){

		changeentityproperty(self, "velocity", 5.5, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 7)){

		changeentityproperty(self, "velocity", -5.5, 0, 0);

		}

		if(frame == 8){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/duke/duke.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 6){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 6){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

               	if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 3.3, 0, 8.8);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -3.3, 0, 8.8);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 11)){

		changeentityproperty(self, "velocity", 1.7, 0, -2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");



		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 11)){

		changeentityproperty(self, "velocity", -1.7, 0, -2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

          		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5.2, 0, 0);

		}

		if(frame == 9){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 7, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -7, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==54)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 6){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/jimmy/jimmy.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

                 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                                	int iMap = getentityproperty(self, "map");



	if((iMap == 1 ||iMap == 3 || iMap == 5 || iMap == 7 )&&(frame == 0)){

          changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL5"));

	}

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.6, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 2.3, 0, 6.7);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -2.3, 0, 6.7);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 12)){

		changeentityproperty(self, "velocity", 1.3, 0, -1.6);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 12)){

		changeentityproperty(self, "velocity", -1.3, 0, -1.6);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if (frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==25)
    {


                void self = getlocalvar("self");

                	int iMap = getentityproperty(self, "map");



if((iMap == 1 ||iMap == 3 || iMap == 5 || iMap == 7 )&&(frame == 0)){

          changeentityproperty(self, "animation", openborconstant("ANI_ATTACK5"));

	}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

                	int iMap = getentityproperty(self, "map");



if((iMap == 1 ||iMap == 3 || iMap == 5 || iMap == 7 )&&(frame == 0)){

          changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL4"));

	}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5.2, 0, 0);

		}

		if(frame == 9){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==43)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5.2, 0, 0);

		}

		if(frame == 9){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==44)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.6, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 2.3, 0, 6.7);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -2.3, 0, 6.7);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 12)){

		changeentityproperty(self, "velocity", 1.3, 0, -1.6);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 12)){

		changeentityproperty(self, "velocity", -1.3, 0, -1.6);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if (frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==45)
    {


                void self = getlocalvar("self");

               	int iMap = getentityproperty(self, "map");

        	if((iMap == 1)&&(frame == 0))

	{

          changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL6"));

	}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==54)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==1)
    {


	void	self = getlocalvar("self");

	int	iMap = getentityproperty(self, "map");

     	if((iMap == 1 ||iMap == 3 || iMap == 5 || iMap == 7 )&&(frame == 0))

	{	

   setglobalvar("spir9",1);

	}	

	        return;
    }

}

####animationscript function main#####
# data/chars/ken/ken.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3.6, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 1.5, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -1.5, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 2.1, 0, 7.3);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -2.1, 0, 7.3);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 11)){

		changeentityproperty(self, "velocity", 1.6, 0, -2.1);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");



		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 11)){

		changeentityproperty(self, "velocity", -1.6, 0, -2.1);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");



		}

		if (frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 3.5, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -3.5, 0, 0);

		}

		if(frame == 15){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/kento/kento.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 9){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 1.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -1.6, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 5)){

		changeentityproperty(self, "velocity", 2, 0, 6.6);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 5)){

		changeentityproperty(self, "velocity", -2, 0, 6.6);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 12)){

		changeentityproperty(self, "velocity", 2.6, 0, -1.6);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 12)){

		changeentityproperty(self, "velocity", -2.6, 0, -1.6);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if (frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5.2, 0, 0);

		}

		if(frame == 8){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

    		if ((getentityproperty(self, "direction")==1)&&(frame == 5)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 5)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 8){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/lorentz/lorentz.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 1.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -1.6, 0, 0);

		}

				if (frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 5)){

		changeentityproperty(self, "velocity", 2, 0, 5.5);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 5)){

		changeentityproperty(self, "velocity", -2, 0, 5.5);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 14)){

		changeentityproperty(self, "velocity", 2.4, 0, -1.2);

		 		}



		if ((getentityproperty(self, "direction")==0)&&(frame == 14)){

		changeentityproperty(self, "velocity", -2.4, 0, -1.2);

		}

		if (frame == 14){

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}



	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 4.9, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -4.9, 0, 0);

		}

		if(frame == 7){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 5, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -5, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==54)
    {


                void self = getlocalvar("self");

    		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==1)
    {


	void	self = getlocalvar("self");

	if(frame == 0)	{

   setglobalvar("spir2",1);

	}

	        return;
    }

}

####animationscript function main#####
# data/chars/rebe/rebe.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

               	changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3.6, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.3, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 2.1, 0, 6.3);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -2.1, 0, 6.3);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 11)){

		changeentityproperty(self, "velocity", 1.7, 0, -1.7);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");



		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 11)){

		changeentityproperty(self, "velocity", -1.7, 0, -1.7);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");



		}

		if (frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5, 0, 0);

		}

		if(frame == 9){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3.2, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/rhajang/rhajang.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -4, 0, 0);

		}

		if(frame == 7){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 1.8, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -1.8, 0, 0);

		}

		if(frame == 6){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 1.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -1.6, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 5)){

		changeentityproperty(self, "velocity", 3, 0, 6.4);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 5)){

		changeentityproperty(self, "velocity", -3, 0, 6.4);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 12)){

		changeentityproperty(self, "velocity", 1.9, 0, -2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 12)){

		changeentityproperty(self, "velocity", -1.9, 0, -2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if (frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5.7, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5.7, 0, 0);

		}

		if(frame == 8){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 5, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -5, 0, 0);

		}

		if(frame == 5){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==54)
    {


                void self = getlocalvar("self");

    		if ((getentityproperty(self, "direction")==1)&&(frame == 3)){

		changeentityproperty(self, "velocity", 1.8, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 3)){

		changeentityproperty(self, "velocity", -1.8, 0, 0);

		}

		if(frame == 6){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/rhajang/rhafir.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {
        if(frame==8)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/tong/tong.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3.3, 0, 5.5);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3.3, 0, 5.5);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 11)){

		changeentityproperty(self, "velocity", 1.7, 0, -2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 11)){

		changeentityproperty(self, "velocity", -1.7, 0, -2);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 6.3, 0,2.3);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -6.3, 0,2.3);

		}

		if(frame == 9){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

    		if ((getentityproperty(self, "direction")==1)&&(frame == 3)){

		changeentityproperty(self, "velocity", 2.5, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 3)){

		changeentityproperty(self, "velocity", -2.5, 0, 0);

		}

		if(frame == 7){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/yuri/yuri.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==9)
    {


                void self = getlocalvar("self");

                int iPIndex = getentityproperty(self,"playerindex"); //Get player index

                void p1 = playerkeys(iPIndex, 0, "movedown");

                 if ((p1)&&(frame == 0)){

                changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 5){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==10)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 5.8, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -5.8, 0, 0);

		}

		if(frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==124)
    {


                void self = getlocalvar("self");

                void	opo = getentityproperty(self,"opponent");

 		if ((getentityproperty(opo, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2, 0, 0);

		}

		if ((getentityproperty(opo, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2, 0, 0);

		}

		if(frame == 1){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==21)
    {


                void self = getlocalvar("self");

                if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.6, 0, 0);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 5)){

		changeentityproperty(self, "velocity", 2.3, 0, 6.4);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 5)){

		changeentityproperty(self, "velocity", -2.3, 0, 6.4);

		}

 		if ((getentityproperty(self, "direction")==1)&&(frame == 12)){

		changeentityproperty(self, "velocity", 1.3, 0, -2.5);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 12)){

		changeentityproperty(self, "velocity", -1.3, 0, -2.5);

		 changeentityproperty(self, "aiflag", "jumping", 1);

		 changeentityproperty(self, "takeaction", "common_jump");

		}

		if (frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==27)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3.6, 0, 0);

		}

		if(frame == 10){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==18)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3, 0, 0);

		}

		if(frame == 3){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==54)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

		changeentityproperty(self, "velocity", 3.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

		changeentityproperty(self, "velocity", -3.6, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }

}

####animationscript function main#####
# data/sprites/dyn.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {
        if(frame==15)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/sprites/pigerk.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir8") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 1, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -1, 0, 0);

	}

	        if(frame==77)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/sprites/drum.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==5)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/sprites/spir10.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==5)
    {


    void self = getlocalvar("self");

     	if (frame == 0){

	   setglobalvar("spir10",1);

	}

	        return;
    }
    if(animnum==0)
    {


	void	self = getlocalvar("self");

 	if (frame == 0){

	changeentityproperty(self, "velocity", 0, 0, 0);

	}

 	if (frame == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_ATTACK1"));

	}

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir10") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 0.9, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -0.9, 0, 0);

	}

	        return;
    }

}

####animationscript function main#####
# data/sprites/spir9.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {


	void	self = getlocalvar("self");

 	if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

	changeentityproperty(self, "velocity", 2.8, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

	changeentityproperty(self, "velocity", -2.8, 0, 0);

	}

	        if(frame==25)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir9",1);

    }

	        if(frame==2)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }
    if(animnum==0)
    {


	void	self = getlocalvar("self");

 	if (frame == 0){

	changeentityproperty(self, "velocity", 0, 0, 0);

	}

 	if (frame == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_ATTACK1"));

	}

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir9") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 0.9, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -0.9, 0, 0);

	}

	        return;
    }

}

####animationscript function main#####
# data/chars/en1/en1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==21)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 2)){

		changeentityproperty(self, "velocity", 4.6, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 2)){

		changeentityproperty(self, "velocity", -4.6, 0, 0);

		}

		if(frame == 4){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==22)
    {


  void self = getlocalvar("self");

int i = rand()%11+9;

  if (i == 0|| i == 10|| i == 11 ){

  changeentityproperty(self, "map", 11);

}

  if (i == 1 ){

  changeentityproperty(self, "map", 1);

}

  if (i == 2|| i == 12 ){

  changeentityproperty(self, "map", 2);

}

  if (i == 3|| i == 13 ){

  changeentityproperty(self, "map", 3);

}



  if (i == 4|| i == 14 ){

  changeentityproperty(self, "map", 4);

}

  if (i == 5|| i == 15 ){

  changeentityproperty(self, "map", 5);

}

  if (i == 6|| i == 16 ){

  changeentityproperty(self, "map", 6);

}

  if (i == 7|| i == 17 ){

  changeentityproperty(self, "map", 7);

}



  if (i == 8|| i == 18 ){

  changeentityproperty(self, "map", 8);

}

  if (i == 9|| i == 19 ){

  changeentityproperty(self, "map", 9);

}

  if (i == 10|| i == 20 ){

  changeentityproperty(self, "map", 10);

}

	        return;
    }

}

####animationscript function main#####
# data/chars/en6/en6.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==22)
    {


  void self = getlocalvar("self");

int i = rand()%11+9;

  if (i == 0|| i == 10|| i == 11 ){

  changeentityproperty(self, "map", 11);

}

  if (i == 1 ){

  changeentityproperty(self, "map", 1);

}

  if (i == 2|| i == 12 ){

  changeentityproperty(self, "map", 2);

}

  if (i == 3|| i == 13 ){

  changeentityproperty(self, "map", 3);

}



  if (i == 4|| i == 14 ){

  changeentityproperty(self, "map", 4);

}

  if (i == 5|| i == 15 ){

  changeentityproperty(self, "map", 5);

}

  if (i == 6|| i == 16 ){

  changeentityproperty(self, "map", 6);

}

  if (i == 7|| i == 17 ){

  changeentityproperty(self, "map", 7);

}



  if (i == 8|| i == 18 ){

  changeentityproperty(self, "map", 8);

}

  if (i == 9|| i == 19 ){

  changeentityproperty(self, "map", 9);

}

  if (i == 10|| i == 20 ){

  changeentityproperty(self, "map", 10);

}

	        return;
    }

}

####animationscript function main#####
# data/sprites/spir3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {


	void	self = getlocalvar("self");

 	if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

	changeentityproperty(self, "velocity", 2.8, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

	changeentityproperty(self, "velocity", -2.8, 0, 0);

	}

	        if(frame==19)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir3",1);

    }

	        return;
    }
    if(animnum==0)
    {


	void	self = getlocalvar("self");

 	if (frame == 0){

	changeentityproperty(self, "velocity", 0, 0, 0);

	}

 	if (frame == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_ATTACK1"));

	}

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir3") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 0.8, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -0.8, 0, 0);

	}

	        return;
    }

}

####animationscript function main#####
# data/sprites/car.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==0)
    {


	void	self = getlocalvar("self");

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 3, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -3, 0, 0);

	}

	        if(frame==94)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

 	if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

	changeentityproperty(self, "velocity", 1.2, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

	changeentityproperty(self, "velocity", -1.2, 0, 0);

	}

	if (frame == 6){

	changeentityproperty(self, "velocity", 0, 0, 0);

	}

	        return;
    }

}

####animationscript function main#####
# data/chars/en2/en2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==22)
    {


  void self = getlocalvar("self");

int i = rand()%11+9;

  if (i == 0|| i == 10|| i == 11 ){

  changeentityproperty(self, "map", 11);

}

  if (i == 1 ){

  changeentityproperty(self, "map", 1);

}

  if (i == 2|| i == 12 ){

  changeentityproperty(self, "map", 2);

}

  if (i == 3|| i == 13 ){

  changeentityproperty(self, "map", 3);

}



  if (i == 4|| i == 14 ){

  changeentityproperty(self, "map", 4);

}

  if (i == 5|| i == 15 ){

  changeentityproperty(self, "map", 5);

}

  if (i == 6|| i == 16 ){

  changeentityproperty(self, "map", 6);

}

  if (i == 7|| i == 17 ){

  changeentityproperty(self, "map", 7);

}



  if (i == 8|| i == 18 ){

  changeentityproperty(self, "map", 8);

}

  if (i == 9|| i == 19 ){

  changeentityproperty(self, "map", 9);

}

  if (i == 10|| i == 20 ){

  changeentityproperty(self, "map", 10);

}

	        return;
    }

}

####animationscript function main#####
# data/chars/en3/en3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==22)
    {


  void self = getlocalvar("self");

int i = rand()%11+9;

  if (i == 0|| i == 10|| i == 11 ){

  changeentityproperty(self, "map", 11);

}

  if (i == 1 ){

  changeentityproperty(self, "map", 1);

}

  if (i == 2|| i == 12 ){

  changeentityproperty(self, "map", 2);

}

  if (i == 3|| i == 13 ){

  changeentityproperty(self, "map", 3);

}



  if (i == 4|| i == 14 ){

  changeentityproperty(self, "map", 4);

}

  if (i == 5|| i == 15 ){

  changeentityproperty(self, "map", 5);

}

  if (i == 6|| i == 16 ){

  changeentityproperty(self, "map", 6);

}

  if (i == 7|| i == 17 ){

  changeentityproperty(self, "map", 7);

}



  if (i == 8|| i == 18 ){

  changeentityproperty(self, "map", 8);

}

  if (i == 9|| i == 19 ){

  changeentityproperty(self, "map", 9);

}

  if (i == 10|| i == 20 ){

  changeentityproperty(self, "map", 10);

}

	        return;
    }

}

####animationscript function main#####
# data/chars/en4/en4.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==22)
    {


  void self = getlocalvar("self");

int i = rand()%11+9;

  if (i == 0|| i == 10|| i == 11 ){

  changeentityproperty(self, "map", 11);

}

  if (i == 1 ){

  changeentityproperty(self, "map", 1);

}

  if (i == 2|| i == 12 ){

  changeentityproperty(self, "map", 2);

}

  if (i == 3|| i == 13 ){

  changeentityproperty(self, "map", 3);

}



  if (i == 4|| i == 14 ){

  changeentityproperty(self, "map", 4);

}

  if (i == 5|| i == 15 ){

  changeentityproperty(self, "map", 5);

}

  if (i == 6|| i == 16 ){

  changeentityproperty(self, "map", 6);

}

  if (i == 7|| i == 17 ){

  changeentityproperty(self, "map", 7);

}



  if (i == 8|| i == 18 ){

  changeentityproperty(self, "map", 8);

}

  if (i == 9|| i == 19 ){

  changeentityproperty(self, "map", 9);

}

  if (i == 10|| i == 20 ){

  changeentityproperty(self, "map", 10);

}

	        return;
    }

}

####animationscript function main#####
# data/chars/en5/en5.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==69)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -3.4, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 3.4, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==70)
    {


                void self = getlocalvar("self");

 		if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

		changeentityproperty(self, "velocity", -2.2, 0, 0);

		}

		if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

		changeentityproperty(self, "velocity", 2.2, 0, 0);

		}

		if(frame == 2){

		void self = getlocalvar("self");

		changeentityproperty(self, "velocity", 0, 0, 0);

		}

	        return;
    }
    if(animnum==22)
    {


  void self = getlocalvar("self");

int i = rand()%11+9;

  if (i == 0|| i == 10|| i == 11 ){

  changeentityproperty(self, "map", 11);

}

  if (i == 1 ){

  changeentityproperty(self, "map", 1);

}

  if (i == 2|| i == 12 ){

  changeentityproperty(self, "map", 2);

}

  if (i == 3|| i == 13 ){

  changeentityproperty(self, "map", 3);

}



  if (i == 4|| i == 14 ){

  changeentityproperty(self, "map", 4);

}

  if (i == 5|| i == 15 ){

  changeentityproperty(self, "map", 5);

}

  if (i == 6|| i == 16 ){

  changeentityproperty(self, "map", 6);

}

  if (i == 7|| i == 17 ){

  changeentityproperty(self, "map", 7);

}



  if (i == 8|| i == 18 ){

  changeentityproperty(self, "map", 8);

}

  if (i == 9|| i == 19 ){

  changeentityproperty(self, "map", 9);

}

  if (i == 10|| i == 20 ){

  changeentityproperty(self, "map", 10);

}

	        return;
    }

}

####animationscript function main#####
# data/sprites/spir1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {


	void	self = getlocalvar("self");

 	if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

	changeentityproperty(self, "velocity", 2.8, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

	changeentityproperty(self, "velocity", -2.8, 0, 0);

	}

	        if(frame==19)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir1",1);

    }

	        return;
    }
    if(animnum==0)
    {


	void	self = getlocalvar("self");

 	if (frame == 0){

	changeentityproperty(self, "velocity", 0, 0, 0);

	}

 	if (frame == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_ATTACK1"));

	}

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir1") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 0.8, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -0.8, 0, 0);

	}

	        return;
    }

}

####animationscript function main#####
# data/sprites/spir5.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {


	void	self = getlocalvar("self");

 	if ((getentityproperty(self, "direction")==1)&&(frame == 7)){

	changeentityproperty(self, "velocity", 1, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 7)){

	changeentityproperty(self, "velocity", -1, 0, 0);

	}

	        if(frame==57)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir5",1);

    }

	        return;
    }
    if(animnum==0)
    {


	void	self = getlocalvar("self");

 	if (frame == 0){

	changeentityproperty(self, "velocity", 0, 0, 0);

	}

 	if (frame == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_ATTACK1"));

	}

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir5") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 0.7, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -0.7, 0, 0);

	}

	        return;
    }

}

####animationscript function main#####
# data/sprites/drumb.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==23)
    {
        if(frame==8)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/sprites/spir6.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir6",1);

    }

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir6") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 0.9, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -0.9, 0, 0);

	}

	        if(frame==71)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/sprites/spir8.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir8",1);

    }

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir8") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 1, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", 1, 0, 0);

	}

	        if(frame==84)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/sprites/spir2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==7)
    {


	void	self = getlocalvar("self");

 	if ((getentityproperty(self, "direction")==1)&&(frame == 0)){

	changeentityproperty(self, "velocity", 2.8, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 0)){

	changeentityproperty(self, "velocity", -2.8, 0, 0);

	}

	        if(frame==19)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir2",1);

    }

	        return;
    }
    if(animnum==0)
    {


	void	self = getlocalvar("self");

 	if (frame == 0){

	changeentityproperty(self, "velocity", 0, 0, 0);

	}

 	if (frame == 1){

        changeentityproperty(self, "animation", openborconstant("ANI_ATTACK1"));

	}

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir2") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 0.9, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", -0.9, 0, 0);

	}

	        return;
    }

}

####animationscript function main#####
# data/sprites/spir7.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animnum = getlocalvar("animnum");
    if(animnum==5)
    {


    void self = getlocalvar("self");

    if(frame==0)

    {

   setglobalvar("spir7",1);

    }

	        return;
    }
    if(animnum==22)
    {


	void	self = getlocalvar("self");

if(frame == 0 + getglobalvar("spir7") == 1){

killentity(self);

}

 	if ((getentityproperty(self, "direction")==1)&&(frame == 1)){

	changeentityproperty(self, "velocity", 1, 0, 0);

	}

	if ((getentityproperty(self, "direction")==0)&&(frame == 1)){

	changeentityproperty(self, "velocity", 1, 0, 0);

	}

	        if(frame==84)
        {
            killentity(getlocalvar("self"));

        }
        return;
    }

}
