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

	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", 1);
	}
	        return;
    }
    if(animnum==1)
    {

	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", 1);
	}
	        return;
    }

}

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

	if(frame==0)
	{
	void vSelf = getlocalvar("self"); //Calling entity.
	changeentityproperty(vSelf, "model", "Dragula", 0);
	changeentityproperty(vSelf, "name", "Dragula");
	changeentityproperty(getlocalvar("self"), "health", getentityproperty(getlocalvar("self"), "health") + 1);
	}
	        return;
    }

}
