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

        }
        return;
    }
    if(animhandle==11)
    {
        if(frame==4)
        {
            hardAtt("ANI_FOLLOW1");

        }
        return;
    }
    if(animhandle==18)
    {
        if(frame==0)
        {
            targetL(3, 0, 0);

        }
        if(frame==0)
        {
            leap(3);

        }
        return;
    }
    if(animhandle==20)
    {
        if(frame==0)
        {
            leaper(1, 2, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Tsubomi/Tsubomi.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==22)
    {
        if(frame==0)
        {
            hardSet();

        }
        if(frame==0)
        {
            tele(0);

        }
        return;
    }
    if(animhandle==34)
    {
        if(frame==2)
        {
            hardAtt("ANI_ATTACK1");

        }
        return;
    }
    if(animhandle==36)
    {
        if(frame==4)
        {
            tele(0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/roo/zoo.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==65)
    {
        if(frame==0)
        {
            target(3, 3, 0, 0, 0);

        }
        if(frame==1)
        {
            dash();

        }
        if(frame==19)
        {
            stop();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc2/baam.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==67)
    {
        if(frame==9)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Robon/Robon.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==73)
    {
        if(frame==1)
        {
            target(3, 2, 0, 0, 0);

        }
        if(frame==2)
        {
            dash();

        }
        if(frame==5)
        {
            stop();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/level1e.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==79)
    {
        if(frame==0)
        {
            level1e(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/level2e.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==80)
    {
        if(frame==0)
        {
            level2e(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/level3e.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==81)
    {
        if(frame==0)
        {
            level3e(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/level4e.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==82)
    {
        if(frame==0)
        {
            level4e(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/level5e.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==83)
    {
        if(frame==0)
        {
            level5e(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/level6e.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==84)
    {
        if(frame==0)
        {
            level6e(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/mouse.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==85)
    {
        if(frame==0)
        {
            mouse(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/piggy.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==86)
    {
        if(frame==0)
        {
            piggy(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/random/robe.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==87)
    {
        if(frame==0)
        {
            robe(0, 0, 0);

        }
        if(frame==1)
        {
            suicide()();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc2/ray.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==105)
    {
        if(frame==0)
        {
            spawn01("ray2", 0, 0, 0);

        }
        return;
    }
    if(animhandle==106)
    {
        if(frame==0)
        {
            spawn01("ray2", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/misc2/shot.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==108)
    {
        if(frame==0)
        {
            spawn01("shot2", 0, 0, 0);

        }
        return;
    }
    if(animhandle==109)
    {
        if(frame==0)
        {
            spawn01("shot2", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Rash/Rash.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==123)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==125)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==126)
    {
        if(frame==0)
        {
            spawn01("super", -197, 167, 0);

        }
        if(frame==1)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==2)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==4)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==6)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==8)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==10)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==12)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==14)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==16)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==18)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==20)
        {
            spawn01("shotx", 27, 8, 0);

        }
        if(frame==22)
        {
            spawn01("shotx", 27, 8, 0);

        }
        return;
    }
    if(animhandle==135)
    {


		void self = getlocalvar("self");

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

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

		if(a > b){

		performattack(self, openborconstant("ANI_JUMP"), 0);

		changeentityproperty(self, "animpos", 9);

		}

	        if(frame==1)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==136)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==137)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==145)
    {


		void self = getlocalvar("self");

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

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

		if(a > b){

		performattack(self, openborconstant("ANI_JUMP"), 0);

		changeentityproperty(self, "animpos", 9);

		}

	        return;
    }
    if(animhandle==147)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==151)
    {


		void self = getlocalvar("self");

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

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

		if(a > b){

		performattack(self, openborconstant("ANI_JUMP"), 0);

		changeentityproperty(self, "animpos", 9);

		}

	        return;
    }

}

####animationscript function main#####
# data/chars/Zitz/Zitz.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==164)
    {
        if(frame==0)
        {
            spawn01("super", -245, 169, 0);

        }
        if(frame==1)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }
    if(animhandle==172)
    {


		void self = getlocalvar("self");

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

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

		if(a > b){

		performattack(self, openborconstant("ANI_JUMP"), 0);

		changeentityproperty(self, "animpos", 2);

		}

	        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==173)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Pimple/Pimple.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==199)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==202)
    {
        if(frame==0)
        {
            spawn01("super", -243, 172, 0);

        }
        if(frame==1)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }
    if(animhandle==210)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==211)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==219)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==220)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }
    if(animhandle==226)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "subject_to_platform", 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Sketch/Sketch.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==234)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Platform", 1);

        }
        return;
    }
    if(animhandle==235)
    {
        if(frame==8)
        {
            shoot("S-Plain", 0, 0, 0);

        }
        return;
    }
    if(animhandle==237)
    {
        if(frame==0)
        {
            spawn01("super", -233, 165, 0);

        }
        if(frame==1)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==13)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==17)
        {
            shoot("SPS-0", 0, 5, 0);

        }
        if(frame==17)
        {
            shoot("SPS-1", 0, 5, 0);

        }
        return;
    }
    if(animhandle==247)
    {


		void self = getlocalvar("self");

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

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

		if(a > b){

		performattack(self, openborconstant("ANI_JUMP"), 0);

		changeentityproperty(self, "animpos", 5);

		}

	        if(frame==1)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Platform", 1);

        }
        return;
    }
    if(animhandle==248)
    {
        if(frame==0)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Platform", 1);

        }
        return;
    }
    if(animhandle==257)
    {


		void self = getlocalvar("self");

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

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

		if(a > b){

		performattack(self, openborconstant("ANI_JUMP"), 0);

		changeentityproperty(self, "animpos", 5);

		}

	        if(frame==1)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Platform", 1);

        }
        return;
    }
    if(animhandle==262)
    {


		void self = getlocalvar("self");

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

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

		if(a > b){

		performattack(self, openborconstant("ANI_JUMP"), 0);

		changeentityproperty(self, "animpos", 5);

		}

	        if(frame==1)
        {
            changeentityproperty(getlocalvar("self"), "Subject_to_Platform", 1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Cody/Cody.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==314)
    {
        if(frame==8)
        {
            do_npc_special3(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==315)
    {
        if(frame==0)
        {
            do_npc_special3(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==316)
    {
        if(frame==37)
        {
            do_npc_special2(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==317)
    {
        if(frame==18)
        {
            do_npc_special3(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==318)
    {
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }
    if(animhandle==319)
    {
        if(frame==62)
        {
            do_npc_hyper(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==320)
    {
        if(frame==37)
        {
            do_npc_special5(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/carlos/carlos.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==323)
    {
        if(frame==1)
        {
            anti2();

        }
        return;
    }
    if(animhandle==340)
    {
        if(frame==0)
        {
            do_npc_special2(getlocalvar("self"));

        }
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }
    if(animhandle==343)
    {
        if(frame==0)
        {
            do_npc_special(getlocalvar("self"));

        }
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==1)
        {
            spawn01("Blueflash", -7, 45, -1);

        }
        return;
    }
    if(animhandle==345)
    {
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }
    if(animhandle==346)
    {
        if(frame==0)
        {
            do_npc_special3(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==349)
    {
        if(frame==1)
        {
            anichange("ANI_FREESPECIAL5");

        }
        return;
    }
    if(animhandle==376)
    {
        if(frame==0)
        {
            do_npc_special(getlocalvar("self"));

        }
        if(frame==1)
        {
            clearL();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Maki/Maki.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==413)
    {
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Lucia/Lucia.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==469)
    {
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==9)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==20)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==22)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==27)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==37)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }
    if(animhandle==470)
    {
        if(frame==0)
        {
            leaper(1, 3.3, 0);

        }
        if(frame==13)
        {
            leaper(1, 3.3, 0);

        }
        return;
    }
    if(animhandle==471)
    {


    void vSelf = getlocalvar("self");	



    if(frame==3){

      int  iTime = openborvariant("elapsed_time");



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

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

    }

	        return;
    }

}

####animationscript function main#####
# data/chars/Dean/Dean.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==566)
    {
        if(frame==1)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Blanka/Blanka.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==625)
    {
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Guile/Guile.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==685)
    {
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/Ken/Ken.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==739)
    {
        if(frame==0)
        {
            do_npc_special3(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==741)
    {
        if(frame==0)
        {
            do_npc_special2(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==742)
    {
        if(frame==4)
        {
            do_npc_special5(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==743)
    {
        if(frame==25)
        {
            do_npc_special3(getlocalvar("self"));

        }
        return;
    }
    if(animhandle==744)
    {
        if(frame==0)
        {
            spawn01("flash3", 0, 0, -1);

        }
        if(frame==50)
        {
            do_npc_hyper(getlocalvar("self"));

        }
        return;
    }

}

####animationscript function main#####
# data/chars/wong/wong.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1106)
    {
        if(frame==0)
        {
            target(5, 1.5, 0, 0, 0);

        }
        if(frame==1)
        {
            dash();

        }
        if(frame==9)
        {
            stop();

        }
        return;
    }

}

####animationscript function main#####
# data/chars/wood/wood.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1260)
    {
        if(frame==0)
        {
            antiwall(0, -5, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/srat/srat.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1837)
    {
        if(frame==1)
        {
            shoot("shot", 0, 0, 0);

        }
        if(frame==6)
        {
            shoot("shot", 0, 0, 0);

        }
        if(frame==11)
        {
            shoot("shot", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/pig_/pig_.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1887)
    {
        if(frame==7)
        {
            spawn01("tempfire", 0, 0, 0);

        }
        return;
    }
    if(animhandle==1888)
    {
        if(frame==0)
        {
            spawn01("tempfire", 100, 0, 0);

        }
        return;
    }
    if(animhandle==1889)
    {
        if(frame==0)
        {
            spawn01("tempfire", 200, 0, 0);

        }
        return;
    }
    if(animhandle==1890)
    {
        if(frame==0)
        {
            spawn01("tempfire", 300, 0, 0);

        }
        return;
    }
    if(animhandle==1891)
    {
        if(frame==0)
        {
            spawn01("tempfire", 400, 0, 0);

        }
        return;
    }
    if(animhandle==1893)
    {
        if(frame==0)
        {
            spawn01("tempfire", 0, 0, 0);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/damnd/damnd.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1906)
    {
        if(frame==0)
        {
            targetL(2, 0, 0);

        }
        if(frame==0)
        {
            leap(2);

        }
        return;
    }
    if(animhandle==1907)
    {
        if(frame==0)
        {
            targetL(5, 0, 0);

        }
        if(frame==0)
        {
            leap(5);

        }
        return;
    }

}

####animationscript function main#####
# data/chars/sodom/sodom.txt
########################################
void main()
{
    int frame = getlocalvar("frame");
    int animhandle = getlocalvar("animhandle");
    if(animhandle==1950)
    {
        if(frame==1)
        {
            target(5, 1.5, 0, 0, 0);

        }
        if(frame==2)
        {
            dash();

        }
        if(frame==50)
        {
            stop();

        }
        return;
    }

}
