
#### animationscript function main #####
# data/chars/Hiruko_Boss/Hir_Flash.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==4)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/0misc/water1/water111.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==5)
    {
        if(frame==5)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DD1/DD1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==6)
    {


    void self = getlocalvar("self");

    int PIndex = getentityproperty(self,"playerindex");

    int PScore = getplayerproperty(PIndex, "score");



    if(frame>0 && PScore>4000){

      performattack(self, openborconstant("ANI_follow55"));      

    }

	        return;
    }
    if(animhandle==10)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==11)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==12)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==13)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==14)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

	        return;
    }
    if(animhandle==15)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==29)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==30)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

	        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==31)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

	        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DD1/dd1-2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==36)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==37)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==38)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==39)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==40)
    {


    if(frame==0){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

	        return;
    }
    if(animhandle==41)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==42)
    {
        if(frame==1)
        {
            grabcheckG("ANI_FOLLOW6", "ANI_FOLLOW5", "ANI_FOLLOW5");
        }
        return;
    }
    if(animhandle==47)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW20"), openborconstant("ANI_FOLLOW10"));
        }
        if(frame==0)
        {
            finisher("ANI_PAIN2", "ANI_ATTACK3", 0, 130, 20, 0, 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_ATTACK1", 0, 150, 50, 0, 0);
        }
        return;
    }
    if(animhandle==58)
    {


    void self = getlocalvar("self");

    int PIndex = getentityproperty(self,"playerindex");

    int PScore = getplayerproperty(PIndex, "score");



    if(frame>0 && PScore>13000){

      performattack(self, openborconstant("ANI_Follow30"));      

    }

        return;
    }
    if(animhandle==68)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==70)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

	        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(5, 5, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==71)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

	        if(frame==0)
        {
            stairwalk(2);
        }
        if(frame==0)
        {
            climberD(5, 5, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(2);
        }
        if(frame==1)
        {
            climberD(5, 5, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(2);
        }
        if(frame==2)
        {
            climberD(5, 5, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(2);
        }
        if(frame==3)
        {
            climberD(5, 5, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==73)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 300);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);
        }
        if(frame==2)
        {
            Join(0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DD1/dd1-3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==74)
    {


    void self = getlocalvar("self");

    int PIndex = getentityproperty(self,"playerindex");

    int PScore = getplayerproperty(PIndex, "score");



    if(frame>1 && PScore>1000000){

      performattack(self, openborconstant("ANI_FOLLOW45"));      

    }

        return;
    }
    if(animhandle==75)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

	        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==76)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(5, 3, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(5, 3, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(5, 3, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(5, 3, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==90)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==100)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==105)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==106)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==107)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==108)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-3, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==109)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==113)
    {
        if(frame==0)
        {
            conditionalflip2();
        }
        return;
    }
    if(animhandle==114)
    {
        if(frame==0)
        {
            slamstart4(0, 0, 0);
        }
        if(frame==0)
        {
            position(1, 0, 1, 0, 0);
        }
        if(frame==1)
        {
            position(2, 0, 1, 0, 0);
        }
        if(frame==2)
        {
            anichange("ANI_FOLLOW23");
        }
        return;
    }
    if(animhandle==115)
    {
        if(frame==0)
        {
            forceanim(openborconstant("ANI_follow10"));
        }
        if(frame==0)
        {
            bind(2, 0, 0, 1, 0);
        }
        if(frame==1)
        {
            forceanim(openborconstant("ANI_follow10"));
        }
        if(frame==1)
        {
            bind(2, 0, 0, 1, 0);
        }
        return;
    }
    if(animhandle==116)
    {
        if(frame==1)
        {
            grabcheckG("ANI_FOLLOW10", "ANI_FOLLOW10", "ANI_FOLLOW10");
        }
        return;
    }
    if(animhandle==117)
    {
        if(frame==0)
        {
            slamstart3();
        }
        if(frame==0)
        {
            position(1, 0, 1, 0, 0);
        }
        if(frame==1)
        {
            position(2, 0, 1, 0, 0);
        }
        if(frame==3)
        {
            anichange("ANI_FOLLOW24");
        }
        return;
    }
    if(animhandle==118)
    {
        if(frame==0)
        {
            forceanim(openborconstant("ANI_follow10"));
        }
        if(frame==0)
        {
            bind(10, 0, 0, 1, 0);
        }
        if(frame==1)
        {
            forceanim(openborconstant("ANI_follow10"));
        }
        if(frame==1)
        {
            bind(10, 0, 0, 1, 0);
        }
        return;
    }
    if(animhandle==119)
    {
        if(frame==0)
        {
            slamstart3();
        }
        if(frame==0)
        {
            position(1, 0, 1, 0, 0);
        }
        if(frame==1)
        {
            position(2, 0, 1, 0, 0);
        }
        if(frame==3)
        {
            hurt9(4);
        }
        if(frame==3)
        {
            anichange("ANI_FOLLOW25");
        }
        return;
    }
    if(animhandle==120)
    {
        if(frame==0)
        {
            forceanim(openborconstant("ANI_follow10"));
        }
        if(frame==0)
        {
            bind(9, 0, 0, 1, 0);
        }
        if(frame==1)
        {
            forceanim(openborconstant("ANI_follow10"));
        }
        if(frame==1)
        {
            bind(9, 0, 0, 1, 0);
        }
        return;
    }
    if(animhandle==121)
    {
        if(frame==0)
        {
            slamstart3();
        }
        if(frame==0)
        {
            position(9, 0, 1, 0, 0);
        }
        if(frame==1)
        {
            position(10, 0, 1, 0, 0);
        }
        if(frame==3)
        {
            hurt9(4);
        }
        if(frame==3)
        {
            depost(0);
        }
        return;
    }
    if(animhandle==122)
    {
        if(frame==0)
        {
            bind(0, 0, 0, 0, 0);
        }
        return;
    }
    if(animhandle==123)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW20"), openborconstant("ANI_FOLLOW6"));
        }
        if(frame==0)
        {
            finisher("ANI_PAIN2", "ANI_ATTACK3", 0, 130, 20, 0, 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_ATTACK1", 0, 150, 50, 0, 0);
        }
        return;
    }
    if(animhandle==124)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 300);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0, 0);
        }
        if(frame==2)
        {
            Join(0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDII/Billy_DDII.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==127)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==129)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==130)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==134)
    {
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        return;
    }
    if(animhandle==147)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==148)
    {
        if(frame==0)
        {
            keyint("ANI_FOLLOW1", 0, "F", 0);
        }
        return;
    }
    if(animhandle==149)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        return;
    }
    if(animhandle==150)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==152)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==153)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==154)
    {


    void self = getlocalvar("self");

    int Pain = getlocalvar("Pain" + self);

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(Pain==NULL()){

      setlocalvar("Pain" + self, 1);

      Pain = 1;

    }



    if(frame == 0){

      if(Pain < 1){

        setlocalvar("Pain" + self, Pain+1);

      } else if(Pain>=1){ // Pains reach limit?

        setlocalvar("Pain" + self, 0);

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

      }

    }

        return;
    }
    if(animhandle==155)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0.5);

      changeentityproperty(vSelf, "tosstime", iTime + 120);

    }

        return;
    }
    if(animhandle==156)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==157)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==158)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==159)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==160)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==161)
    {
        if(frame==8)
        {
            shooterW("shot1", 10, 20, 1, 0);
        }
        return;
    }
    if(animhandle==162)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==163)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==169)
    {
        if(frame==3)
        {
            anichange("ANI_rise2");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDII/billy_ddii_1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==172)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==174)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==175)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==179)
    {
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        return;
    }
    if(animhandle==192)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==193)
    {
        if(frame==0)
        {
            keyint("ANI_FOLLOW1", 0, "F", 0);
        }
        return;
    }
    if(animhandle==194)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        return;
    }
    if(animhandle==195)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==197)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==198)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==199)
    {


    void self = getlocalvar("self");

    int Pain = getlocalvar("Pain" + self);

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(Pain==NULL()){

      setlocalvar("Pain" + self, 1);

      Pain = 1;

    }



    if(frame == 0){

      if(Pain < 1){

        setlocalvar("Pain" + self, Pain+1);

      } else if(Pain>=1){ // Pains reach limit?

        setlocalvar("Pain" + self, 0);

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

      }

    }

        return;
    }
    if(animhandle==200)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0.5);

      changeentityproperty(vSelf, "tosstime", iTime + 120);

    }

        return;
    }
    if(animhandle==201)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==202)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==203)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==204)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==205)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==206)
    {
        if(frame==8)
        {
            shooterW("shot1", 10, 20, 1, 0);
        }
        return;
    }
    if(animhandle==207)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==208)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==214)
    {
        if(frame==3)
        {
            anichange("ANI_rise2");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDII/Jimmy_DDII.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==217)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==218)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==219)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==223)
    {
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        return;
    }
    if(animhandle==235)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==236)
    {
        if(frame==0)
        {
            keyint("ANI_FOLLOW1", 0, "F", 0);
        }
        return;
    }
    if(animhandle==237)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        return;
    }
    if(animhandle==238)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==240)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==241)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==242)
    {


    void self = getlocalvar("self");

    int Pain = getlocalvar("Pain" + self);

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(Pain==NULL()){

      setlocalvar("Pain" + self, 1);

      Pain = 1;

    }



    if(frame == 0){

      if(Pain < 1){

        setlocalvar("Pain" + self, Pain+1);

      } else if(Pain>=1){ // Pains reach limit?

        setlocalvar("Pain" + self, 0);

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

      }

    }

        return;
    }
    if(animhandle==243)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0.5);

      changeentityproperty(vSelf, "tosstime", iTime + 120);

    }

        return;
    }
    if(animhandle==244)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==245)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==246)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==247)
    {


    if(frame==1){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 2);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 2;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -2;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+30);

      } else {

        changeentityproperty(self, "position", x+sx, z-2, y+30);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==248)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==249)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==254)
    {
        if(frame==8)
        {
            shooterW("shot1", 10, 20, 1, 0);
        }
        return;
    }
    if(animhandle==255)
    {
        if(frame==3)
        {
            anichange("ANI_rise2");
        }
        return;
    }
    if(animhandle==256)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDII/jimmy_ddii_1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==260)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==261)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==262)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==266)
    {
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_freespecial7", 0, 10, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_rise", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Jumpland", "ANI_freespecial9", 0, 30, 15, 0, 1);
        }
        return;
    }
    if(animhandle==278)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==279)
    {
        if(frame==0)
        {
            keyint("ANI_FOLLOW1", 0, "F", 0);
        }
        return;
    }
    if(animhandle==280)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_freespecial6", 0, 40, 5, 0, 1);
        }
        return;
    }
    if(animhandle==281)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==283)
    {
        if(frame==2)
        {
            flip();
        }
        return;
    }
    if(animhandle==284)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==285)
    {


    void self = getlocalvar("self");

    int Pain = getlocalvar("Pain" + self);

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(Pain==NULL()){

      setlocalvar("Pain" + self, 1);

      Pain = 1;

    }



    if(frame == 0){

      if(Pain < 1){

        setlocalvar("Pain" + self, Pain+1);

      } else if(Pain>=1){ // Pains reach limit?

        setlocalvar("Pain" + self, 0);

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

      }

    }

        return;
    }
    if(animhandle==286)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0.5);

      changeentityproperty(vSelf, "tosstime", iTime + 120);

    }

        return;
    }
    if(animhandle==287)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==288)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==289)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==290)
    {


    if(frame==1){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 2);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 2;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -2;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+30);

      } else {

        changeentityproperty(self, "position", x+sx, z-2, y+30);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==291)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==292)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==297)
    {
        if(frame==8)
        {
            shooterW("shot1", 10, 20, 1, 0);
        }
        return;
    }
    if(animhandle==298)
    {
        if(frame==3)
        {
            anichange("ANI_rise2");
        }
        return;
    }
    if(animhandle==299)
    {
        if(frame==4)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/0misc2/Doors/DD3LV1/doorst1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==304)
    {
        if(frame==14)
        {
            anichange("ANI_Follow1");
        }
        return;
    }
    if(animhandle==305)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDIII/Billy.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==306)
    {


    void self = getlocalvar("self");

    int x = getindexedvar(0); //Respawn по x координат

    int z = getentityproperty(self,"z"); //Персонаж появляется по z координате

    int a = getindexedvar(1); //Respawn координат



    if(x==NULL()){

      x = getentityproperty(self, "x");

    }



    setentityvar(self, 1, NULL());

    if(a!=NULL()){

      if(frame > 0){

        changeentityproperty(self, "position", x, z, a);

      }

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==307)
    {


    void self = getlocalvar("self");

    int x = getindexedvar(0); //Respawn по x координат

    int z = getentityproperty(self,"z"); //Персонаж появляется по z координате

    int a = getindexedvar(1); //Respawn координат



    if(x==NULL()){

      x = getentityproperty(self, "x");

    }



    setentityvar(self, 1, NULL());

    if(a!=NULL()){

      if(frame > 0){

        changeentityproperty(self, "position", x, z, a);

      }

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==308)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");

    int BK = getindexedvar(4);



    changeentityproperty(self, "Subject_to_Platform", 1);

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

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

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



    if(y > b && frame > 0){

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

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

      changeentityproperty(self, "animpos", 0);

    }

        if(frame==0)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        return;
    }
    if(animhandle==310)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==311)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==312)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==4)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==5)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==313)
    {
        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==314)
    {
        if(frame==0)
        {
            flip();
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        return;
    }
    if(animhandle==315)
    {
        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==316)
    {
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==318)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    if(y > b){

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

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

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

      changeentityproperty(self, "animpos", 0);

    }

        if(frame==0)
        {
            keyint("ANI_FOLLOW60", 1, "U", 0, 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW61", 1, "D", 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW60", 2, "U", 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW61", 2, "D", 0, 1);
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW60", 3, "U", 0, 1);
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW61", 3, "D", 0, 1);
        }
        if(frame==3)
        {
            keyint("ANI_FOLLOW60", 4, "U", 0, 1);
        }
        if(frame==3)
        {
            keyint("ANI_FOLLOW61", 4, "D", 0, 1);
        }
        if(frame==4)
        {
            keyint("ANI_FOLLOW60", 5, "U", 0, 1);
        }
        if(frame==4)
        {
            keyint("ANI_FOLLOW61", 5, "D", 0, 1);
        }
        if(frame==5)
        {
            keyint("ANI_FOLLOW60", 6, "U", 0, 1);
        }
        if(frame==5)
        {
            keyint("ANI_FOLLOW61", 6, "D", 0, 1);
        }
        return;
    }
    if(animhandle==319)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    if(y > b){

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

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

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

      changeentityproperty(self, "animpos", 0);

    }

        return;
    }
    if(animhandle==320)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    if(y > b){

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

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

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

      changeentityproperty(self, "animpos", 0);

    }

        return;
    }
    if(animhandle==323)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==324)
    {
        if(frame==3)
        {
            anichange("ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==326)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow1", 0, 20, 25, 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        return;
    }
    if(animhandle==333)
    {
        if(frame==0)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        return;
    }
    if(animhandle==334)
    {
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        return;
    }
    if(animhandle==335)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL7");
        }
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        return;
    }
    if(animhandle==338)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

        if(frame==0)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==339)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



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

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

	void	iStage = openborvariant("current_branch");

	if(frame == 1){

	jumptobranch("data/levels/Mode_b/DDIIIms1.txt"+iStage, 1);

	}

        if(frame==0)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==340)
    {
        if(frame==3)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==348)
    {


    void vSelf = getlocalvar("self");	

    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

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

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==349)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        return;
    }
    if(animhandle==350)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        return;
    }
    if(animhandle==351)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

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

      changeentityproperty(vSelf, "tosstime", iTime + 120);

    }

        if(frame==0)
        {
            slamstart4();
        }
        if(frame==0)
        {
            depost2(20, 1, 0, 1);
        }
        if(frame==0)
        {
            position(0, 5, -30, 2, 0);
        }
        if(frame==1)
        {
            position(0, 5, -30, 2, 0);
        }
        if(frame==2)
        {
            position(0, 5, -30, 5, 0);
        }
        if(frame==3)
        {
            position(1, 0, 25, 0, 1);
        }
        if(frame==4)
        {
            position(2, -10, 25, 0, 1);
        }
        if(frame==4)
        {
            position(3, -10, 25, 0, 1);
        }
        if(frame==5)
        {
            position(4, 0, 25, 0, 1);
        }
        if(frame==5)
        {
            depost(0);
        }
        if(frame==5)
        {
            throw(30, 2, 2, 2, 0, 1);
        }
        if(frame==5)
        {
            clearGrab();
        }
        return;
    }
    if(animhandle==352)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==0)
        {
            flip(1);
        }
        if(frame==8)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==353)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==4)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==354)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        return;
    }
    if(animhandle==355)
    {
        if(frame==73)
        {
            flip();
        }
        return;
    }
    if(animhandle==356)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==357)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW19", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW24", 0, "D", 0);
        }
        return;
    }
    if(animhandle==358)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow19");
        }
        return;
    }
    if(animhandle==359)
    {
        if(frame==0)
        {
            dasher(0, 0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow13");
        }
        return;
    }
    if(animhandle==360)
    {
        if(frame==0)
        {
            dasher(0, -0, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow24");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        return;
    }
    if(animhandle==361)
    {
        if(frame==0)
        {
            dasher(0, -0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            anichange("ANI_Follow14");
        }
        return;
    }
    if(animhandle==362)
    {


    if(frame==0){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==363)
    {


    if(frame==0){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

      performattack(self, openborconstant("ANI_FOLLOW18"));

    }

        return;
    }
    if(animhandle==365)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 220);

    }

        if(frame==12)
        {
            anichange("ANI_Follow22");
        }
        return;
    }
    if(animhandle==366)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 220);

    }

        if(frame==0)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==9)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==10)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==11)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==369)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==370)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==371)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==372)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==373)
    {
        if(frame==5)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==374)
    {
        if(frame==5)
        {
            anichange("ANI_Rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDIII/Billy_.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==375)
    {


    void self = getlocalvar("self");

    int x = getindexedvar(0); //Respawn по x координат

    int z = getentityproperty(self,"z"); //Персонаж появляется по z координате

    int a = getindexedvar(1); //Respawn координат



    if(x==NULL()){

      x = getentityproperty(self, "x");

    }



    setentityvar(self, 1, NULL());

    if(a!=NULL()){

      if(frame > 0){

        changeentityproperty(self, "position", x, z, a);

      }

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==376)
    {


    void self = getlocalvar("self");

    int x = getindexedvar(0); //Respawn по x координат

    int z = getentityproperty(self,"z"); //Персонаж появляется по z координате

    int a = getindexedvar(1); //Respawn координат



    if(x==NULL()){

      x = getentityproperty(self, "x");

    }



    setentityvar(self, 1, NULL());

    if(a!=NULL()){

      if(frame > 0){

        changeentityproperty(self, "position", x, z, a);

      }

    }

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==377)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");

    int BK = getindexedvar(4);



    changeentityproperty(self, "Subject_to_Platform", 1);

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

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

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



    if(y > b && frame > 0){

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

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

      changeentityproperty(self, "animpos", 0);

    }

        if(frame==0)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        return;
    }
    if(animhandle==379)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==380)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            climber(15, 15, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==381)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==4)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL14", 0, "B", 0);
        }
        if(frame==5)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==382)
    {
        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==383)
    {
        if(frame==0)
        {
            flip();
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 40, 5, 0, 1);
        }
        return;
    }
    if(animhandle==384)
    {
        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==385)
    {
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==387)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    if(y > b){

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

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

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

      changeentityproperty(self, "animpos", 0);

    }

        if(frame==0)
        {
            keyint("ANI_FOLLOW60", 1, "U", 0, 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW61", 1, "D", 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW60", 2, "U", 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW61", 2, "D", 0, 1);
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW60", 3, "U", 0, 1);
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW61", 3, "D", 0, 1);
        }
        if(frame==3)
        {
            keyint("ANI_FOLLOW60", 4, "U", 0, 1);
        }
        if(frame==3)
        {
            keyint("ANI_FOLLOW61", 4, "D", 0, 1);
        }
        if(frame==4)
        {
            keyint("ANI_FOLLOW60", 5, "U", 0, 1);
        }
        if(frame==4)
        {
            keyint("ANI_FOLLOW61", 5, "D", 0, 1);
        }
        if(frame==5)
        {
            keyint("ANI_FOLLOW60", 6, "U", 0, 1);
        }
        if(frame==5)
        {
            keyint("ANI_FOLLOW61", 6, "D", 0, 1);
        }
        return;
    }
    if(animhandle==388)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    if(y > b){

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

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

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

      changeentityproperty(self, "animpos", 0);

    }

        return;
    }
    if(animhandle==389)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    if(y > b){

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

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

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

      changeentityproperty(self, "animpos", 0);

    }

        return;
    }
    if(animhandle==392)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==393)
    {
        if(frame==3)
        {
            anichange("ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==395)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow1", 0, 20, 25, 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        return;
    }
    if(animhandle==402)
    {
        if(frame==0)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        return;
    }
    if(animhandle==403)
    {
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        return;
    }
    if(animhandle==404)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL7");
        }
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        return;
    }
    if(animhandle==407)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

        if(frame==0)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==408)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



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

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

	void	iStage = openborvariant("current_branch");

	if(frame == 1){

	jumptobranch("data/levels/Mode_b/DDIIIms1.txt"+iStage, 1);

	}

        if(frame==0)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==409)
    {
        if(frame==3)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==417)
    {


    void vSelf = getlocalvar("self");	

    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

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

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==418)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        return;
    }
    if(animhandle==419)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        return;
    }
    if(animhandle==420)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

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

      changeentityproperty(vSelf, "tosstime", iTime + 120);

    }

        if(frame==0)
        {
            slamstart4();
        }
        if(frame==0)
        {
            depost2(20, 1, 0, 1);
        }
        if(frame==0)
        {
            position(0, 5, -30, 2, 0);
        }
        if(frame==1)
        {
            position(0, 5, -30, 2, 0);
        }
        if(frame==2)
        {
            position(0, 5, -30, 5, 0);
        }
        if(frame==3)
        {
            position(1, 0, 25, 0, 1);
        }
        if(frame==4)
        {
            position(2, -10, 25, 0, 1);
        }
        if(frame==4)
        {
            position(3, -10, 25, 0, 1);
        }
        if(frame==5)
        {
            position(4, 0, 25, 0, 1);
        }
        if(frame==5)
        {
            depost(0);
        }
        if(frame==5)
        {
            throw(30, 2, 2, 2, 0, 1);
        }
        if(frame==5)
        {
            clearGrab();
        }
        return;
    }
    if(animhandle==421)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==0)
        {
            flip(1);
        }
        if(frame==8)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==422)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==4)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==423)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        return;
    }
    if(animhandle==425)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==426)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW19", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW24", 0, "D", 0);
        }
        return;
    }
    if(animhandle==427)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow19");
        }
        return;
    }
    if(animhandle==428)
    {
        if(frame==0)
        {
            dasher(0, 0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow13");
        }
        return;
    }
    if(animhandle==429)
    {
        if(frame==0)
        {
            dasher(0, -0, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow24");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        return;
    }
    if(animhandle==430)
    {
        if(frame==0)
        {
            dasher(0, -0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            anichange("ANI_Follow14");
        }
        return;
    }
    if(animhandle==431)
    {


    if(frame==0){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==432)
    {


    if(frame==0){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

      performattack(self, openborconstant("ANI_FOLLOW18"));

    }

        return;
    }
    if(animhandle==434)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 220);

    }

        if(frame==12)
        {
            anichange("ANI_Follow22");
        }
        return;
    }
    if(animhandle==435)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 220);

    }

        if(frame==0)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==9)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==10)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==11)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==438)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==439)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==440)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==441)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==442)
    {
        if(frame==5)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==443)
    {
        if(frame==5)
        {
            anichange("ANI_Rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDIII/Jimmy.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==445)
    {
        if(frame==0)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Freespecial7", "ANI_Follow23", 0, 40, 5, 0, 0);
        }
        return;
    }
    if(animhandle==447)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==448)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==449)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL16", 0, "B", 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL16", 0, "B", 0);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL16", 0, "B", 0);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL16", 0, "B", 0);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==4)
        {
            keyint("ANI_FREESPECIAL16", 0, "B", 0);
        }
        if(frame==4)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==5)
        {
            keyint("ANI_FREESPECIAL16", 0, "B", 0);
        }
        if(frame==5)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==450)
    {
        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==451)
    {
        if(frame==0)
        {
            flip();
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 10, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 10, 5, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 10, 5, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow5", -40, 10, 5, 0, 1);
        }
        return;
    }
    if(animhandle==452)
    {
        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==453)
    {
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==456)
    {


		if(frame==0){

    void self = getlocalvar("self");

    changeentityproperty(self, "mp", 100); //Max MP bar

    changeentityproperty(self, "health", 100); //Max HP bar

		}

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==457)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==460)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==461)
    {
        if(frame==3)
        {
            anichange("ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==463)
    {
        if(frame==0)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow1", 0, 20, 25, 0, 1);
        }
        if(frame==1)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==2)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        if(frame==3)
        {
            keyint("ANI_FREESPECIAL15", 0, "B", 0);
        }
        return;
    }
    if(animhandle==470)
    {
        if(frame==0)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Follow20", "ANI_Follow21", -30, 30, 5, 0, 0);
        }
        return;
    }
    if(animhandle==471)
    {
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        return;
    }
    if(animhandle==472)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL7");
        }
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow24", "ANI_Freespecial7", 10, 20, 5, 0, 1);
        }
        return;
    }
    if(animhandle==475)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

        if(frame==0)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==476)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



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

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

	void	iStage = openborvariant("current_branch");

	if(frame == 1){

	jumptobranch("data/levels/Mode_b/DDIIIms1.txt"+iStage, 1);

	}

        if(frame==0)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Jump", "ANI_Follow20", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_rise", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==477)
    {
        if(frame==3)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==485)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==486)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Jump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow5"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_follow4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial1"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial2"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial3"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial5"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial10"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial11"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial13"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_freespecial14"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_RunJumpattack"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow20"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow21"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow22"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow23"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow24"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow25"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_Freespecial13"), openborconstant("ANI_Follow26"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        return;
    }
    if(animhandle==487)
    {
        if(frame==0)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==2)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_FOLLOW4"), openborconstant("ANI_follow6"));
        }
        return;
    }
    if(animhandle==488)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 120);

    }

        if(frame==0)
        {
            slamstart4();
        }
        if(frame==0)
        {
            depost2(20, 1, 0, 1);
        }
        if(frame==0)
        {
            position(0, 5, -30, 2, 0);
        }
        if(frame==1)
        {
            position(0, 5, -30, 2, 0);
        }
        if(frame==2)
        {
            position(0, 5, -30, 5, 0);
        }
        if(frame==3)
        {
            position(1, 0, 25, 0, 1);
        }
        if(frame==4)
        {
            position(2, -10, 25, 0, 1);
        }
        if(frame==4)
        {
            position(3, -10, 25, 0, 1);
        }
        if(frame==5)
        {
            position(4, 0, 25, 0, 1);
        }
        if(frame==5)
        {
            depost(0);
        }
        if(frame==5)
        {
            throw(30, 2, 2, 2, 0, 1);
        }
        if(frame==5)
        {
            clearGrab();
        }
        return;
    }
    if(animhandle==489)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==0)
        {
            flip(1);
        }
        if(frame==8)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==490)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==4)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==491)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        return;
    }
    if(animhandle==493)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==494)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW19", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW24", 0, "D", 0);
        }
        return;
    }
    if(animhandle==495)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow19");
        }
        return;
    }
    if(animhandle==496)
    {
        if(frame==0)
        {
            dasher(0, 0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow13");
        }
        return;
    }
    if(animhandle==497)
    {
        if(frame==0)
        {
            dasher(0, -0, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow24");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        return;
    }
    if(animhandle==498)
    {
        if(frame==0)
        {
            dasher(0, -0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW18", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            anichange("ANI_Follow14");
        }
        return;
    }
    if(animhandle==499)
    {


    if(frame==0){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==500)
    {


    if(frame==0){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

      performattack(self, openborconstant("ANI_FOLLOW18"));

    }

        return;
    }
    if(animhandle==502)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 220);

    }

        if(frame==12)
        {
            anichange("ANI_Follow22");
        }
        return;
    }
    if(animhandle==503)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 220);

    }

        if(frame==0)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==9)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==10)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        if(frame==11)
        {
            finisher2("ANI_Follow22", "ANI_Follow22", -10, 20, 5, 0, 0);
        }
        return;
    }
    if(animhandle==506)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==507)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==508)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==509)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDIII/Jimmy_.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==512)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==513)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==514)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==4)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==515)
    {
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow3", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==518)
    {


		if(frame==0){

    void self = getlocalvar("self");

    changeentityproperty(self, "mp", 100); //Max MP bar

    changeentityproperty(self, "health", 100); //Max HP bar

		}

        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==519)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==522)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==523)
    {
        if(frame==3)
        {
            anichange("ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==525)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow1", 0, 20, 25, 0, 1);
        }
        return;
    }
    if(animhandle==534)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==537)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

        return;
    }
    if(animhandle==538)
    {
        if(frame==3)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==546)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==547)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==8)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==548)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");

    int eTime = openborvariant("elapsed_time");



    if(frame==18){

      changeentityproperty(self, "invincible", 1);

      changeentityproperty(self, "invinctime", eTime + 200);

      changeentityproperty(self, "blink", 1);

    }

        if(frame==0)
        {
            Join(1);
        }
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "velocity", 0, 0.1, 0);
        }
        if(frame==4)
        {
            Join(0);
        }
        return;
    }
    if(animhandle==550)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==551)
    {
        if(frame==0)
        {
            dasher(0, 0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        return;
    }
    if(animhandle==552)
    {
        if(frame==0)
        {
            dasher(0, -0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        return;
    }
    if(animhandle==553)
    {


    if(frame==0){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==554)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/Chin_DDIII/Chin_DDIII.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==556)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==557)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==558)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==559)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW18", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW19", 0, "D", 0);
        }
        return;
    }
    if(animhandle==560)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW16", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow18");
        }
        return;
    }
    if(animhandle==561)
    {
        if(frame==0)
        {
            dasher(0, 0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW16", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow13");
        }
        return;
    }
    if(animhandle==562)
    {
        if(frame==0)
        {
            dasher(0, -0, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW16", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            anichange("ANI_Follow19");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        return;
    }
    if(animhandle==563)
    {
        if(frame==0)
        {
            dasher(0, -0.4, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW16", 0, "D", 1);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            dasher(0, 0, 0);
        }
        if(frame==1)
        {
            anichange("ANI_Follow14");
        }
        return;
    }
    if(animhandle==564)
    {


    if(frame==1){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==565)
    {


    if(frame==0){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW16"));

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==570)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==571)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==3)
        {
            anichange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==580)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==585)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==586)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==589)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==590)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==591)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 1); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 50);

    }

        return;
    }
    if(animhandle==592)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



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

      changeentityproperty(vSelf, "tosstime", iTime + 50);

    }

	void	iStage = openborvariant("current_branch");

	if(frame == 1){

	jumptobranch("data/levels/Mode_b/DDIIIms1.txt"+iStage, 1);

	}

        return;
    }
    if(animhandle==593)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 20);

    }

        return;
    }
    if(animhandle==594)
    {
        if(frame==5)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==596)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==597)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==598)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==599)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/DDIII_Ranzou/Ranzou1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==600)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==601)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==603)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==604)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==605)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==606)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==607)
    {
        if(frame==0)
        {
            dasher(0, 0.2, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW16", 0, "U", 1);
        }
        return;
    }
    if(animhandle==608)
    {
        if(frame==0)
        {
            dasher(0, -0.2, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW16", 0, "D", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        return;
    }
    if(animhandle==609)
    {


    if(frame==1){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==610)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==611)
    {


    void self = getlocalvar("self");

    int MP = getentityproperty(self,"mp");



    if(frame>1 && "mp">5){

      performattack(self, openborconstant("ANI_FOLLOW2"));      

    }

        return;
    }
    if(animhandle==616)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==617)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==3)
        {
            anichange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==627)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        if(frame==1)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        return;
    }
    if(animhandle==629)
    {


	void	iStage = openborvariant("current_branch");

	if(frame == 1){

	jumptobranch("data/levels/Mode_b/DDIIIms1.txt"+iStage, 1);

	}

        return;
    }
    if(animhandle==630)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        return;
    }
    if(animhandle==631)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        if(frame==1)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        return;
    }
    if(animhandle==632)
    {


    void vSelf = getlocalvar("self");	

    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==642)
    {
        if(frame==24)
        {
            flip();
        }
        return;
    }
    if(animhandle==644)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==645)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==646)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==647)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/DDIII_Ranzou/Ranzou2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==648)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==649)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        if(frame==1)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==651)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==652)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(8, 2, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==653)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==654)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==655)
    {
        if(frame==0)
        {
            dasher(0, 0.2, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW16", 0, "U", 1);
        }
        return;
    }
    if(animhandle==656)
    {
        if(frame==0)
        {
            dasher(0, -0.2, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW16", 0, "D", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        return;
    }
    if(animhandle==657)
    {


    if(frame==1){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==658)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==663)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==664)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==3)
        {
            anichange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==674)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        if(frame==1)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        return;
    }
    if(animhandle==677)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        if(frame==1)
        {
            antiwall4(20, "ANI_FREESPECIAL6");
        }
        return;
    }
    if(animhandle==678)
    {


    void vSelf = getlocalvar("self");	

    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==687)
    {
        if(frame==24)
        {
            flip();
        }
        return;
    }
    if(animhandle==689)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==690)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==691)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==692)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDII/knife/Billy_DDII_Knife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==693)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==694)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==695)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==696)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==697)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==698)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==699)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==700)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==704)
    {
        if(frame==1)
        {
            shooter2("knifeDD21", 30, 30, 0, 1.4, 0, 0);
        }
        return;
    }
    if(animhandle==708)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/jimmy_ddii/knife/Jimmy_DDII_Knife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==712)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==713)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==714)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }
    if(animhandle==718)
    {
        if(frame==1)
        {
            shooter2("knifeDD21", 30, 30, 0, 1.4, 0, 0);
        }
        return;
    }
    if(animhandle==722)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDII/Fial/Fial1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==726)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==727)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==728)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==729)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==730)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==731)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==732)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDII/Fial/Fial2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==738)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==739)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==740)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==741)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==742)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==743)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==744)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDIII/Nun/nun1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==765)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==766)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDIII/Nun/nun2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==768)
    {


    void self = getlocalvar("self");

    int PIndex = getentityproperty(self,"playerindex");

    int Mmp = getentityproperty(self,"mp");

    if(frame>0 && Mmp>20){

      performattack(self, openborconstant("ANI_Freespecial4"));      

    }

        return;
    }
    if(animhandle==782)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==783)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Weapons_DDII/pipeDD2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==788)
    {
        if(frame==0)
        {
            move(25, 0, 40);
        }
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==1)
        {
            basechange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==791)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Weapons_DDII/pipeDD21.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==792)
    {
        if(frame==0)
        {
            antiwall4(3, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==793)
    {


    void self = getlocalvar("self");



    if(frame==1){

      killentity(self);

    }

        return;
    }
    if(animhandle==794)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==0)
        {
            knife(20, 20, 0, 100, "ANI_FOLLOW2");
        }
        if(frame==9)
        {
            shooter2("pipeDD2", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==795)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==9)
        {
            shooter2("pipeDD2", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==796)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==798)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDII/pipe/pipe1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==799)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==800)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==801)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==802)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==803)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==804)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==805)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==810)
    {
        if(frame==1)
        {
            shooter2("pipeDD21", 20, 15, 0, 1.4, 0, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDII/pipe/pipe2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==811)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==812)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==813)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==814)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==815)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==816)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==817)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==822)
    {
        if(frame==1)
        {
            shooter2("pipeDD21", 20, 15, 0, 1.4, 0, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDII/dynamite/Billy_Dynam.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==823)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==824)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==825)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==826)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==827)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==828)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==829)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==833)
    {
        if(frame==1)
        {
            shooter2("dynam", 15, 35, 0, 1.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDII/dynamite/Jimmy_Dynam.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==834)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 10){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(15, 15, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==835)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(15, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==836)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==837)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==838)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==839)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+5);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+6);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==840)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==844)
    {
        if(frame==1)
        {
            shooter2("dynam", 15, 35, 0, 1.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/roper/weapons/dynam2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==845)
    {
        if(frame==12)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/roper/weapons/dynam.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==847)
    {
        if(frame==0)
        {
            degravity(-0.10);
        }
        if(frame==5)
        {
            degravity(-0.20);
        }
        return;
    }
    if(animhandle==848)
    {
        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==7)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_IDLE"));
        }
        return;
    }
    if(animhandle==849)
    {
        if(frame==0)
        {
            move(25, 0, 40);
        }
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==0)
        {
            degravity(0.30);
        }
        if(frame==1)
        {
            antiwall6(10, "ANI_FOLLOW2");
        }
        if(frame==1)
        {
            antiwall6(0, "ANI_FOLLOW2");
        }
        if(frame==2)
        {
            antiwall6(10, "ANI_FOLLOW2");
        }
        if(frame==2)
        {
            antiwall6(0, "ANI_FOLLOW2");
        }
        if(frame==3)
        {
            antiwall6(10, "ANI_FOLLOW2");
        }
        if(frame==3)
        {
            antiwall6(0, "ANI_FOLLOW2");
        }
        if(frame==4)
        {
            antiwall6(10, "ANI_FOLLOW2");
        }
        if(frame==4)
        {
            antiwall6(0, "ANI_FOLLOW2");
        }
        if(frame==5)
        {
            antiwall6(10, "ANI_FOLLOW2");
        }
        if(frame==5)
        {
            antiwall6(0, "ANI_FOLLOW2");
        }
        if(frame==6)
        {
            antiwall6(10, "ANI_FOLLOW2");
        }
        if(frame==6)
        {
            antiwall6(0, "ANI_FOLLOW2");
        }
        if(frame==7)
        {
            antiwall4(10, -10);
        }
        if(frame==7)
        {
            antiwall4(0, -10);
        }
        if(frame==8)
        {
            antiwall4(10, -10);
        }
        if(frame==8)
        {
            antiwall4(0, -10);
        }
        if(frame==9)
        {
            antiwall4(10, -10);
        }
        if(frame==9)
        {
            antiwall4(0, -10);
        }
        if(frame==10)
        {
            antiwall4(10, -10);
        }
        if(frame==10)
        {
            antiwall4(0, -10);
        }
        if(frame==11)
        {
            antiwall4(10, -10);
        }
        if(frame==11)
        {
            antiwall4(0, -10);
        }
        if(frame==12)
        {
            antiwall4(10, -10);
        }
        if(frame==12)
        {
            antiwall4(0, -10);
        }
        if(frame==13)
        {
            antiwall4(10, -10);
        }
        if(frame==13)
        {
            antiwall4(0, -10);
        }
        if(frame==14)
        {
            antiwall4(10, -10);
        }
        if(frame==14)
        {
            antiwall4(0, -10);
        }
        if(frame==15)
        {
            antiwall4(10, -10);
        }
        if(frame==15)
        {
            antiwall4(0, -10);
        }
        if(frame==16)
        {
            antiwall4(10, -10);
        }
        if(frame==16)
        {
            antiwall4(0, -10);
        }
        return;
    }
    if(animhandle==850)
    {
        if(frame==13)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_IDLE"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/1dragon/bdynam.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==852)
    {
        if(frame==1)
        {
            anichange("ANI_idle");
        }
        return;
    }
    if(animhandle==856)
    {
        if(frame==1)
        {
            antiwall3(35, -16, 0);
        }
        if(frame==2)
        {
            shooter2("dynam", 15, 45, 0, 2.5, 1, 0);
        }
        return;
    }
    if(animhandle==864)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/1dragon/bdynam2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==869)
    {
        if(frame==1)
        {
            anichange("ANI_idle");
        }
        return;
    }
    if(animhandle==873)
    {
        if(frame==1)
        {
            antiwall3(35, -16, 0);
        }
        if(frame==2)
        {
            shooter2("dynam", 15, 45, 0, 2.5, 1, 0);
        }
        return;
    }
    if(animhandle==881)
    {
        if(frame==0)
        {
            setglobalvar("last_player_spawned", getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDIII/knife/Billy_Army_Knife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==888)
    {
        if(frame==2)
        {
            shooter2("Army_Knife11", 20, 27, 0, 1.4, 0, 0);
        }
        return;
    }
    if(animhandle==893)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL3");
        }
        return;
    }
    if(animhandle==899)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDIII/knife/Jimmy_Army_Knife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==903)
    {
        if(frame==2)
        {
            shooter2("Army_Knife11", 20, 27, 0, 1.4, 0, 0);
        }
        return;
    }
    if(animhandle==908)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL3");
        }
        return;
    }
    if(animhandle==914)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDIII/Bottle/Billy_Bottle.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==923)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL3");
        }
        return;
    }
    if(animhandle==929)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDIII/Bottle/Jimmy_Bottle.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==938)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL3");
        }
        return;
    }
    if(animhandle==944)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Billy_DDIII/sai/Billy_SAI.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==953)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL3");
        }
        return;
    }
    if(animhandle==959)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Jimmy_DDIII/sai/Jimmy_SAI.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==968)
    {
        if(frame==0)
        {
            antiwall4(5, "ANI_FREESPECIAL3");
        }
        return;
    }
    if(animhandle==974)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Chin_DDIII/Chin_DDIII_Claw.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==975)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN3", "ANI_FOLLOW8", 0, 20, 10, 2, 1);
        }
        return;
    }
    if(animhandle==976)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        if(frame==0)
        {
            stairwalk(3);
        }
        if(frame==0)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(3);
        }
        if(frame==1)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            stairwalk(3);
        }
        if(frame==2)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(3);
        }
        if(frame==3)
        {
            climber(8, 2, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==977)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==978)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==979)
    {
        if(frame==0)
        {
            dasher(0, 0.2, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW16", 0, "U", 1);
        }
        return;
    }
    if(animhandle==980)
    {
        if(frame==0)
        {
            dasher(0, -0.2, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW16", 0, "D", 1);
        }
        if(frame==1)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        return;
    }
    if(animhandle==981)
    {


    if(frame==1){

      void self = getlocalvar("self");

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

//      int LType = getglobalvar(iPIndex+"ClimbT");

      int LType = getentityvar(self, 6);

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+10);

      } else {

        changeentityproperty(self, "position", x+sx, z-2.5, y+50);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==982)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }
    if(animhandle==989)
    {
        if(frame==0)
        {
            finisher("ANI_pain", "ANI_Attack2", 0, 45, 10, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_pain", "ANI_Attack2", 0, 45, 10, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_pain", "ANI_Attack2", 0, 45, 10, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_pain", "ANI_Attack2", 0, 45, 10, 0, 1);
        }
        if(frame==4)
        {
            finisher("ANI_pain", "ANI_Attack2", 0, 45, 10, 0, 1);
        }
        return;
    }
    if(animhandle==996)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==997)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_JumpLand");
        }
        return;
    }
    if(animhandle==998)
    {


    void vSelf = getlocalvar("self");	



    if(frame==1){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 130);

    }

        if(frame==2)
        {
            dasher(1, 0, 0);
        }
        if(frame==13)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==13)
        {
            anichange("ANI_Jumpland");
        }
        return;
    }
    if(animhandle==999)
    {


    void vSelf = getlocalvar("self");	



    if(frame==2){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

        if(frame==0)
        {
            dasher(0, 2, 0, 0);
        }
        if(frame==1)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==2)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==3)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==4)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==5)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==6)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==7)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==8)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==9)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==10)
        {
            anichange("ANI_Jumpland");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Chin_DDIII/Chin_DDIII_Claw1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1003)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        return;
    }
    if(animhandle==1007)
    {
        if(frame==0)
        {
            finisher2("ANI_freespecial4", "ANI_rise", -20, 30, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_freespecial4", "ANI_rise", -20, 30, 3, 0, 0);
        }
        return;
    }
    if(animhandle==1012)
    {
        if(frame==0)
        {
            finisher("ANI_pain", "ANI_Follow2", 0, 45, 10, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_pain", "ANI_Follow2", 0, 45, 10, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_pain", "ANI_Follow2", 0, 45, 10, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_pain", "ANI_Follow2", 0, 45, 10, 0, 1);
        }
        if(frame==4)
        {
            finisher("ANI_pain", "ANI_Follow2", 0, 45, 10, 0, 1);
        }
        return;
    }
    if(animhandle==1015)
    {
        if(frame==1)
        {
            finisher2("ANI_walk", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_pain", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_run", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_attack", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Freespecial1", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Jump", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Forwardjump", "ANI_follow3", -100, 300, 3, 0, 1);
        }
        return;
    }
    if(animhandle==1016)
    {
        if(frame==1)
        {
            finisher("ANI_walk", "ANI_follow6", 0, 65, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_UP", "ANI_follow6", 0, 65, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_pain", "ANI_follow6", 0, 65, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_Idle", "ANI_follow6", 0, 65, 3, 0, 1);
        }
        return;
    }
    if(animhandle==1019)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==1020)
    {


    void vSelf = getlocalvar("self");	



    if(frame==1){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 130);

    }

        if(frame==2)
        {
            dasher(1, 0, 0);
        }
        if(frame==13)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==13)
        {
            anichange("ANI_Jumpland");
        }
        return;
    }
    if(animhandle==1021)
    {


    void vSelf = getlocalvar("self");	



    if(frame==2){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 180);

    }

        if(frame==0)
        {
            dasher(0, 2, 0, 0);
        }
        if(frame==1)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==2)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==3)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==4)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==5)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==6)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==7)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==8)
        {
            dasher(0, 1, 0, 0);
        }
        if(frame==9)
        {
            dasher(0, 0, 0, 0);
        }
        if(frame==10)
        {
            anichange("ANI_Jumpland");
        }
        return;
    }
    if(animhandle==1024)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1025)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1026)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/weapons_ddiii/Army_Knife11.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1027)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            anichange("ANI_Freespecial3");
        }
        return;
    }
    if(animhandle==1028)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==1)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==1)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==1029)
    {


    void self = getlocalvar("self");



    if(frame==1){

      killentity(self);

    }

        return;
    }
    if(animhandle==1030)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==0)
        {
            knife(20, 20, 0, 100, "ANI_FOLLOW2");
        }
        if(frame==9)
        {
            shooter2("Army_Knife1", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1031)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==9)
        {
            shooter2("Army_Knife1", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1032)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1034)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/weapons_ddiii/Army_Knife1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1037)
    {
        if(frame==0)
        {
            move(25, 0, 40);
        }
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==1)
        {
            basechange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1040)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Chin_DDIII/Chin_DDIII_Knife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1049)
    {
        if(frame==2)
        {
            shooter2("Army_Knife11", 20, 20, 0, 1.4, 0, 0);
        }
        return;
    }
    if(animhandle==1050)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==1057)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==1058)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_JumpLand");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Chin_DDIII/Chin_DDIII_SAI.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1068)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==1075)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==1076)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_JumpLand");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Chin_DDIII/Chin_DDIII_Bottle.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1086)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==1093)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==1094)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_JumpLand");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DDII_linda/DDII_linda2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1095)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            target(20, 10, 300, 10, 1, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Freespecial3", "ANI_rise", 0, 40, 10, 0, 1);
        }
        return;
    }
    if(animhandle==1096)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==0)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==1)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==1)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==2)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==2)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==3)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==3)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==4)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==4)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==5)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==5)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==6)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==6)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==7)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==7)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==8)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==8)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==9)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==9)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==10)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==10)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==11)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==11)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==12)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==12)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==13)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==13)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==14)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==14)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==15)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==15)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        return;
    }
    if(animhandle==1097)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==1)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==2)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==3)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==4)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==5)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==6)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==7)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==8)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==9)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==10)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==11)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==12)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==13)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==14)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==15)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1098)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1099)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1100)
    {


    void self = getlocalvar("self");



    if(frame==2){

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int LType = getentityvar(self, 2);

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1101)
    {


    void self = getlocalvar("self");



    if(frame==2){

      performattack(self, openborconstant("ANI_FOLLOW2"));

    }

        return;
    }
    if(animhandle==1111)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/weapons_ddiii/SAI.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1112)
    {
        if(frame==0)
        {
            move(25, 0, 40);
        }
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==1)
        {
            basechange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1113)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1115)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Martial_Art/Martial_Art_SAI.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1117)
    {
        if(frame==0)
        {
            finisher("ANI_Follow40", "ANI_Follow40", 0, 50, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Freespecial4", "ANI_rise", -30, 30, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher("ANI_Follow40", "ANI_Follow40", 0, 50, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Freespecial4", "ANI_rise", -30, 30, 3, 0, 0);
        }
        return;
    }
    if(animhandle==1118)
    {
        if(frame==0)
        {
            finisher("ANI_Follow40", "ANI_Follow40", 0, 50, 3, 0, 1);
        }
        if(frame==0)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            finisher("ANI_Follow40", "ANI_Follow40", 0, 50, 3, 0, 1);
        }
        if(frame==1)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Follow40", "ANI_Follow40", 0, 50, 3, 0, 1);
        }
        if(frame==2)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Follow40", "ANI_Follow40", 0, 50, 3, 0, 1);
        }
        if(frame==3)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        return;
    }
    if(animhandle==1119)
    {
        if(frame==0)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==4)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        if(frame==5)
        {
            target(0.1, 0.1, 0, 0, 1, 1);
        }
        return;
    }
    if(animhandle==1120)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 1, 0, 1);

	}

        return;
    }
    if(animhandle==1121)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 1, 0, 1);

	}

        return;
    }
    if(animhandle==1122)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 1, 0, 1);

	}

        return;
    }
    if(animhandle==1123)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 1, 0, 1);

	}

        return;
    }
    if(animhandle==1124)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==2)
        {
            finisher("ANI_Idle", "ANI_Follow40", 0, 30, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Walk", "ANI_Follow40", 0, 30, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Idle", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Walk", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_UP", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Attack1", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Attack9", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Freespecial1", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Run", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Forwardjump", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Jump", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Freespecial4", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher("ANI_Idle", "ANI_Follow5", 0, 30, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Walk", "ANI_Follow5", 0, 30, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Follow5", "ANI_Follow5", 0, 30, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Pain", "ANI_Follow4", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher("ANI_Idle", "ANI_Follow40", 0, 30, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Walk", "ANI_Follow40", 0, 30, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Idle", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Walk", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_UP", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack9", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Freespecial1", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Run", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Forwardjump", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Jump", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Freespecial4", "ANI_Follow4", -500, 600, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher("ANI_Idle", "ANI_Follow5", 0, 30, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Walk", "ANI_Follow5", 0, 30, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Follow5", "ANI_Follow5", 0, 30, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Pain", "ANI_Follow4", -50, 60, 3, 0, 0);
        }
        return;
    }
    if(animhandle==1125)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==2)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1126)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 1, 0, 1);

	}

        return;
    }

}

#### animationscript function main #####
# data/chars/Chin_DDIII/Chin_DDIII_Boss.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1139)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1140)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1141)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1142)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==3)
        {
            anichange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1144)
    {
        if(frame==1)
        {
            finisher2("ANI_freespecial4", "ANI_rise", -20, 30, 3, 0, 0);
        }
        return;
    }
    if(animhandle==1148)
    {
        if(frame==0)
        {
            finisher("ANI_pain", "ANI_follow25", 0, 30, 10, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_pain", "ANI_follow25", 0, 30, 10, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_pain", "ANI_follow25", 0, 30, 10, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_pain", "ANI_follow25", 0, 30, 10, 0, 1);
        }
        if(frame==4)
        {
            finisher("ANI_pain", "ANI_follow25", 0, 30, 10, 0, 1);
        }
        return;
    }
    if(animhandle==1150)
    {
        if(frame==0)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_PAIN", "ANI_follow2", 0, 30, 55, 0, 1);
        }
        return;
    }
    if(animhandle==1152)
    {
        if(frame==2)
        {
            finisher2("ANI_pain", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Run", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Attack", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_rise", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_jump", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_forwardjump", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_jumpland", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_freespecial1", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Idle", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_walk", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_UP", "ANI_follow20", -300, 300, 3, 0, 0);
        }
        if(frame==3)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1153)
    {
        if(frame==1)
        {
            finisher2("ANI_pain", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_run", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_attack", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_freespecial1", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_jump", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_forwardjump", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_jumpland", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_walk", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_follow21", 0, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1154)
    {
        if(frame==1)
        {
            finisher2("ANI_pain", "ANI_follow24", -100, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_follow24", -100, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_walk", "ANI_follow24", -100, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_follow24", -100, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_run", "ANI_follow24", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_attack", "ANI_follow24", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_freespecial1", "ANI_follow24", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_jump", "ANI_follow24", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_forwardjump", "ANI_follow24", 0, 300, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_jumpland", "ANI_follow24", 0, 300, 3, 0, 0);
        }
        if(frame==2)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1155)
    {
        if(frame==1)
        {
            finisher2("ANI_walk", "ANI_follow22", 0, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_follow22", 0, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_pain", "ANI_follow22", 0, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_follow22", 0, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_walk", "ANI_follow23", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_follow23", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_pain", "ANI_follow23", -100, 300, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_follow23", -100, 300, 3, 0, 1);
        }
        if(frame==2)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1158)
    {
        if(frame==0)
        {
            antiwall4(20, "ANI_FREESPECIAL7");
        }
        return;
    }
    if(animhandle==1159)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



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

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==1160)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



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

      changeentityproperty(vSelf, "tosstime", iTime + 50);

    }

        return;
    }
    if(animhandle==1161)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



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

      changeentityproperty(vSelf, "tosstime", iTime + 20);

    }

        return;
    }
    if(animhandle==1162)
    {
        if(frame==5)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==1163)
    {
        if(frame==0)
        {
            setglobalvar("zoomentity", getlocalvar("self"));
        }
        if(frame==0)
        {
            setglobalvar("zoomvalue", 512);
        }
        if(frame==0)
        {
            setglobalvar("zoomx", 10);
        }
        if(frame==0)
        {
            setglobalvar("zoomy", 55);
        }
        if(frame==6)
        {
            setglobalvar("zoomentity", NULL());
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DDIII_Ranzou/Ranzou1_Boss.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1165)
    {
        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==1167)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        return;
    }
    if(animhandle==1168)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            finisher("ANI_freespecial4", "ANI_Rise", -10, 40, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher("ANI_freespecial4", "ANI_Rise", -10, 40, 3, 0, 0);
        }
        return;
    }
    if(animhandle==1170)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1171)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1172)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1173)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==1174)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==1175)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==3)
        {
            anichange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1177)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        return;
    }
    if(animhandle==1181)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1182)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_pain", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Idle", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Walk", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_UP", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Run", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Jump", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 40, 80, 3, 0, 1);
        }
        if(frame==3)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial4"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_pain"));
        }
        if(frame==3)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_pain", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Idle", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Walk", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_UP", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Run", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Jump", "ANI_follow23", -40, 40, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 40, 80, 3, 0, 1);
        }
        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial4"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_pain"));
        }
        if(frame==4)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==5)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1183)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==4)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_pain"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==5)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_pain"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==6)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_pain"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==7)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_pain"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==8)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_pain"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1184)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==6)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==7)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==8)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1185)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==3)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==6)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==7)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1186)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==6)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==7)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==8)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1187)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==3)
        {
            finisher2("ANI_pain", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Idle", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Walk", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_UP", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Run", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Jump", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==4)
        {
            finisher2("ANI_pain", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Idle", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Walk", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_UP", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Run", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Jump", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==5)
        {
            finisher2("ANI_pain", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Idle", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Walk", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_UP", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Run", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Jump", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==5)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1188)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            antiwall4(-10, "ANI_Follow27");
        }
        if(frame==1)
        {
            antiwall4(-10, "ANI_Follow27");
        }
        return;
    }
    if(animhandle==1189)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1190)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}



    void vSelf = getlocalvar("self");	

    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==1)
        {
            flip();
        }
        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==1191)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            ani0020(openborconstant("ANI_Freespecial2"), openborconstant("ANI_Pain"));
        }
        if(frame==1)
        {
            ani0020(openborconstant("ANI_Freespecial2"), openborconstant("ANI_Pain"));
        }
        return;
    }
    if(animhandle==1192)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==3)
        {
            ani0020(openborconstant("ANI_Follow30"), openborconstant("ANI_Pain"));
        }
        return;
    }
    if(animhandle==1193)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1194)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1195)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1196)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1197)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            setglobalvar("zoomentity", getlocalvar("self"));
        }
        if(frame==0)
        {
            setglobalvar("zoomvalue", 512);
        }
        if(frame==0)
        {
            setglobalvar("zoomx", 10);
        }
        if(frame==0)
        {
            setglobalvar("zoomy", 30);
        }
        if(frame==5)
        {
            setglobalvar("zoomentity", NULL());
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DDIII_Ranzou/Ranzou2_Boss.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1201)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        return;
    }
    if(animhandle==1202)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            finisher("ANI_freespecial4", "ANI_Rise", -10, 40, 3, 0, 0);
        }
        if(frame==0)
        {
            finisher("ANI_Run", "ANI_Follow21", -100, 100, 3, 0, 0);
        }
        if(frame==0)
        {
            finisher("ANI_freespecial4", "ANI_Follow21", -0, 50, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_run", "ANI_Freespecial14", 0, 400, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Freespecial3", "ANI_freespecial14", 0, 40, 3, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_freespecial13", 40, 60, 3, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_Walk", "ANI_freespecial13", 40, 60, 3, 0, 0);
        }
        if(frame==0)
        {
            finisher2("ANI_UP", "ANI_freespecial13", 40, 60, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher("ANI_freespecial4", "ANI_Rise", -10, 40, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher("ANI_Run", "ANI_Follow21", -100, 100, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher("ANI_freespecial4", "ANI_Follow21", -0, 50, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_run", "ANI_Freespecial14", 0, 400, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Freespecial3", "ANI_freespecial14", 0, 40, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_freespecial13", 40, 60, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Walk", "ANI_freespecial13", 40, 60, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_freespecial13", 40, 60, 3, 0, 0);
        }
        return;
    }
    if(animhandle==1204)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1205)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1206)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1207)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==1208)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==0)
        {
            flip();
        }
        return;
    }
    if(animhandle==1209)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        if(frame==3)
        {
            anichange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1211)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==0)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==1)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==2)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_pain", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Idle", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Walk", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_UP", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Run", "ANI_follow20", 0, 100, 3, 0, 1);
        }
        if(frame==3)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        return;
    }
    if(animhandle==1215)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1216)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 40, 80, 3, 0, 1);
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==3)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==3)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==4)
        {
            target(0.5, 0.25, 0, 0, 1, 1);
        }
        if(frame==5)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1217)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==4)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Idle"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Pain"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Walk"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_UP"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Run"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Jump"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_attack1"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==5)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Idle"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Pain"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Walk"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_UP"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Run"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Jump"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_attack1"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==6)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==6)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Idle"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Pain"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Walk"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_UP"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Run"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Jump"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_attack1"));
        }
        if(frame==6)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==7)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==7)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Idle"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Pain"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Walk"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_UP"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Run"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Jump"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_attack1"));
        }
        if(frame==7)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==8)
        {
            finisher2("ANI_pain", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Idle", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Walk", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_UP", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Run", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Jump", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            finisher2("ANI_Attack1", "ANI_follow24", 0, 40, 3, 0, 0);
        }
        if(frame==8)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Idle"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Pain"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Walk"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_UP"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Run"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Jump"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_attack1"));
        }
        if(frame==8)
        {
            ani0020(openborconstant("ANI_follow24"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1218)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==6)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==7)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==8)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==9)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1219)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1220)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==6)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==7)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==8)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==9)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1221)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==3)
        {
            finisher2("ANI_pain", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Idle", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Walk", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_UP", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Run", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Jump", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==3)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==3)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==4)
        {
            finisher2("ANI_pain", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Idle", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Walk", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_UP", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Run", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Jump", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==4)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==4)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==5)
        {
            finisher2("ANI_pain", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Idle", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Walk", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_UP", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Run", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Jump", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher2("ANI_Attack1", "ANI_follow23", 0, 400, 3, 0, 1);
        }
        if(frame==5)
        {
            antiwall4(-10, "ANI_follow27");
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Idle"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Walk"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_UP"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Run"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Jump"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_ForwardJump"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Attack1"));
        }
        if(frame==5)
        {
            ani0020(openborconstant("ANI_follow23"), openborconstant("ANI_Freespecial1"));
        }
        if(frame==6)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1222)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            antiwall4(20, "ANI_Follow27");
        }
        if(frame==1)
        {
            antiwall4(20, "ANI_Follow27");
        }
        return;
    }
    if(animhandle==1223)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1224)
    {


    void vSelf = getlocalvar("self");	

    if(frame==0){

      int  iTime = openborvariant("elapsed_time");

      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==1)
        {
            flip();
        }
        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }
    if(animhandle==1225)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1226)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            finisher("ANI_pain", "ANI_follow30", 0, 50, 3, 0, 1);
        }
        if(frame==1)
        {
            finisher("ANI_pain", "ANI_follow30", 0, 50, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_pain", "ANI_follow30", 0, 50, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_pain", "ANI_follow30", 0, 50, 3, 0, 1);
        }
        return;
    }
    if(animhandle==1227)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1228)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1229)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1230)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }

}

#### animationscript function main #####
# data/chars/williams/pipewilliams.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1232)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==0)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==1)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==1)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==2)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==2)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==3)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==3)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==4)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==4)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==5)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==5)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==6)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==6)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==7)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==7)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==8)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==8)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==9)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==9)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==10)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==10)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==11)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==11)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==12)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==12)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==13)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==13)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==14)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==14)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==15)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==15)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        return;
    }
    if(animhandle==1233)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==1)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==2)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==3)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==4)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==5)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==6)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==7)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==8)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==9)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==10)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==11)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==12)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==13)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==14)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==15)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1234)
    {
        if(frame==0)
        {
            dasher(0, 0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1235)
    {
        if(frame==0)
        {
            dasher(0, -0.5, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1236)
    {


    void self = getlocalvar("self");



    if(frame==2){

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int LType = getentityvar(self, 2);

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+21);

      } else {

        changeentityproperty(self, "position", x+sx, z-4, y+21);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1237)
    {


    void self = getlocalvar("self");



    if(frame==2){

      performattack(self, openborconstant("ANI_FOLLOW2"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/williams/knifewilliams1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1258)
    {
        if(frame==1)
        {
            shooter2("knifeDD21", 20, 25, 0, 1.4, 0, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/weapons_ddiii/Army_Knife12.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1262)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            anichange("ANI_Freespecial3");
        }
        return;
    }
    if(animhandle==1263)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==1)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==1)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==1264)
    {


    void self = getlocalvar("self");



    if(frame==1){

      killentity(self);

    }

        return;
    }
    if(animhandle==1265)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==0)
        {
            knife(20, 20, 0, 100, "ANI_FOLLOW2");
        }
        if(frame==9)
        {
            shooter2("Army_Knife1", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1266)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==9)
        {
            shooter2("Army_Knife1", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1267)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1269)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/gibson/Gibson_knife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1272)
    {
        if(frame==0)
        {
            target(1, 1, 0, 0, 1, 1);
        }
        if(frame==1)
        {
            target(1, 1, 0, 0, 1, 1);
        }
        if(frame==2)
        {
            target(1, 1, 0, 0, 1, 1);
        }
        if(frame==3)
        {
            target(1, 1, 0, 0, 1, 1);
        }
        return;
    }
    if(animhandle==1275)
    {
        if(frame==2)
        {
            shooter2("Army_Knife12", 20, 27, 0, 1.4, 0, 0);
        }
        return;
    }
    if(animhandle==1277)
    {
        if(frame==2)
        {
            finisher("ANI_Idle", "ANI_Follow40", 0, 30, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher("ANI_Walk", "ANI_Follow40", 0, 30, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher("ANI_Follow5", "ANI_Follow40", 0, 30, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Idle", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Walk", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_UP", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Attack1", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Freespecial1", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Freespecial4", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==2)
        {
            finisher2("ANI_Pain", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher("ANI_Idle", "ANI_Follow40", 0, 30, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher("ANI_Walk", "ANI_Follow40", 0, 30, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher("ANI_Follow5", "ANI_Follow40", 0, 30, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Idle", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Walk", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_UP", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Attack1", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Freespecial1", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Freespecial4", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        if(frame==3)
        {
            finisher2("ANI_Pain", "ANI_Follow1", -50, 60, 3, 0, 0);
        }
        return;
    }
    if(animhandle==1278)
    {
        if(frame==2)
        {
            anichange("ANI_Rise");
        }
        return;
    }
    if(animhandle==1279)
    {


    void vSelf = getlocalvar("self");	



    if(frame==0){

      int  iTime = openborvariant("elapsed_time");



      changeentityproperty(vSelf, "velocity", 0, 0 , 0); // This is to stop entity from moving forward

      changeentityproperty(vSelf, "tosstime", iTime + 200);

    }

        if(frame==2)
        {
            anichange("ANI_rise");
        }
        return;
    }

}

#### animationscript function main #####
# Data/chars/Robinson/Robinson_Bottle.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1280)
    {
        if(frame==0)
        {
            finisher2("ANI_Freespecial4", "ANI_rise", -30, 30, 3, 0, 0);
        }
        if(frame==1)
        {
            finisher2("ANI_Freespecial4", "ANI_rise", -30, 30, 3, 0, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/Roper/Roper1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1285)
    {
        if(frame==1)
        {
            shooter2("dynam", 15, 45, 0, 2.5, 1, 0);
        }
        return;
    }
    if(animhandle==1287)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1297)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/warrior/warrior3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1299)
    {
        if(frame==0)
        {
            finisher("ANI_Freespecial3", "ANI_rise", 0, 40, 10, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Jumpattack", "ANI_freespecial3", 0, 80, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Jump", "ANI_freespecial3", 0, 80, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Freespecial5", "ANI_freespecial3", 30, 50, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Freespecial3", "ANI_freespecial3", 10, 40, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Attack1", "ANI_freespecial3", 30, 50, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Freespecial1", "ANI_freespecial3", -10, -50, 3, 0, 1);
        }
        if(frame==0)
        {
            finisher("ANI_Follow1", "ANI_freespecial3", 10, 50, 3, 0, 1);
        }
        return;
    }
    if(animhandle==1301)
    {
        if(frame==2)
        {
            finisher("ANI_Idle", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Walk", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_UP", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Jump", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_pain", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Idle", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Walk", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_UP", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Jump", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_pain", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_follow1", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Idle", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_Walk", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_UP", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==2)
        {
            finisher("ANI_pain", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Idle", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Walk", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_UP", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Jump", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_pain", "ANI_attack3", 0, 45, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Idle", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Walk", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_UP", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Jump", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_pain", "ANI_Freespecial2", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_follow1", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Idle", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_Walk", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_UP", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        if(frame==3)
        {
            finisher("ANI_pain", "ANI_Freespecial4", 0, 35, 3, 0, 1);
        }
        return;
    }
    if(animhandle==1303)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }
    if(animhandle==1308)
    {
        if(frame==5)
        {
            finisher("ANI_Idle", "ANI_freespecial1", 0, 80, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Walk", "ANI_freespecial1", 0, 80, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_UP", "ANI_freespecial1", 0, 80, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Jump", "ANI_freespecial1", 0, 80, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_JumpAttack", "ANI_freespecial1", 0, 80, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Freespecial3", "ANI_freespecial1", 0, 80, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Freespecial3", "ANI_attack2", 0, 45, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Idle", "ANI_attack2", 0, 45, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Walk", "ANI_attack2", 0, 45, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_UP", "ANI_attack2", 0, 45, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Jump", "ANI_attack2", 0, 45, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_Jumpattack", "ANI_attack2", 0, 45, 3, 0, 1);
        }
        if(frame==5)
        {
            finisher("ANI_attack1", "ANI_attack2", 0, 45, 3, 0, 1);
        }
        return;
    }
    if(animhandle==1312)
    {


    void self = getlocalvar("self");

    changeentityproperty(self, "antigravity", 0);

    changeentityproperty(self, "Subject_to_Wall", 1);

    changeentityproperty(self, "Subject_to_MinZ", 1);

    changeentityproperty(self, "Subject_to_MaxZ", 1);

    changeentityproperty(self, "Subject_to_Gravity", 1);



    if(frame==2){

      setentityvar(self, 0, openborvariant("elapsed_time"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/misc/star10.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1316)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        if(frame==0)
        {
            anichange("ANI_Freespecial3");
        }
        return;
    }
    if(animhandle==1317)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1318)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }
    if(animhandle==1319)
    {


	if(frame==0){

	void self = getlocalvar("self");

	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);

	}

        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/Knife/knifeDD1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1323)
    {
        if(frame==0)
        {
            move(25, 0, 40);
        }
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==1)
        {
            basechange("ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1326)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/Knife/knifeDD12.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1327)
    {
        if(frame==0)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==0)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==1)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==1)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==2)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==2)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==3)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==3)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==4)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==4)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==5)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==5)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==6)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==6)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        if(frame==7)
        {
            antiwall4(10, "ANI_FOLLOW2");
        }
        if(frame==7)
        {
            knife(20, 20, 0, 20, "ANI_FOLLOW2");
        }
        return;
    }
    if(animhandle==1328)
    {


    void self = getlocalvar("self");



    if(frame==1){

      killentity(self);

    }

        return;
    }
    if(animhandle==1329)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==0)
        {
            knife(20, 20, 0, 100, "ANI_FOLLOW2");
        }
        if(frame==9)
        {
            shooter2("knifeDD1", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1330)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==9)
        {
            shooter2("knifeDD1", 0, 0, 0, 0, 0, 0);
        }
        if(frame==10)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1331)
    {
        if(frame==1)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1333)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billyknife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1335)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==1336)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==1337)
    {
        if(frame==1)
        {
            shooter2("knifeDD12", 20, 27, 0, 1.4, 0, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billybat.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1361)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==1362)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==1363)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==1364)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==2)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==3)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==3)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        return;
    }
    if(animhandle==1365)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==2)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==2)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        return;
    }
    if(animhandle==1366)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1367)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billybatlv2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1380)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==1381)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==1382)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==1383)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==2)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        if(frame==3)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==3)
        {
            keyint("ANI_FOLLOW17", 0, "U", 1);
        }
        return;
    }
    if(animhandle==1384)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==2)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==2)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==2)
        {
            keyint("ANI_FOLLOW17", 0, "D", 1);
        }
        return;
    }
    if(animhandle==1385)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1386)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/dynamit/Dynamit2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1398)
    {
        if(frame==6)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/dynamit/Dynamit.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1403)
    {


    void self = getlocalvar("self");

    if(frame==1){

      killentity(self);

    }

        return;
    }
    if(animhandle==1404)
    {
        if(frame==11)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_IDLE"));
        }
        return;
    }
    if(animhandle==1405)
    {
        if(frame==11)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_IDLE"));
        }
        return;
    }
    if(animhandle==1406)
    {
        if(frame==0)
        {
            move(25, 0, 40);
        }
        return;
    }
    if(animhandle==1408)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1409)
    {
        if(frame==10)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_IDLE"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billydynamit.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1411)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==1412)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        return;
    }
    if(animhandle==1413)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        if(frame==1)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW15");
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW17", 1, "U", 1);
        }
        return;
    }
    if(animhandle==1414)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW17", 1, "D", 1);
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW15");
        }
        return;
    }
    if(animhandle==1415)
    {


		if(frame==1){

		void self = getlocalvar("self");

		int iPIndex = getentityproperty(self,"playerindex");

		int LType = getglobalvar(iPIndex+"ClimbT");

		int LType = getentityvar(self, 6);

		float x = getentityproperty(self, "x");

		float y = getentityproperty(self, "a");

		float z = getentityproperty(self, "z");

		int Dir = getentityproperty(self, "direction");

		int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1416)
    {


    if(frame==1){

      void self = getlocalvar("self");

      performattack(self, openborconstant("ANI_FOLLOW17"));

    }

	        return;
    }
    if(animhandle==1417)
    {
        if(frame==0)
        {
            dasher(0, 0, 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==0)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW13", 0, "U", 0);
        }
        if(frame==1)
        {
            keyint("ANI_FOLLOW14", 0, "D", 0);
        }
        return;
    }
    if(animhandle==1418)
    {
        if(frame==1)
        {
            shooter2("DynamitDD1", 15, 30, 0, 1.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/will/willbat.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1432)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==0)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==1)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==1)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==2)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==2)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==3)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==3)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        return;
    }
    if(animhandle==1433)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==1)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==2)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==3)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1434)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1435)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1436)
    {


    void self = getlocalvar("self");



    if(frame==2){

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int LType = getentityvar(self, 2);

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1437)
    {


    void self = getlocalvar("self");



    if(frame==2){

      performattack(self, openborconstant("ANI_FOLLOW2"));

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billywhip.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1441)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==1442)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billywhiplv1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1455)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==1456)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billywhiplv2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1466)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==2)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climber(10, 10, "ANI_FOLLOW17");
        }
        return;
    }
    if(animhandle==1467)
    {


    void self = getlocalvar("self");

    int y = getentityproperty(self, "a");

    int b = getentityproperty(self, "base");



    setlocalvar("PKnee" + self, 0);

    setlocalvar("Target" + self, NULL());

    if(y > b + 25){

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

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

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

      updateframe(self, 1);

    }

        if(frame==0)
        {
            stairwalk(1);
        }
        if(frame==0)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==1)
        {
            stairwalk(1);
        }
        if(frame==1)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==2)
        {
            stairwalk(1);
        }
        if(frame==2)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        if(frame==3)
        {
            stairwalk(1);
        }
        if(frame==3)
        {
            climberD(10, 10, "ANI_FOLLOW16");
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/barel/barel.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1481)
    {
        if(frame==0)
        {
            move(5, 0, 50);
        }
        if(frame==0)
        {
            antiwall4(0, -5);
        }
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW1"));
        }
        return;
    }
    if(animhandle==1483)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/barel/barel1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1485)
    {
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW1"));
        }
        return;
    }
    if(animhandle==1486)
    {
        if(frame==6)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW2"));
        }
        return;
    }
    if(animhandle==1487)
    {
        if(frame==25)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1488)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/barel/barel2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1490)
    {


    void self = getlocalvar("self");

    int x = getentityproperty(self, "x");

    int y = getentityproperty(self, "a");

    int z = getentityproperty(self, "z");

    int b = getentityproperty(self, "base");



    if(y >= 2+b){

      changeentityproperty(self, "subject_to_gravity", 1);

    }



    void self = getlocalvar("self");

    int x = getentityproperty(self, "x");

    int y = getentityproperty(self, "a");

    int z = getentityproperty(self, "z");

    int b = getentityproperty(self, "base");



    if(y >= 2+b){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==2)
        {
            leaper(1.3, 0, 0);
        }
        if(frame==3)
        {
            leaper(1, 0, 0);
        }
        if(frame==4)
        {
            leaper(0.7, 0, 0);
        }
        if(frame==8)
        {
            leaper(0.5, 0, 0);
        }
        if(frame==9)
        {
            leaper(0.3, 0, 0);
        }
        if(frame==11)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1491)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/barel/barel3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1493)
    {
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW1"));
        }
        return;
    }
    if(animhandle==1494)
    {
        if(frame==6)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW2"));
        }
        return;
    }
    if(animhandle==1495)
    {
        if(frame==25)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1496)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billybarel.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1498)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");



    if(P1){

      changeentityproperty(P1, "colourmap", 0);

    }

    if(P2){

      changeentityproperty(P2, "colourmap", 1);

    }

        return;
    }
    if(animhandle==1499)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");



    if(P1){

      changeentityproperty(P1, "colourmap", 0);

    }

    if(P2){

      changeentityproperty(P2, "colourmap", 1);

    }

        return;
    }
    if(animhandle==1501)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        return;
    }
    if(animhandle==1502)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==1){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changeentityproperty(self, "Subject_to_Platform", 1);

      changelevelproperty("scrollspeed", 1);

    }

    if(frame==3){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

        return;
    }
    if(animhandle==1503)
    {
        if(frame==0)
        {
            nomoveidle2("ANI_FOLLOW1");
        }
        if(frame==0)
        {
            hurt5(0);
        }
        return;
    }
    if(animhandle==1504)
    {
        if(frame==0)
        {
            hurt6(0);
        }
        return;
    }
    if(animhandle==1505)
    {
        if(frame==1)
        {
            shooter2("barel1", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/Box/box.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1510)
    {
        if(frame==0)
        {
            move(5, 0, 50);
        }
        if(frame==0)
        {
            antiwall4(0, -5);
        }
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW1"));
        }
        return;
    }
    if(animhandle==1512)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/Box/box1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1514)
    {
        if(frame==20)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1515)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billybox.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1517)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");



    if(P1){

      changeentityproperty(P1, "colourmap", 0);

    }

    if(P2){

      changeentityproperty(P2, "colourmap", 1);

    }

        return;
    }
    if(animhandle==1518)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");



    if(P1){

      changeentityproperty(P1, "colourmap", 0);

    }

    if(P2){

      changeentityproperty(P2, "colourmap", 1);

    }

        return;
    }
    if(animhandle==1520)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        return;
    }
    if(animhandle==1521)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==1){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changeentityproperty(self, "Subject_to_Platform", 1);

      changelevelproperty("scrollspeed", 1);

    }

    if(frame==3){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

        return;
    }
    if(animhandle==1522)
    {
        if(frame==0)
        {
            nomoveidle2("ANI_FOLLOW1");
        }
        if(frame==0)
        {
            hurt5(0);
        }
        return;
    }
    if(animhandle==1523)
    {
        if(frame==0)
        {
            hurt6(0);
        }
        return;
    }
    if(animhandle==1524)
    {
        if(frame==1)
        {
            shooter2("boxdd11", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/rock/rock.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1529)
    {
        if(frame==0)
        {
            move(5, 0, 50);
        }
        if(frame==0)
        {
            antiwall4(0, -5);
        }
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW1"));
        }
        return;
    }
    if(animhandle==1531)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/rock/rock1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1533)
    {
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW1"));
        }
        return;
    }
    if(animhandle==1534)
    {
        if(frame==6)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW2"));
        }
        return;
    }
    if(animhandle==1535)
    {
        if(frame==25)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1536)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/billyrock.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1538)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");



    if(P1){

      changeentityproperty(P1, "colourmap", 0);

    }

    if(P2){

      changeentityproperty(P2, "colourmap", 1);

    }

        return;
    }
    if(animhandle==1539)
    {


    void self = getlocalvar("self");

    void P1 = getplayerproperty(0, "entity");

    void P2 = getplayerproperty(1, "entity");



    if(P1){

      changeentityproperty(P1, "colourmap", 0);

    }

    if(P2){

      changeentityproperty(P2, "colourmap", 1);

    }

        return;
    }
    if(animhandle==1541)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 0);

    }

    if(frame==2){

      changelevelproperty("scrollspeed", 1);

    }

        return;
    }
    if(animhandle==1542)
    {


    void self = getlocalvar("self");



    if(frame==0){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==1){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

    if(frame==2){

      changeentityproperty(self, "Subject_to_Platform", 1);

      changelevelproperty("scrollspeed", 1);

    }

    if(frame==3){

      changeentityproperty(self, "Subject_to_Platform", 1);

    }

        return;
    }
    if(animhandle==1543)
    {
        if(frame==0)
        {
            nomoveidle2("ANI_FOLLOW1");
        }
        if(frame==0)
        {
            hurt5(0);
        }
        return;
    }
    if(animhandle==1544)
    {
        if(frame==0)
        {
            hurt6(0);
        }
        return;
    }
    if(animhandle==1545)
    {
        if(frame==1)
        {
            shooter2("rockdd11", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DD1_Roper/dd1_roperbarel.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1552)
    {
        if(frame==1)
        {
            shooter2("barel1", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DD1_Roper/dd1_roperbox.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1559)
    {
        if(frame==1)
        {
            shooter2("boxdd11", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/DD1_Roper/dd1_roperrock.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1567)
    {
        if(frame==1)
        {
            shooter2("rockdd11", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }
    if(animhandle==1568)
    {
        if(frame==0)
        {
            antiwall3(35, -31, 0);
        }
        if(frame==1)
        {
            shooter2("rockdd11", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }
    if(animhandle==1569)
    {
        if(frame==0)
        {
            antiwall3(35, -31, 0);
        }
        if(frame==1)
        {
            shooter2("rockdd11", 10, 20, 1, 0.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/will/willdynam.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1572)
    {
        if(frame==0)
        {
            clearL();
        }
        return;
    }
    if(animhandle==1574)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==0)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==1)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==1)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==2)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==2)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==3)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==3)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        return;
    }
    if(animhandle==1575)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==1)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==2)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==3)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1576)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1577)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1578)
    {


    void self = getlocalvar("self");



    if(frame==2){

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int LType = getentityvar(self, 2);

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1579)
    {


    void self = getlocalvar("self");



    if(frame==2){

      performattack(self, openborconstant("ANI_FOLLOW2"));

    }

        return;
    }
    if(animhandle==1580)
    {
        if(frame==1)
        {
            shooter2("DynamitDD1", 15, 30, 0, 1.5, 1, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/will/willknife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1583)
    {
        if(frame==0)
        {
            clearL();
        }
        return;
    }
    if(animhandle==1585)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==0)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==1)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==1)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==2)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==2)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        if(frame==3)
        {
            walljump(5, 6, "ANI_FOLLOW13");
        }
        if(frame==3)
        {
            climberD(20, 20, "ANI_FOLLOW4");
        }
        return;
    }
    if(animhandle==1586)
    {


    void self = getlocalvar("self");



    setlocalvar("Pain" + self, 0);

    setentityvar(self, 5, NULL());

        if(frame==0)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==1)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==2)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        if(frame==3)
        {
            climber(20, 10, "ANI_FOLLOW1");
        }
        return;
    }
    if(animhandle==1587)
    {
        if(frame==0)
        {
            dasher(0, 0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("U", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1588)
    {
        if(frame==0)
        {
            dasher(0, -0.3, 0);
        }
        if(frame==0)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        if(frame==1)
        {
            climbEnd("D", "ANI_FOLLOW3");
        }
        return;
    }
    if(animhandle==1589)
    {


    void self = getlocalvar("self");



    if(frame==2){

      float x = getentityproperty(self, "x");

      float y = getentityproperty(self, "a");

      float z = getentityproperty(self, "z");

      int Dir = getentityproperty(self, "direction");

      int LType = getentityvar(self, 2);

      int sx = 5;



      changeentityproperty(self, "Subject_to_Platform", 1);

      changeentityproperty(self, "antigravity", 0);



      if(Dir == 0){

        sx = -5;

      }



      if(LType == 2){

        changeentityproperty(self, "position", x, z, y+7);

      } else {

        changeentityproperty(self, "position", x+sx, z-1, y+7);

      }

      setidle(self, openborconstant("ANI_IDLE"));

    }

        return;
    }
    if(animhandle==1590)
    {


    void self = getlocalvar("self");



    if(frame==2){

      performattack(self, openborconstant("ANI_FOLLOW2"));

    }

        return;
    }
    if(animhandle==1591)
    {
        if(frame==1)
        {
            shooter2("knifeDD12", 20, 20, 0, 1.4, 0, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1chin/DD1Chinknife.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1594)
    {
        if(frame==0)
        {
            clearL();
        }
        return;
    }
    if(animhandle==1597)
    {
        if(frame==1)
        {
            shooter2("knifeDD12", 20, 20, 0, 1.4, 0, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/Box/box2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1599)
    {


    void self = getlocalvar("self");

    int x = getentityproperty(self, "x");

    int y = getentityproperty(self, "a");

    int z = getentityproperty(self, "z");

    int b = getentityproperty(self, "base");



    if(y >= 2+b){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==2)
        {
            leaper(1.3, 0, 0);
        }
        if(frame==3)
        {
            leaper(1, 0, 0);
        }
        if(frame==4)
        {
            leaper(0.7, 0, 0);
        }
        if(frame==8)
        {
            leaper(0.5, 0, 0);
        }
        if(frame==9)
        {
            leaper(0.3, 0, 0);
        }
        if(frame==11)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1600)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/Box/box3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1602)
    {
        if(frame==8)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW1"));
        }
        return;
    }
    if(animhandle==1603)
    {
        if(frame==6)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_FOLLOW2"));
        }
        return;
    }
    if(animhandle==1604)
    {
        if(frame==25)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1605)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/dd1/rock/rock2.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1607)
    {


    void self = getlocalvar("self");

    int x = getentityproperty(self, "x");

    int y = getentityproperty(self, "a");

    int z = getentityproperty(self, "z");

    int b = getentityproperty(self, "base");



    if(y >= 2+b){

      changeentityproperty(self, "subject_to_gravity", 1);

    }

        if(frame==2)
        {
            leaper(1.3, 0, 0);
        }
        if(frame==3)
        {
            leaper(1, 0, 0);
        }
        if(frame==4)
        {
            leaper(0.7, 0, 0);
        }
        if(frame==8)
        {
            leaper(0.5, 0, 0);
        }
        if(frame==9)
        {
            leaper(0.3, 0, 0);
        }
        if(frame==11)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }
    if(animhandle==1608)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/roper/weapons/dynamclear.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1611)
    {
        if(frame==0)
        {
            degravity(-0.30);
        }
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==1)
        {
            antiwall4(0, -25);
        }
        if(frame==9)
        {
            changeentityproperty(getlocalvar("self"), "animation", openborconstant("ANI_IDLE"));
        }
        return;
    }
    if(animhandle==1612)
    {
        if(frame==0)
        {
            antiwall4(0, -25);
        }
        if(frame==0)
        {
            degravity(0.30);
        }
        return;
    }
    if(animhandle==1614)
    {
        if(frame==3)
        {
            killentity(getlocalvar("self"));
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/0misc/Cursor/Cursor.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1619)
    {


    if(frame==0){

      playmusic("data/music/ArcherMusic2/02.DD2-Start_Mission.ogg", 1);

    }

        return;
    }
    if(animhandle==1620)
    {


    if(frame==0){

      playmusic("data/music/DDII/inter.ogg", 1);

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/0misc/Cursor/Cursor1.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1627)
    {


    void self = getlocalvar("self"); //Get calling entity

    int iPIndex = getentityproperty(self,"playerindex");



    int x = getglobalvar("x"+iPIndex);

    int z = getglobalvar("z"+iPIndex);



    if( x!=NULL() && z!=NULL() && frame == 1){

      changeentityproperty(self,"position", x, z);

    }

        return;
    }
    if(animhandle==1631)
    {


    if(frame==0){

      playmusic("data/music/ArcherMusic/02.DD_Mission_Start.ogg", 1);

    }

        return;
    }
    if(animhandle==1632)
    {


    if(frame==0){

      playmusic("data/music/DD/inter.ogg", 1);

    }

        return;
    }

}

#### animationscript function main #####
# data/chars/0misc/Cursor/Cursor3.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1639)
    {


    void self = getlocalvar("self"); //Get calling entity

    int iPIndex = getentityproperty(self,"playerindex");



    int x = getglobalvar("x"+iPIndex);

    int z = getglobalvar("z"+iPIndex);



    if( x!=NULL() && z!=NULL() && frame == 1){

      changeentityproperty(self,"position", x, z);

    }

        return;
    }
    if(animhandle==1643)
    {


    if(frame==0){

      playmusic("data/music/ArcherMusic3/02.DD3-Start_Mission.ogg", 1);

    }

        return;
    }
    if(animhandle==1644)
    {


    if(frame==0){

      playmusic("data/music/ddiii/world_map.ogg", 1);

    }

        return;
    }
    if(animhandle==1645)
    {
        if(frame==0)
        {
            dasher(0, 0, -30, 0);
        }
        return;
    }

}

#### animationscript function main #####
# data/chars/misc/story/story.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1651)
    {
        if(frame==1)
        {
            talk();
        }
        return;
    }
    if(animhandle==1652)
    {
        if(frame==1)
        {
            sendDialogMsg();
        }
        return;
    }

}
