0% found this document useful (0 votes)
239 views94 pages

Trax Spawner Script Overview

Uploaded by

damianmiron855
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
239 views94 pages

Trax Spawner Script Overview

Uploaded by

damianmiron855
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

#### animationscript function main #####

# data/chars/a2/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==0)
{

void self = getlocalvar("self");


void branch = openborvariant("current_branch");
int Status = getglobalvar("aerisetta_scene_done");

{
if(frame==0){
if(branch != "zz_scene_aerisetta_2" && Status <= 3 )
killentity(self);}

if(frame==0){
if(branch == "zz_scene_story_13" || branch == "zz_scene_isabelle_0" || branch
== "stage_isabelle_1" || branch == "stage_isabelle_2" || branch ==
"stage_isabelle_3" || branch == "stage_isabelle_4" || branch == "stage_isabelle_5")
killentity(self);}
}

if(frame==2){
changeentityproperty(self, "hostile", "type_enemy");
}

if(frame==10){
changeentityproperty(self, "hostile", "type_player");
}
if(frame==1)
{
randSound2("supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]");
}
if(frame==14)
{
spawnbind("dust_walking", 0, -10, 1);
}
if(frame==15)
{
spawn01("stabbig", 440, 100, 1);
}
if(frame==21)
{
target(0, 0, 0, 0, 1, 0);
}
if(frame==21)
{
dash();
}
if(frame==22)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==1)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==2)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==3)
{
if(frame==0)
{
dash(10, 10, 10);
}
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==4)
{

void self = getlocalvar("self");

if(frame==2){
changeentityproperty(self, "hostile", "type_enemy");
}

if(frame==10){
changeentityproperty(self, "hostile", "type_player");
}
if(frame==0)
{
attackclose(-100, 100, 100, "ANI_ATTACK4");
}
if(frame==0)
{
target(10, 0, 0, 0, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==1)
{
randSound2("supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]");
}
if(frame==14)
{
spawnbind("dust_walking", 0, -10, 1);
}
if(frame==15)
{
spawn01("stabbig", 440, 100, 1);
}
if(frame==17)
{
target(0, 0, 0, 0, 1, 0);
}
if(frame==17)
{
dash();
}
if(frame==22)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==5)
{

if(frame==7){
void self = getlocalvar("self");
int MP = getentityproperty(self,"mp");
void target = getentityproperty(self,"opponent");
int THP = getentityproperty(target,"health");

if(frame==2){
changeentityproperty(self, "hostile", "type_enemy");
}

if(frame==6){
changeentityproperty(self, "hostile", "type_player");
}
}
if(frame==0)
{
attackclose(-100, 100, 100, "ANI_ATTACK4");
}
if(frame==0)
{
target(10, 0, 0, 0, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==1)
{
target(0, 0, 0, 0, 1);
}
if(frame==1)
{
dash();
}
if(frame==7)
{
target(0, 0, 0, 0, 1, 0);
}
if(frame==7)
{
dash();
}
return;
}

#### animationscript function main #####


# data/chars/a2/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==6)
{

if(frame==0){
void self = getlocalvar("self");
int MP = getentityproperty(self,"mp");
void target = getentityproperty(self,"opponent");
int THP = getentityproperty(target,"health");

// if(THP <= 1 && MP==100){


if(THP <= 1){ // testing
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW3"));
}
}
if(frame==0)
{
target(10, 10, 0, 0, 1);
}
if(frame==0)
{
dash();
}
if(frame==1)
{
target(0, 0, 0, 0, 1);
}
if(frame==1)
{
dash();
}
return;
}
if(animhandle==7)
{
if(frame==0)
{
target(10, 10, 0, 0, 1);
}
if(frame==0)
{
dash();
}
if(frame==1)
{
target(0, 0, 0, 0, 1);
}
if(frame==1)
{
dash();
}
return;
}
if(animhandle==8)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==9)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==10)
{
if(frame==0)
{
dash(10, 10, 10);
}
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==11)
{

void self = getlocalvar("self");

if(frame==0){
changeentityproperty(self, "hostile", "type_enemy");
}

if(frame==10){
changeentityproperty(self, "hostile", "type_player");
}
if(frame==0)
{
attackclose(-100, 100, 100, "ANI_ATTACK4");
}
if(frame==0)
{
target(10, 0, 0, 0, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==1)
{
randSound2("supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]",
"supersound/[Link]", "supersound/[Link]");
}
if(frame==12)
{
spawnbind("dust_walking", 0, -10, 1);
}
if(frame==13)
{
spawn01("stabbig", 440, 100, 1);
}
if(frame==15)
{
target(0, 0, 0, 0, 1, 0);
}
if(frame==15)
{
dash();
}
if(frame==20)
{
setglobalvar("zoomentity", NULL());
}
return;
}

#### animationscript function main #####


# data/chars/0_player/claude/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==12)
{
if(frame==12)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==13)
{

if(frame==1){
void self = getlocalvar("self");

changeentityproperty(self, "mp", 100);


setentityvar(self, "DedSt", 0);
setentityvar(self, "JMox", 0);
setentityvar(self, "JMoz", 0);
setentityvar(self, "Spid", 10); // default speed
setentityvar(self, "RSpid", 10); // default running speed
setentityvar(self, "JSpid", 2); // default jump speed
setLevel(); // sets maxhealth and maxlevel based on current level
}
return;
}
if(animhandle==14)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==4)
{
setglobalvar("zoomentity", NULL());
}
if(frame==8)
{
setglobalvar("zoomentity", NULL());
}
if(frame==15)
{
setglobalvar("zoomentity", NULL());
}
if(frame==18)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==16)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==3)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==17)
{

if(frame==4){
void self = getlocalvar("self");
int y = getentityproperty(self,"a"); //Get entity's altitude
int b = getentityproperty(self, "base"); //Get entity's base

if(y > b){ // Mid air?


changeentityproperty(self, "aiflag", "jumping", 1); // Enable jumping status
changeentityproperty(self, "aiflag", "attacking", 0); // Disable attacking
status
changeentityproperty(self, "takeaction", "common_jump"); // Enters jumping
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
updateframe(self, 3);
} else{
setidle(self);
}
}
if(frame==1)
{
floater(20);
}
return;
}
if(animhandle==18)
{

if(frame==5){
void self = getlocalvar("self");

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


}
if(frame==0)
{
target(10, 10, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==2)
{
target(0, 0, 0, 0, 0);
}
if(frame==2)
{
dash();
}
return;
}
if(animhandle==19)
{

if(frame==5){
void self = getlocalvar("self");

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


}
if(frame==0)
{
target(10, 10, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==2)
{
target(0, 0, 0, 0, 0);
}
if(frame==2)
{
dash();
}
return;
}
if(animhandle==20)
{
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==0)
{
target(10, 10, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==1)
{
target(0, 0, 0, 0, 0);
}
if(frame==1)
{
dash();
}
return;
}
if(animhandle==21)
{
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==0)
{
target(1, 1, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==2)
{
target(0, 0, 0, 0, 0);
}
if(frame==2)
{
dash();
}
if(frame==2)
{
spawn01("dust_landing", 300, 80, 1);
}
if(frame==5)
{
setglobalvar("zoomentity", NULL());
}
if(frame==6)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==22)
{
if(frame==14)
{
aniChange(2, openborconstant("ANI_runattack"));
}
return;
}
if(animhandle==23)
{
if(frame==1)
{
shooter("fireball", 100, 250, 1, 5, 0, 0);
}
return;
}
if(animhandle==24)
{

if(frame==0){
void self = getlocalvar("self");
void MP = getentityproperty(self,"mp");
int iPIndex = getentityproperty(self,"playerindex"); //Get player index
int Dir = getentityproperty(self,"direction");
float Vx = 10;
float Vz = 0;
int Cost = 0; // dash cost

if(Dir == 0){
Vx = -Vx;
}

if(playerkeys(iPIndex, 0, "moveup")){
Vz = -4;
} else if(playerkeys(iPIndex, 0, "movedown")){
Vz = 4;
}

if(playerkeys(iPIndex, 0, "moveleft")){
Vx = -10;
} else if(playerkeys(iPIndex, 0, "moveright")){
Vx = 10;
} else if(!playerkeys(iPIndex, 0, "moveleft") && !playerkeys(iPIndex, 0,
"moveright") && Vz != 0){
Vx = 0;
}

if(Vx < 0){


changeentityproperty(self, "direction", 0);
} else if(Vx > 0){
changeentityproperty(self, "direction", 1);
}

if(MP < Cost){


setidle(self);
}

changeentityproperty(self, "mp", MP - Cost);


changeentityproperty(self, "velocity", Vx, Vz);
}
if(frame==0)
{
spawn01("Perfect_Dodge", 0, 0, 1);
}
if(frame==1)
{
spawner("trail", 0, 0, 0);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==25)
{

if(frame==0){
void self = getlocalvar("self");
int PIndex = getentityproperty(self,"playerindex"); //Get player index
void LKey = playerkeys(PIndex, 0, "moveleft");
void RKey = playerkeys(PIndex, 0, "moveright");

if(RKey){
setentityvar(self, "JMox", 5);
} else if(LKey){
setentityvar(self, "JMox", -5);
} else {
setentityvar(self, "JMox", 0);
}

setentityvar(self, "RunJump", 0);


changeentityproperty(self, "velocity", NULL(), NULL(), 9);
}
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==1)
{
keymove2(1, 0);
}
if(frame==2)
{
keymove2(1, 0);
}
if(frame==3)
{
keymove2(1, 0);
}
if(frame==4)
{
keymove2(1, 0);
}
return;
}
if(animhandle==26)
{

if(frame==1){
void self = getlocalvar("self");

setentityvar(self, "ADash", 0);


setentityvar(self, "ABDash", 0);
setentityvar(self, "DJump", 0);
setentityvar(self, "JMox", 0);
setentityvar(self, "RunJump", 0);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==27)
{

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

changeentityproperty(self, "aiflag", "jumping", 1); // Enable jumping status


changeentityproperty(self, "aiflag", "attacking", 0); // Disable attacking
status
changeentityproperty(self, "takeaction", "common_jump"); // Enters jumping
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
updateframe(self, 3);
}
if(frame==1)
{
spawner("trail", 0, 0, 0);
}
if(frame==1)
{
keymove2(1, 0);
}
return;
}
if(animhandle==28)
{

if(frame==2){
void self = getlocalvar("self");
int Dash = getentityvar(self, "ADash");
int Run = getentityvar(self, "RunJump");

if(Dash==1 && Run==1){


changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else if(Dash==1){
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
setentityvar(self, "ADash", 1);
floater(47);
changeentityproperty(self, "aiflag", "jumping", 1);
changeentityproperty(self, "takeaction", "common_jump");
}
}
if(frame==7){
void self = getlocalvar("self");
int Vx = getentityproperty(self,"xdir");
int Run = getentityvar(self, "RunJump");

setentityvar(self, "JMox", Vx);

if(Run==1){
changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
}
}
if(frame==1)
{
keyflip(0);
}
if(frame==3)
{
spawner("trail", 0, 0, 0);
}
if(frame==3)
{
leaper(8, 1, 0, 1);
}
return;
}
if(animhandle==29)
{

if(frame==1){
void self = getlocalvar("self");
int Dash = getentityvar(self, "ABDash");
int Run = getentityvar(self, "RunJump");

flip();
if(Dash==1 && Run==1){
changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else if(Dash==1){
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
setentityvar(self, "ABDash", 1);
floater(47);
changeentityproperty(self, "aiflag", "jumping", 1);
changeentityproperty(self, "takeaction", "common_jump");
}
}
if(frame==6){
void self = getlocalvar("self");
int Vx = getentityproperty(self,"xdir");
int Run = getentityvar(self, "RunJump");

setentityvar(self, "JMox", Vx);

if(Run==1){
changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
}
}
if(frame==1)
{
keyflip(0);
}
if(frame==3)
{
spawner("trail", 0, 0, 0);
}
if(frame==3)
{
leaper(10, 1, 0, 1);
}
return;
}
if(animhandle==30)
{
if(frame==0)
{
floater(25);
}
if(frame==2)
{
spawner("trail", 0, 0, 0);
}
if(frame==7)
{
spawner("trail", 0, 0, 0);
}
return;
}
if(animhandle==31)
{
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==32)
{
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==33)
{
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==34)
{

if(frame==0)
{
void self = getlocalvar("self");
void e;
clearspawnentry();
setspawnentry("name", "jolted");
e = spawn();
bindentity(e, self,20,1,150,1,4);
}
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==35)
{
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
return;
}
if(animhandle==36)
{
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==37)
{
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==38)
{
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==39)
{
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
return;
}
if(animhandle==40)
{
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==1)
{
setglobalvar("zoomentity", getlocalvar("self"));
}
if(frame==1)
{
setglobalvar("zoomvalue", 384);
}
if(frame==1)
{
setglobalvar("zoomx", 0);
}
if(frame==1)
{
setglobalvar("zoomy", -80);
}
if(frame==1)
{
setglobalvar("zoomvalue", 512);
}
return;
}
if(animhandle==41)
{

if(frame==1){
void self = getlocalvar("self");
int DedSt = getentityvar(self, "DedSt");

if(DedSt!=0){
performattack(self, openborconstant("ANI_FOLLOW25"));
}
}
if(frame==0)
{
dc_animation_bomb(openborconstant("ANI_PAIN99"));
}
if(frame==2)
{
setglobalvar("zoomentity", NULL());
}
if(frame==6)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==42)
{

if(frame==1){
void self = getlocalvar("self");
int DedSt = getentityvar(self, "DedSt");
if(DedSt!=0){
performattack(self, openborconstant("ANI_FOLLOW25"));
}
}
if(frame==0)
{
invincible(1, 1);
}
if(frame==0)
{
dc_animation_bomb(openborconstant("ANI_PAIN97"));
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==5)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==43)
{
if(frame==0)
{
depost(0);
}
if(frame==0)
{
finish(1, 1, 1, 4, 1, 1);
}
if(frame==0)
{
clearGrab();
}
if(frame==1)
{
depost(0);
}
if(frame==1)
{
finish(1, 1, 1, 4, 1, 1);
}
if(frame==1)
{
clearGrab();
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==1)
{
finishlevel()();
}
return;
}
if(animhandle==44)
{

if(frame==1){
void self = getlocalvar("self");
void FX1 = getentityvar(self, "Haste");
void FX2 = getentityvar(self, "Defend");

setentityvar(self, "DedSt", 0);

if(FX1){
killentity(FX1);
}
if(FX2){
killentity(FX2);
}
}
if(frame==1)
{
depost(0);
}
if(frame==1)
{
finish(1, 1, 1, 4, 1, 1);
}
if(frame==1)
{
clearGrab();
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==2)
{
SwapNext(1);
}
return;
}

#### animationscript function main #####


# data/chars/0_player/claude/claude_x_aerisetta.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==46)
{
if(frame==12)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==47)
{
if(frame==1){
void self = getlocalvar("self");

changeentityproperty(self, "mp", 100);


setentityvar(self, "DedSt", 0);
setentityvar(self, "JMox", 0);
setentityvar(self, "JMoz", 0);
setentityvar(self, "Spid", 10); // default speed
setentityvar(self, "RSpid", 10); // default running speed
setentityvar(self, "JSpid", 2); // default jump speed
setLevel(); // sets maxhealth and maxlevel based on current level
}
return;
}
if(animhandle==48)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==4)
{
setglobalvar("zoomentity", NULL());
}
if(frame==8)
{
setglobalvar("zoomentity", NULL());
}
if(frame==15)
{
setglobalvar("zoomentity", NULL());
}
if(frame==18)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==50)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==3)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==51)
{

if(frame==4){
void self = getlocalvar("self");
int y = getentityproperty(self,"a"); //Get entity's altitude
int b = getentityproperty(self, "base"); //Get entity's base

if(y > b){ // Mid air?


changeentityproperty(self, "aiflag", "jumping", 1); // Enable jumping status
changeentityproperty(self, "aiflag", "attacking", 0); // Disable attacking
status
changeentityproperty(self, "takeaction", "common_jump"); // Enters jumping
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
updateframe(self, 3);
} else{
setidle(self);
}
}
if(frame==1)
{
floater(20);
}
return;
}
if(animhandle==52)
{

if(frame==5){
void self = getlocalvar("self");

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


}
if(frame==0)
{
target(10, 10, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==2)
{
target(0, 0, 0, 0, 0);
}
if(frame==2)
{
dash();
}
return;
}
if(animhandle==53)
{

if(frame==5){
void self = getlocalvar("self");

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


}
if(frame==0)
{
target(10, 10, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==2)
{
target(0, 0, 0, 0, 0);
}
if(frame==2)
{
dash();
}
return;
}
if(animhandle==54)
{
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==0)
{
target(10, 10, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==1)
{
target(0, 0, 0, 0, 0);
}
if(frame==1)
{
dash();
}
return;
}
if(animhandle==55)
{
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==0)
{
target(1, 1, 1, 1, 0);
}
if(frame==0)
{
dash();
}
if(frame==2)
{
target(0, 0, 0, 0, 0);
}
if(frame==2)
{
dash();
}
if(frame==2)
{
spawn01("dust_landing", 300, 80, 1);
}
if(frame==5)
{
setglobalvar("zoomentity", NULL());
}
if(frame==6)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==56)
{
if(frame==14)
{
aniChange(2, openborconstant("ANI_runattack"));
}
return;
}
if(animhandle==57)
{
if(frame==1)
{
shooter("fireball", 100, 250, 1, 5, 0, 0);
}
return;
}
if(animhandle==58)
{

if(frame==1){
void self = getlocalvar("self");
void MP = getentityproperty(self,"mp");
int iPIndex = getentityproperty(self,"playerindex"); //Get player index
int Dir = getentityproperty(self,"direction");
float Vx = 5;
float Vz = 0;
int Cost = 0; // dash cost

if(Dir == 0){
Vx = -Vx;
}

if(playerkeys(iPIndex, 0, "moveup")){
Vz = -2;
} else if(playerkeys(iPIndex, 0, "movedown")){
Vz = 2;
}

if(playerkeys(iPIndex, 0, "moveleft")){
Vx = -5;
} else if(playerkeys(iPIndex, 0, "moveright")){
Vx = 5;
} else if(!playerkeys(iPIndex, 0, "moveleft") && !playerkeys(iPIndex, 0,
"moveright") && Vz != 0){
Vx = 0;
}

if(Vx < 0){


changeentityproperty(self, "direction", 0);
} else if(Vx > 0){
changeentityproperty(self, "direction", 1);
}

if(MP < Cost){


setidle(self);
}

changeentityproperty(self, "mp", MP - Cost);


changeentityproperty(self, "velocity", Vx, Vz);
}
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==0)
{
spawn01("Perfect_Dodge", 0, 0, 1);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==59)
{

if(frame==0){
void self = getlocalvar("self");
int PIndex = getentityproperty(self,"playerindex"); //Get player index
void LKey = playerkeys(PIndex, 0, "moveleft");
void RKey = playerkeys(PIndex, 0, "moveright");

if(RKey){
setentityvar(self, "JMox", 5);
} else if(LKey){
setentityvar(self, "JMox", -5);
} else {
setentityvar(self, "JMox", 0);
}

setentityvar(self, "RunJump", 0);


changeentityproperty(self, "velocity", NULL(), NULL(), 9);
}
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==1)
{
keymove2(1, 0);
}
if(frame==2)
{
keymove2(1, 0);
}
if(frame==3)
{
keymove2(1, 0);
}
if(frame==4)
{
keymove2(1, 0);
}
return;
}
if(animhandle==60)
{

if(frame==1){
void self = getlocalvar("self");

setentityvar(self, "ADash", 0);


setentityvar(self, "ABDash", 0);
setentityvar(self, "DJump", 0);
setentityvar(self, "JMox", 0);
setentityvar(self, "RunJump", 0);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==61)
{

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

changeentityproperty(self, "aiflag", "jumping", 1); // Enable jumping status


changeentityproperty(self, "aiflag", "attacking", 0); // Disable attacking
status
changeentityproperty(self, "takeaction", "common_jump"); // Enters jumping
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
updateframe(self, 3);
}
if(frame==1)
{
spawner("trail", 0, 0, 0);
}
if(frame==1)
{
keymove2(1, 0);
}
return;
}
if(animhandle==62)
{

if(frame==2){
void self = getlocalvar("self");
int Dash = getentityvar(self, "ADash");
int Run = getentityvar(self, "RunJump");

if(Dash==1 && Run==1){


changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else if(Dash==1){
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
setentityvar(self, "ADash", 1);
floater(47);
changeentityproperty(self, "aiflag", "jumping", 1);
changeentityproperty(self, "takeaction", "common_jump");
}
}
if(frame==7){
void self = getlocalvar("self");
int Vx = getentityproperty(self,"xdir");
int Run = getentityvar(self, "RunJump");

setentityvar(self, "JMox", Vx);

if(Run==1){
changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
}
}
if(frame==1)
{
keyflip(0);
}
if(frame==3)
{
spawner("trail", 0, 0, 0);
}
if(frame==3)
{
leaper(8, 1, 0, 1);
}
return;
}
if(animhandle==63)
{

if(frame==1){
void self = getlocalvar("self");
int Dash = getentityvar(self, "ABDash");
int Run = getentityvar(self, "RunJump");

flip();
if(Dash==1 && Run==1){
changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else if(Dash==1){
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
setentityvar(self, "ABDash", 1);
floater(47);
changeentityproperty(self, "aiflag", "jumping", 1);
changeentityproperty(self, "takeaction", "common_jump");
}
}
if(frame==6){
void self = getlocalvar("self");
int Vx = getentityproperty(self,"xdir");
int Run = getentityvar(self, "RunJump");

setentityvar(self, "JMox", Vx);

if(Run==1){
changeentityproperty(self, "animation", openborconstant("ANI_RUNJUMP"), 2);
changeentityproperty(self, "animpos", 1);
} else {
changeentityproperty(self, "animation", openborconstant("ANI_JUMP"), 2);
changeentityproperty(self, "animpos", 1);
}
}
if(frame==1)
{
keyflip(0);
}
if(frame==3)
{
spawner("trail", 0, 0, 0);
}
if(frame==3)
{
leaper(10, 1, 0, 1);
}
return;
}
if(animhandle==64)
{
if(frame==0)
{
floater(25);
}
if(frame==2)
{
spawner("trail", 0, 0, 0);
}
if(frame==6)
{
spawner("trail", 0, 0, 0);
}
return;
}
if(animhandle==65)
{
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==66)
{
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==67)
{
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==68)
{

if(frame==0)
{
void self = getlocalvar("self");
void e;
clearspawnentry();
setspawnentry("name", "jolted");
e = spawn();
bindentity(e, self,20,1,150,1,4);
}
if(frame==1)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
if(frame==14)
{
dc_animation_bomb(openborconstant("ANI_FREESPECIAL10"));
}
return;
}
if(animhandle==69)
{
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
return;
}
if(animhandle==70)
{
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==71)
{
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==72)
{
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==73)
{
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
return;
}
if(animhandle==74)
{
if(frame==0)
{
randSound("hero_pain1.wav", "hero_pain2.wav", "hero_pain1.wav");
}
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==1)
{
setglobalvar("zoomentity", getlocalvar("self"));
}
if(frame==1)
{
setglobalvar("zoomvalue", 384);
}
if(frame==1)
{
setglobalvar("zoomx", 0);
}
if(frame==1)
{
setglobalvar("zoomy", -80);
}
if(frame==1)
{
setglobalvar("zoomvalue", 512);
}
return;
}
if(animhandle==75)
{

if(frame==1){
void self = getlocalvar("self");
int DedSt = getentityvar(self, "DedSt");

if(DedSt!=0){
performattack(self, openborconstant("ANI_FOLLOW25"));
}
}
if(frame==0)
{
dc_animation_bomb(openborconstant("ANI_PAIN99"));
}
if(frame==2)
{
setglobalvar("zoomentity", NULL());
}
if(frame==6)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==76)
{

if(frame==1){
void self = getlocalvar("self");
int DedSt = getentityvar(self, "DedSt");

if(DedSt!=0){
performattack(self, openborconstant("ANI_FOLLOW25"));
}
}
if(frame==0)
{
invincible(1, 1);
}
if(frame==0)
{
dc_animation_bomb(openborconstant("ANI_PAIN97"));
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==5)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==77)
{
if(frame==0)
{
depost(0);
}
if(frame==0)
{
finish(1, 1, 1, 4, 1, 1);
}
if(frame==0)
{
clearGrab();
}
if(frame==1)
{
depost(0);
}
if(frame==1)
{
finish(1, 1, 1, 4, 1, 1);
}
if(frame==1)
{
clearGrab();
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==1)
{
finishlevel()();
}
return;
}
if(animhandle==78)
{

if(frame==1){
void self = getlocalvar("self");
void FX1 = getentityvar(self, "Haste");
void FX2 = getentityvar(self, "Defend");

setentityvar(self, "DedSt", 0);

if(FX1){
killentity(FX1);
}
if(FX2){
killentity(FX2);
}
}
if(frame==1)
{
depost(0);
}
if(frame==1)
{
finish(1, 1, 1, 4, 1, 1);
}
if(frame==1)
{
clearGrab();
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==2)
{
SwapNext(1);
}
return;
}

#### animationscript function main #####


# data/chars/0_player/claude/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==80)
{
if(frame==1)
{
dasher(5, 0, 0, 1);
}
return;
}

#### animationscript function main #####


# data/chars/a1/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==85)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==86)
{
if(frame==0)
{
target(1, 1, 1, 1, 1);
}
if(frame==0)
{
dash();
}
if(frame==2)
{
target(0, 0, 0, 0, 1);
}
if(frame==2)
{
dash();
}
return;
}

#### animationscript function main #####


# data/chars/0_player/massager/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==87)
{

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;
}

#### animationscript function main #####


# data/chars/0_player/licker/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==92)
{

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;
}

#### animationscript function main #####


# data/chars/0_player/polish/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==97)
{

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==100)
{
if(frame==1)
{
dasher(1, 0, 0.5, 1);
}
if(frame==5)
{
dasher(-0.5, 0, -0.5, 1);
}
return;
}
if(animhandle==101)
{
if(frame==1)
{
dasher(1, 0, 0.5, 1);
}
if(frame==5)
{
dasher(-0.5, 0, -0.5, 1);
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==102)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==104)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}

#### animationscript function main #####


# data/chars/travel/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==105)
{

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;
}
}

#### animationscript function main #####


# data/chars/misc/numflash/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==110)
{

{
dasher(0.2,3,0);
}
return;
}

#### animationscript function main #####


# data/chars/vfx/breath/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==111)
{
if(frame==0)
{
dasher(0, 0, 1, 1);
}
if(frame==19)
{
suicide();
}
return;
}
if(animhandle==112)
{
if(frame==0)
{
dasher(0.1, 0, 0.3, 1);
}
if(frame==19)
{
suicide();
}
return;
}
if(animhandle==113)
{
if(frame==0)
{
dasher(-0.01, 0, 0.0, 1);
}
if(frame==19)
{
suicide();
}
return;
}
if(animhandle==114)
{
if(frame==0)
{
dasher(0.02, 0, 0.0, 1);
}
if(frame==19)
{
suicide();
}
return;
}
if(animhandle==115)
{
if(frame==0)
{
dasher(0, 0, 0.1, 1);
}
if(frame==19)
{
suicide();
}
return;
}
if(animhandle==116)
{

if(frame>=1){
void self = getlocalvar("self");

if(getglobalvar("html") == 1){
performattack(self, openborconstant("ANI_FOLLOW20"));
}
}
if(frame==19)
{
suicide();
}
return;
}
if(animhandle==117)
{

if(frame>=1){
void self = getlocalvar("self");

if(getglobalvar("html") == 1){
performattack(self, openborconstant("ANI_FOLLOW20"));
}
}
return;
}

}
#### animationscript function main #####
# data/chars/vfx/breath/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==119)
{
if(frame==0)
{
dasher(0, 0, 1, 1);
}
if(frame==19)
{
suicide();
}
return;
}
if(animhandle==120)
{
if(frame==0)
{
dasher(0.1, 0, 0.3, 1);
}
if(frame==19)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/vfx/screenflash/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==121)
{
if(frame==11)
{
suicide();
}
return;
}
if(animhandle==122)
{
if(frame==11)
{
suicide();
}
return;
}

}
#### animationscript function main #####
# data/chars/vfx/screenflash/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==124)
{
if(frame==11)
{
suicide();
}
return;
}
if(animhandle==125)
{
if(frame==11)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/vfx/screenflash/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==126)
{
if(frame==57)
{
suicide();
}
return;
}
if(animhandle==127)
{
if(frame==57)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/vfx/spin/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==128)
{

if(frame>=1){
void self = getlocalvar("self");

if(getglobalvar("html") == 1){
performattack(self, openborconstant("ANI_FOLLOW20"));
}
}
return;
}
if(animhandle==129)
{

if(frame>=1){
void self = getlocalvar("self");

if(getglobalvar("html") == 1){
performattack(self, openborconstant("ANI_FOLLOW20"));
}
}
return;
}
if(animhandle==130)
{

if(frame>=1){
void self = getlocalvar("self");

if(getglobalvar("html") == 1){
performattack(self, openborconstant("ANI_FOLLOW20"));
}
}
return;
}
if(animhandle==131)
{

if(frame>=1){
void self = getlocalvar("self");

if(getglobalvar("html") == 1){
performattack(self, openborconstant("ANI_FOLLOW20"));
}
}
return;
}
if(animhandle==132)
{

if(frame>=1){
void self = getlocalvar("self");

if(getglobalvar("html") == 1){
performattack(self, openborconstant("ANI_FOLLOW20"));
}
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==141)
{

setglobalvar("exp", getglobalvar("exp")+1);
if(frame==11)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/misc/bullets/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==142)
{

if(frame==2){
int P1lv = getglobalvar("level.0");

void self = getlocalvar("self"); //Get calling entity


if(P1lv >= 20){
performattack(self, openborconstant("ANI_FOLLOW10"));
} else if(P1lv >= 20){
performattack(self, openborconstant("ANI_FOLLOW10"));
} else if(P1lv >= 18){
performattack(self, openborconstant("ANI_FOLLOW10"));
} else if(P1lv >= 16){
performattack(self, openborconstant("ANI_FOLLOW9"));
} else if(P1lv >= 14){
performattack(self, openborconstant("ANI_FOLLOW8"));
} else if(P1lv >= 12){
performattack(self, openborconstant("ANI_FOLLOW7"));
} else if(P1lv >= 10){
performattack(self, openborconstant("ANI_FOLLOW6"));
} else if(P1lv >= 8){
performattack(self, openborconstant("ANI_FOLLOW5"));
} else if(P1lv >= 6){
performattack(self, openborconstant("ANI_FOLLOW4"));
} else if(P1lv >= 4){
performattack(self, openborconstant("ANI_FOLLOW3"));
} else if(P1lv >= 2){
performattack(self, openborconstant("ANI_FOLLOW2"));
} else if(P1lv >= 0){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==1)
{
changeentityproperty(getlocalvar("self"), "owner", getplayerproperty(0,
"entity"));
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==153)
{

if(frame>=1){
void self = getlocalvar("self");
void Player = getentityproperty(self, "parent");
int Sp = getentityvar(Player, "Spid");
int JSp = getentityvar(Player, "JSpid");
int RSp = getentityvar(Player, "RSpid");

if(Sp==NULL()){
Sp = getentityproperty(Player, "speed");
setentityvar(Player, "Spid", Sp);
}

if(JSp==NULL()){
JSp = getentityproperty(Player, "jumpspeed");
setentityvar(Player, "JSpid", JSp);
}

if(RSp==NULL()){
RSp = getentityproperty(Player, "running", "speed");
setentityvar(Player, "RSpid", RSp);
}

if(frame==1){
changeentityproperty(Player, "speed", Sp);
changeentityproperty(Player, "jumpspeed", JSp);
changeentityproperty(Player, "running", RSp);
changeentityproperty(Player, "edelay", 1, 1, 2, 300, 2, 300); //
}
if(frame==2){
changeentityproperty(Player, "speed", Sp*1.2);
changeentityproperty(Player, "jumpspeed", JSp*1.2);
changeentityproperty(Player, "running", RSp*2);
changeentityproperty(Player, "edelay", 1, 0.5, 2, 300, 2, 300); //
}
if(frame==8 || frame==10 || frame==12 || frame==14 || frame==16){
changeentityproperty(Player, "speed", Sp*1.2);
changeentityproperty(Player, "jumpspeed", JSp*1.2);
changeentityproperty(Player, "running", RSp*2);
changeentityproperty(Player, "edelay", 1, 0.5, 2, 300, 2, 300); //
}
if(frame==19){
changeentityproperty(Player, "speed", Sp);
changeentityproperty(Player, "jumpspeed", JSp);
changeentityproperty(Player, "running", RSp);
changeentityproperty(Player, "edelay", 1, 1, 2, 300, 2, 300); //

killentity(self); //suicide!
}
}
if(frame==18)
{
looper(8, 19);
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==155)
{

if(frame>=1){
void self = getlocalvar("self");
void Player = getentityproperty(self, "parent");
int Sp = getentityvar(Player, "Spid");
int JSp = getentityvar(Player, "JSpid");
int RSp = getentityvar(Player, "RSpid");

if(Sp==NULL()){
Sp = getentityproperty(Player, "speed");
setentityvar(Player, "Spid", Sp);
}

if(JSp==NULL()){
JSp = getentityproperty(Player, "jumpspeed");
setentityvar(Player, "JSpid", JSp);
}

if(RSp==NULL()){
RSp = getentityproperty(Player, "running", "speed");
setentityvar(Player, "RSpid", RSp);
}

if(frame==1){
changeentityproperty(Player, "speed", Sp);
changeentityproperty(Player, "jumpspeed", JSp);
changeentityproperty(Player, "running", RSp);
changeentityproperty(Player, "edelay", 1, 1, 2, 200, 2, 200);
}
if(frame==2){
changeentityproperty(Player, "speed", Sp*2);
changeentityproperty(Player, "jumpspeed", JSp*2);
changeentityproperty(Player, "running", RSp*2);
changeentityproperty(Player, "edelay", 1, 0.5, 2, 200, 2, 200);
}
if(frame==4){
changeentityproperty(Player, "speed", Sp);
changeentityproperty(Player, "jumpspeed", JSp);
changeentityproperty(Player, "running", RSp);
changeentityproperty(Player, "edelay", 1, 1, 2, 200, 2, 200);

killentity(self); //suicide!
}
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==156)
{

if(frame==1){
void vEntity; //target entity placeholder
int iEntity; //entity enumeration holder
int iType; //entity type
int iMax = openborvariant("count_entities"); //entity count
void Spawn;

//enumerate and loop through entity collection.


for(iEntity=0; iEntity<iMax; iEntity++){
vEntity = getentity(iEntity); //Get target entity from loop
iType = getentityproperty(vEntity, "type"); //Get target type

//enemy type?
if(iType == openborconstant("TYPE_ENEMY")){
Spawn = spawn01("Slown", 0, 10, 0);
changeentityproperty(Spawn, "parent", vEntity);
bindentity(Spawn, vEntity, 0, 0, 20, 0, 0);
}
}
}
if(frame==2){
void self = getlocalvar("self");

killentity(self); //suicide!
}
if(frame==0)
{
spawn06("Dark", 800, 0, 800);
}
return;
}

#### animationscript function main #####


# data/chars/0_player/claude/perfect_dodge.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==158)
{
if(frame==0)
{
nograb();
}
if(frame==5)
{
suicide();
}
return;
}
if(animhandle==159)
{
if(frame==5)
{
suicide();
}
return;
}
if(animhandle==160)
{
if(frame==0)
{
spawn01("EnSlow", 0, 0, 0);
}
if(frame==3)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==161)
{

if(frame > 1 && frame < 16){


void self = getlocalvar("self");
void T = getentityproperty(self,"parent");

if(T){
int eTime = openborvariant("elapsed_time");

changeentityproperty(T, "frozen", 1);


changeentityproperty(T, "freezetime", eTime + 8);
}
}
if(frame==16)
{
looper(6, 5);
}
if(frame==18)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==163)
{

if(getglobalvar("CoinsC") == NULL()){
setglobalvar("CoinsC", 0);
}
if(getglobalvar("CoinsC") != NULL()){
setglobalvar("CoinsC", getglobalvar("CoinsC")+1);
}
if(frame==27)
{
suicide();
}
return;
}
if(animhandle==164)
{

void self = getlocalvar("self");


float Vx = getentityproperty(self,"xdir");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "a");
int z = getentityproperty(self, "z");
int C;
if(Vx > 0){
C = 30;
} else {
C = -30;
}

if(y <= checkwall(x+C,z)){


changeentityproperty(self, "velocity", -Vx);
}
return;
}
if(animhandle==165)
{

void self = getlocalvar("self");


float Vx = getentityproperty(self,"xdir");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "a");
int z = getentityproperty(self, "z");
int C;

if(Vx > 0){


C = 10;
} else {
C = -10;
}

if(y <= checkwall(x+C,z)){


changeentityproperty(self, "velocity", -Vx);
}
return;
}

#### animationscript function main #####


# data/chars/misc/primal_gem/primal_gem.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==166)
{

if(getglobalvar("PrimalGemC") == NULL()){
setglobalvar("PrimalGemC", 0);
}
if(getglobalvar("PrimalGemC") != NULL()){
setglobalvar("PrimalGemC", getglobalvar("PrimalGemC")+1);
}
return;
}

#### animationscript function main #####


# data/chars/misc/essence/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==169)
{

void self = getlocalvar("self");


float Vx = getentityproperty(self,"xdir");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "a");
int z = getentityproperty(self, "z");
int C;

if(Vx > 0){


C = 10;
} else {
C = -10;
}

if(y <= checkwall(x+C,z)){


changeentityproperty(self, "velocity", -Vx);
}
return;
}
if(animhandle==170)
{

void self = getlocalvar("self");


float Vx = getentityproperty(self,"xdir");
int x = getentityproperty(self, "x");
int y = getentityproperty(self, "a");
int z = getentityproperty(self, "z");
int C;

if(Vx > 0){


C = 10;
} else {
C = -10;
}

if(y <= checkwall(x+C,z)){


changeentityproperty(self, "velocity", -Vx);
}
return;
}

#### animationscript function main #####


# data/chars/misc/essence/essence_drop.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==171)
{
if(frame==2){
int iPlIndex = getlocalvar("player"); //Get calling player
void vSelf = getplayerproperty(iPlIndex , "entity"); //Get calling entity
int hits = getentityproperty(vSelf, "rush_count");

void self = getlocalvar("self"); //Get calling entity


if(hits >= 100){
performattack(self, openborconstant("ANI_FOLLOW12"));
} else if(hits >= 90){
performattack(self, openborconstant("ANI_FOLLOW11"));
} else if(hits >= 80){
performattack(self, openborconstant("ANI_FOLLOW10"));
} else if(hits >= 70){
performattack(self, openborconstant("ANI_FOLLOW9"));
} else if(hits >= 60){
performattack(self, openborconstant("ANI_FOLLOW8"));
} else if(hits >= 50){
performattack(self, openborconstant("ANI_FOLLOW7"));
} else if(hits >= 40){
performattack(self, openborconstant("ANI_FOLLOW6"));
} else if(hits >= 30){
performattack(self, openborconstant("ANI_FOLLOW5"));
} else if(hits >= 20){
performattack(self, openborconstant("ANI_FOLLOW4"));
} else if(hits >= 10){
performattack(self, openborconstant("ANI_FOLLOW3"));
} else if(hits >= 5){
performattack(self, openborconstant("ANI_FOLLOW2"));
} else if(hits >= 0){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
return;
}
if(animhandle==172)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
suicide();
}
return;
}
if(animhandle==173)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==174)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==5)
{
suicide();
}
return;
}
if(animhandle==175)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 30, 2);
}
if(frame==6)
{
suicide();
}
return;
}
if(animhandle==176)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 30, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 40, 2);
}
if(frame==7)
{
suicide();
}
return;
}
if(animhandle==177)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 30, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 40, 2);
}
if(frame==6)
{
spawn01("Essence", 0, 50, 2);
}
if(frame==8)
{
suicide();
}
return;
}
if(animhandle==178)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 30, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 40, 2);
}
if(frame==6)
{
spawn01("Essence", 0, 50, 2);
}
if(frame==7)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==9)
{
suicide();
}
return;
}
if(animhandle==179)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 30, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==6)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==7)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==10)
{
suicide();
}
return;
}
if(animhandle==180)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==6)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==7)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==9)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==11)
{
suicide();
}
return;
}
if(animhandle==181)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==6)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==7)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==9)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==10)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==12)
{
suicide();
}
return;
}
if(animhandle==182)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==6)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==7)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==9)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==10)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==11)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==183)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==4)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==5)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==6)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==7)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==9)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==10)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==11)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==12)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==14)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/misc/essence/coin_drop.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==184)
{

if(frame==2){
int iPlIndex = getlocalvar("player"); //Get calling player
void vSelf = getplayerproperty(iPlIndex , "entity"); //Get calling entity
int hits = getentityproperty(vSelf, "rush_count");

void self = getlocalvar("self"); //Get calling entity


if(hits >= 100){
performattack(self, openborconstant("ANI_FOLLOW12"));
} else if(hits >= 90){
performattack(self, openborconstant("ANI_FOLLOW11"));
} else if(hits >= 80){
performattack(self, openborconstant("ANI_FOLLOW10"));
} else if(hits >= 70){
performattack(self, openborconstant("ANI_FOLLOW9"));
} else if(hits >= 60){
performattack(self, openborconstant("ANI_FOLLOW8"));
} else if(hits >= 50){
performattack(self, openborconstant("ANI_FOLLOW7"));
} else if(hits >= 40){
performattack(self, openborconstant("ANI_FOLLOW6"));
} else if(hits >= 30){
performattack(self, openborconstant("ANI_FOLLOW5"));
} else if(hits >= 20){
performattack(self, openborconstant("ANI_FOLLOW4"));
} else if(hits >= 10){
performattack(self, openborconstant("ANI_FOLLOW3"));
} else if(hits >= 5){
performattack(self, openborconstant("ANI_FOLLOW2"));
} else if(hits >= 0){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==1)
{
spawn01("flash1", 0, 0, 2);
}
return;
}
if(animhandle==185)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==3)
{
suicide();
}
return;
}
if(animhandle==186)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 10, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==187)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 10, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 20, 2);
}
if(frame==5)
{
suicide();
}
return;
}
if(animhandle==188)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 10, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 20, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 30, 2);
}
if(frame==6)
{
suicide();
}
return;
}
if(animhandle==189)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 10, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 20, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 30, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 40, 2);
}
if(frame==7)
{
suicide();
}
return;
}
if(animhandle==190)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 10, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 20, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 30, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 40, 2);
}
if(frame==6)
{
spawn01("Coin", 0, 50, 2);
}
if(frame==8)
{
suicide();
}
return;
}
if(animhandle==191)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 10, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 20, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 30, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 40, 2);
}
if(frame==6)
{
spawn01("Coin", 0, 50, 2);
}
if(frame==7)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==9)
{
suicide();
}
return;
}
if(animhandle==192)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 10, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 20, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 30, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==6)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==7)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==8)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==10)
{
suicide();
}
return;
}
if(animhandle==193)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==6)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==7)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==8)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==9)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==11)
{
suicide();
}
return;
}
if(animhandle==194)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==6)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==7)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==8)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==9)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==10)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==12)
{
suicide();
}
return;
}
if(animhandle==195)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==6)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==7)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==8)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==9)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==10)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==11)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==196)
{
if(frame==1)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==2)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==3)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==4)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==5)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==6)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==7)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==8)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==9)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==10)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==11)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==12)
{
spawn01("Coin", 0, 0, 2);
}
if(frame==14)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==197)
{

void self = getlocalvar("self");


int Health = getentityproperty(self, "health");

if(frame==1){
changeentityproperty(self, "health", Health-5);
if (Health <= 0){
killentity(self);
}
}
return;
}
if(animhandle==199)
{
if(frame==1)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/dialogues/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==208)
{
if(frame==1)
{
spawnA("story", 0, 0, 0, "HowToPlay");
}
return;
}

#### animationscript function main #####


# data/chars/dialogues/vfx/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==209)
{
if(frame==21)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/dialogues/vfx/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==210)
{
if(frame==12)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/dialogues/vfx/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==211)
{
if(frame==1)
{
suicide();
}
if(frame==2)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/misc/grab/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==212)
{

if(frame>=5){
void self = getlocalvar("self");
void energia = getentityproperty(self,"health"); // pega energia/mp
atual
changeentityproperty(self, "health", energia-3);// diminui energia/mp
}
return;
}
if(animhandle==214)
{

void self = getlocalvar("self");


void atk = getentityproperty(self,"parent");
void vtm = getentityproperty(atk, "opponent");
changeentityproperty(self, "health",-4);

if(getentityproperty(vtm, "type")==openborconstant("TYPE_NPC"))
{
killentity(self);
}
return;
}

#### animationscript function main #####


# data/chars/misc/grab/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==215)
{

if(frame>=5){
void self = getlocalvar("self");
void energia = getentityproperty(self,"health"); // pega energia/mp
atual
changeentityproperty(self, "health", energia-2);// diminui energia/mp
}
return;
}
if(animhandle==217)
{

void self = getlocalvar("self");


void atk = getentityproperty(self,"parent");
void vtm = getentityproperty(atk, "opponent");
changeentityproperty(self, "health",-5);

if(getentityproperty(vtm, "type")==openborconstant("TYPE_NPC"))
{
killentity(self);
}
return;
}

#### animationscript function main #####


# data/chars/misc/grab/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==218)
{

void self = getlocalvar("self");


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

if(frame==5 && P1){


void PAnim = getentityproperty(P1, "animationID");

if(PAnim!=openborconstant("ANI_FALL7")){
killentity(self);
}
}
return;
}

#### animationscript function main #####


# data/chars/misc/menu/bonus_off.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==223)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
char Name = getentityproperty(self,"name");
jumptobranch(Name, 1);
}
return;
}

#### animationscript function main #####


# data/bgs/konsol/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==227)
{

if(frame==1){
void self = getlocalvar("self");
int x = getentityproperty(self, "x");
int z = getentityproperty(self, "z");
int Step = getentityproperty(self, "grabforce");

int H = checkwall(x+Step,z);

if(H <= 0){


int SFX = loadsample("data/sounds/[Link]");

playsample(SFX, 0, 120, 120, 100, 0);


changeentityproperty(self, "position", x + Step);
}
}
return;
}
if(animhandle==228)
{

if(frame==1){
void self = getlocalvar("self");
int x = getentityproperty(self, "x");
int z = getentityproperty(self, "z");
int Step = getentityproperty(self, "grabforce");

int H = checkwall(x-Step,z);

if(H <= 0){


int SFX = loadsample("data/sounds/[Link]");

playsample(SFX, 0, 120, 120, 100, 0);


changeentityproperty(self, "position", x - Step);
}
}
return;
}
if(animhandle==229)
{

if(frame==1){
void self = getlocalvar("self");
int x = getentityproperty(self, "x");
int z = getentityproperty(self, "z");
int Leap = getentityproperty(self, "antigrab");
int ZMin = openborvariant("PLAYER_MIN_Z");

int H = checkwall(x,z - Leap);

if(z - Leap > ZMin && H <= 0){


int SFX = loadsample("data/sounds/[Link]");

playsample(SFX, 0, 120, 120, 100, 0);


changeentityproperty(self, "position", x, z - Leap);
}
}
return;
}
if(animhandle==230)
{

if(frame==1){
void self = getlocalvar("self");
int x = getentityproperty(self, "x");
int z = getentityproperty(self, "z");
int Leap = getentityproperty(self, "antigrab");
int ZMax = openborvariant("PLAYER_MAX_Z");

int H = checkwall(x,z + Leap);

if(z + Leap < ZMax && H <= 0){


int SFX = loadsample("data/sounds/[Link]");

playsample(SFX, 0, 120, 120, 100, 0);


changeentityproperty(self, "position", x, z + Leap);
}
}
return;
}

#### animationscript function main #####


# data/levels/menu/stage_menu.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==234)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
int number = getentityproperty(self, "mp"); //USES MP AS THE ENTITY NUMBER,
AVOID ANY POSSIBLE DAMAGE GLITCH
int adjust = 3; //USED TO JUMP THE FIRST FRAMES FROM 0 TO 3
updateframe(self, number+adjust); //cHANGE TO THE DESIRED FRAME ACCORDING
TO THE ENTITY NUMBER
}
return;
}
if(animhandle==235)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
int number = getentityproperty(self, "mp"); //USES MP AS THE ENTITY NUMBER,
AVOID ANY POSSIBLE DAMAGE GLITCH
int adjust = 3; //USED TO JUMP THE FIRST FRAMES FROM 0 TO 3
updateframe(self, number+adjust); //cHANGE TO THE DESIRED FRAME ACCORDING
TO THE ENTITY NUMBER
}
return;
}
if(animhandle==236)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
void number = getentityproperty(self, "mp")+"";
performattack(self, openborconstant("ANI_FOLLOW"+number)); //cHANGE TO THE
CORRESPONDING FOLLOW NUMBER
}
return;
}
if(animhandle==237)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
char Name = getentityproperty(self,"name");
jumptobranch(Name, 1);
}
return;
}
if(animhandle==238)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
char Name = getentityproperty(self,"name");
jumptobranch(Name, 1);
}
return;
}
if(animhandle==239)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
char Name = getentityproperty(self,"name");
jumptobranch(Name, 1);
}
return;
}

}
#### animationscript function main #####
# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==241)
{

void self = getlocalvar("self");


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

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


float z = getentityproperty(self, "z");
int Health = getentityproperty(self,"health");
int Dir = getentityproperty(self,"direction");
char Name = getentityproperty(self,"name");
float Tx1 = getentityproperty(P1, "x");
float Tz1 = getentityproperty(P1, "z");
float Tx2 = getentityproperty(P2, "x");
float Tz2 = getentityproperty(P2, "z");
int Rx; int Rz;

float Disx1 = Tx1 - x;


float Disz1 = Tz1 - z;
float Disx2 = Tx2 - x;
float Disz2 = Tz2 - z;

if(Disx1 < 0){


Disx1 = -Disx1;
}

if(Disx2 < 0){


Disx2 = -Disx2;
}

if(Disz1 < 0){


Disz1 = -Disz1;
}

if(Disz2 < 0){


Disz2 = -Disz2;
}

if(frame >= 1){


if(Disx1 <= 60 && Disz1 <= 60){
Rx = Health/10000;
Rz = Health%10000;

setglobalvar("xT", Rx);
setglobalvar("zT", Rz);
setglobalvar("Dir", Dir);
jumptobranch(Name, 1);
} else if(Disx2 <= 50 && Disz2 <= 50){
Rx = Health/10000;
Rz = Health%10000;
setglobalvar("xT", Rx);
setglobalvar("zT", Rz);
setglobalvar("Dir", Dir);
jumptobranch(Name, 1);
}
}
return;
}
if(animhandle==242)
{

void self = getlocalvar("self");


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

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


float z = getentityproperty(self, "z");
int Health = getentityproperty(self,"health");
int Dir = getentityproperty(self,"direction");
char Name = getentityproperty(self,"name");
float Tx1 = getentityproperty(P1, "x");
float Tz1 = getentityproperty(P1, "z");
float Tx2 = getentityproperty(P2, "x");
float Tz2 = getentityproperty(P2, "z");
int Rx; int Rz;

float Disx1 = Tx1 - x;


float Disz1 = Tz1 - z;
float Disx2 = Tx2 - x;
float Disz2 = Tz2 - z;

if(Disx1 < 0){


Disx1 = -Disx1;
}

if(Disx2 < 0){


Disx2 = -Disx2;
}

if(Disz1 < 0){


Disz1 = -Disz1;
}

if(Disz2 < 0){


Disz2 = -Disz2;
}

if(frame >= 1){


if(Disx1 <= 50 && Disz1 <= 50){
Rx = Health/10000;
Rz = Health%10000;

setglobalvar("xT", Rx);
setglobalvar("zT", Rz);
setglobalvar("Dir", Dir);
jumptobranch(Name, 1);
} else if(Disx2 <= 50 && Disz2 <= 50){
Rx = Health/10000;
Rz = Health%10000;
setglobalvar("xT", Rx);
setglobalvar("zT", Rz);
setglobalvar("Dir", Dir);
jumptobranch(Name, 1);
}
}
return;
}
if(animhandle==243)
{

void self = getlocalvar("self");


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

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


float z = getentityproperty(self, "z");
int Health = getentityproperty(self,"health");
int Dir = getentityproperty(self,"direction");
char Name = getentityproperty(self,"name");
float Tx1 = getentityproperty(P1, "x");
float Tz1 = getentityproperty(P1, "z");
float Tx2 = getentityproperty(P2, "x");
float Tz2 = getentityproperty(P2, "z");
int Rx; int Rz;

float Disx1 = Tx1 - x;


float Disz1 = Tz1 - z;
float Disx2 = Tx2 - x;
float Disz2 = Tz2 - z;

if(Disx1 < 0){


Disx1 = -Disx1;
}

if(Disx2 < 0){


Disx2 = -Disx2;
}

if(Disz1 < 0){


Disz1 = -Disz1;
}

if(Disz2 < 0){


Disz2 = -Disz2;
}

if(frame >= 1){


if(Disx1 <= 50 && Disz1 <= 50){
Rx = Health/10000;
Rz = Health%10000;

setglobalvar("xT", Rx);
setglobalvar("zT", Rz);
setglobalvar("Dir", Dir);
jumptobranch(Name, 1);
} else if(Disx2 <= 50 && Disz2 <= 50){
Rx = Health/10000;
Rz = Health%10000;

setglobalvar("xT", Rx);
setglobalvar("zT", Rz);
setglobalvar("Dir", Dir);
jumptobranch(Name, 1);
}
}
return;
}

#### animationscript function main #####


# data/chars/misc/story/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==247)
{
if(frame==1)
{
talk();
}
return;
}
if(animhandle==248)
{
if(frame==1)
{
sendDialogMsg();
}
return;
}

#### animationscript function main #####


# data/chars/misc/essence/pull_essence.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==249)
{

void vSelf = getlocalvar("self"); //caller.


void P1 = getplayerproperty(0, "entity");
void vEntity; //target entity placeholder.
int iEntity; //entity enumeration holder.
int iName; //entity name.
int iMax = openborvariant("count_entities"); //entity count.
int dx = 0; int dz = 0; int S = 2; // S = 2 = pulling speed
int Ex; int Ez; int Px; int Pz;

if(P1){
Px = getentityproperty(P1, "x");
Pz = getentityproperty(P1, "z");

//enumerate and loop through entity collection.


for(iEntity=0; iEntity<iMax; iEntity++){
vEntity = getentity(iEntity); //Get target entity from current loop.
iName = getentityproperty(vEntity, "defaultname"); //Get target name

//coin?
if(iName == "Essence"){
Ex = getentityproperty(vEntity, "x");
Ez = getentityproperty(vEntity, "z");

if(Ex > Px){


dx = -S;
} else if(Ex < Px){
dx = S;
}

if(Ez > Pz){


dz = -S*0.5;
} else if(Ez < Pz){
dz = S*0.5;
}

changeentityproperty(vEntity, "position", Ex+dx, Ez+dz);


}
}
}
return;
}

#### animationscript function main #####


# data/chars/1_enemies/forest_nymph/kiss/forest_kiss.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==251)
{

if(frame==2){
void self = getlocalvar("self");
int result = 1; //RESULT START FROM 1 ONCE USUALLY THE ENGINE CONSIDER A
RANGE FROM 0 TO THE VALUE-1 (EX: rand()%10 will be 0-9)
int maxFollows = 20; //fILL THE MAX FOLLOW POSSIBILITIES FOR THIS ENTITY
int rand = rand()%maxFollows;

if(rand < 0){rand = rand*(-1);} //aVOID NEGATIVE NUMBERS


if(rand != 0){result = result+rand;} //aVOID ZERO VALUE, ONCE THERE'S NO
FOLLOW0
performattack(self, openborconstant("ANI_FOLLOW"+result)); //cHANGE THE
FOLLOW ANIMATION
}
return;
}
if(animhandle==253)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==254)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==255)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==256)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==257)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==258)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==259)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==260)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==261)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==262)
{
if(frame==1)
{
dasher(0, 2, 0, 0);
}
if(frame==13)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/1_enemies/forest_nymph/forest_nymph.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==263)
{
if(frame==11)
{
spawn01("dust", -20, 1, 1);
}
return;
}
if(animhandle==264)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==1)
{
clearLooper();
}
return;
}
if(animhandle==265)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
dasher(0, 0, 0, 0);
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==1)
{
clearLooper();
}
return;
}
if(animhandle==266)
{

{
if(frame==1){
setglobalvar("Nymph_Sex", getglobalvar("Nymph_Sex")+1);
}
}
if(frame==1)
{
spawnA("story", 0, 0, 0, "zz_forest_nymph_lose_1");
}
if(frame==2)
{
spawn01("Primal_Gem", 0, 100, 0);
}
return;
}
if(animhandle==267)
{
if(frame==1)
{
randSound("estrelle_pain1.wav", "estrelle_pain2.wav",
"estrelle_pain3.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
return;
}
if(animhandle==268)
{
if(frame==1)
{
randSound("estrelle_pain1.wav", "estrelle_pain2.wav",
"estrelle_pain3.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
return;
}
if(animhandle==269)
{
if(frame==1)
{
randSound("estrelle_pain1.wav", "estrelle_pain2.wav",
"estrelle_pain3.wav");
}
if(frame==2)
{
killParent();
}
if(frame==3)
{
killParent();
}
if(frame==7)
{
killParent();
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
return;
}
if(animhandle==270)
{
if(frame==1)
{
randSound("estrelle_pain1.wav", "estrelle_pain2.wav",
"estrelle_pain3.wav");
}
if(frame==11)
{
spawn01("ground1", 0, 0, -1);
}
if(frame==14)
{
spawn01("dust_landing", 275, 80, 1);
}
return;
}
if(animhandle==271)
{

void self = getlocalvar("self");

if(frame==0){
changeentityproperty(self, "defense", openborconstant("ATK_NORMAL1"), 0, 999);
changeentityproperty(self, "defense", openborconstant("ATK_NORMAL3"), 0, 999);
}

if(frame==2){
changeentityproperty(self, "defense", openborconstant("ATK_NORMAL1"), 1, 0);
changeentityproperty(self, "defense", openborconstant("ATK_NORMAL3"), 1, 0);
}
if(frame==1)
{
spawn01("Essence_Drop", 150, 150, 2);
}
if(frame==15)
{
hpgain(100);
}
return;
}
if(animhandle==272)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
damageentity(self, self, 0, 1, openborconstant("ATK_NORMAL"));
}
}
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==273)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
damageentity(self, self, 0, 1, openborconstant("ATK_NORMAL"));
}
}
if(frame==10)
{
spawn01("dust", -20, 1, 1);
}
return;
}
if(animhandle==274)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
damageentity(self, self, 0, 1, openborconstant("ATK_NORMAL"));
}
}
if(frame==10)
{
spawn01("dust", -20, 1, 1);
}
return;
}
if(animhandle==275)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
damageentity(self, self, 0, 1, openborconstant("ATK_NORMAL"));
}
}
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==1)
{
spawn01("wind1", 30, 0, 3);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
return;
}
if(animhandle==276)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
damageentity(self, self, 0, 1, openborconstant("ATK_NORMAL"));
}
}
if(frame==0)
{
dasher(-1.3, 0, 0, 1);
}
if(frame==1)
{
spawn01("dust", -20, 1, 1);
}
if(frame==11)
{
dasher(-0.4, 0, 0, 1);
}
if(frame==12)
{
dasher(-0.2, 0, 0, 1);
}
if(frame==12)
{
spawn01("dust", -20, 1, 1);
}
return;
}
if(animhandle==277)
{

if(frame==1){
void self = getlocalvar("self");

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


}
if(frame==1)
{
spawnbind2("Lust", -25, 280, 15, 5);
}
return;
}
if(animhandle==278)
{

if(frame>=1){
void self = getlocalvar("self");
int Health = getentityproperty(self,"health");

if(Health<=1){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
return;
}
if(animhandle==279)
{

if(frame==1){
void self = getlocalvar("self");

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


}
return;
}
if(animhandle==280)
{
if(frame==0)
{
floater(60);
}
if(frame==1)
{
dasher(20, 0, 0, 1);
}
return;
}
if(animhandle==281)
{
if(frame==1){
void self = getlocalvar("self");
void target = getentityproperty(self, "opponent");
char TName = getentityproperty(target, "name");

if(TName=="Perfect_Dodge"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW9"));
} else {
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW8"));
}
}
return;
}
if(animhandle==282)
{
if(frame==0)
{
dasher(0, 0, 0, 0);
}
if(frame==0)
{
enemy_bomb(openborconstant("ANI_PAIN98"));
}
if(frame==1)
{
spawn06("lips", 800, 0, 800, 1);
}
if(frame==2)
{
slamstart2();
}
if(frame==2)
{
spawngrab("grab1", 1300, 600, 0, 60, 1, 8);
}
if(frame==2)
{
position(0, 35, 73, -1, 0);
}
if(frame==3)
{
position(0, 35, 73, -1, 0);
}
if(frame==4)
{
position(0, 35, 73, -1);
}
if(frame==5)
{
hurt(3);
}
if(frame==5)
{
spawn01("flash", 30, 330, 1);
}
if(frame==5)
{
spawn02a("Forest_Kiss", 800, 0, -400, 1);
}
if(frame==5)
{
position(0, 35, 73, -1, 0);
}
if(frame==6)
{
position(0, 35, 74, -1, 0);
}
if(frame==7)
{
position(0, 35, 75, -1, 0);
}
if(frame==8)
{
position(0, 35, 74, -1, 0);
}
if(frame==9)
{
position(0, 35, 73, -1, 0);
}
if(frame==9)
{
looper(5, 10);
}
if(frame==10)
{
position(0, 35, 73, -1, 0);
}
if(frame==11)
{
anichange("ANI_FOLLOW2", 0);
}
return;
}
if(animhandle==283)
{
if(frame==0)
{
dasher(5, 0, 0, 1);
}
if(frame==2)
{
dasher(0.1, 0, 0, 1);
}
return;
}
if(animhandle==284)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==4)
{
spawn02a("Forest_Kiss", 800, 0, -400, 1);
}
if(frame==22)
{
depost(0);
}
if(frame==22)
{
throw(100, 1, -20, 0, 0, 0, 0);
}
if(frame==22)
{
clearGrab();
}
if(frame==22)
{
killgun(8, 0);
}
if(frame==22)
{
floater(60);
}
return;
}
if(animhandle==285)
{
if(frame==0)
{
slamstart2();
}
if(frame==1)
{
spawngrab("grab1", 1300, 600, 0, 60, 1, 8);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==1)
{
position(4, 0, 21, -1, 1);
}
return;
}
if(animhandle==286)
{
if(frame==0)
{
target(1, 1, 1, 1, 1);
}
if(frame==0)
{
dash();
}
return;
}
if(animhandle==288)
{

void self = getlocalvar("self");


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

if(frame==5 && P1){


void Panim = getentityproperty(P1, "animationID");
if(Panim!=openborconstant("ANI_FALL7")){
changeentityproperty(self, "animation", openborconstant("ANI_PAIN97"));
}
}
if(frame==0)
{
target(-1, 1, 1, 1, 1);
}
if(frame==0)
{
dash();
}
return;
}
if(animhandle==289)
{

void self = getlocalvar("self");


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

if(frame==5 && P1){


void Panim = getentityproperty(P1, "animationID");

if(Panim!=openborconstant("ANI_RISE")){
changeentityproperty(self, "animation", openborconstant("ANI_PAIN98"));
}
}
if(frame==0)
{
target(3, 1, 1, 1, 1);
}
if(frame==0)
{
dash();
}
return;
}

#### animationscript function main #####


# data/chars/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==294)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
char Name = getentityproperty(self,"name");
jumptobranch(Name, 1);
}
return;
}
}

#### animationscript function main #####


# data/chars/1_enemies/veronica/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==297)
{

if(frame>=2 && frame<=3){


void self = getlocalvar("self");
char Name = getentityproperty(self,"name");
jumptobranch(Name, 1);
}
return;
}

#### animationscript function main #####


# data/chars/vfx/drain/drain_1000.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==298)
{
if(frame==1)
{
spawnA("story", 0, 0, 0, "drain_1000");
}
if(frame==13)
{
suicide();
}
return;
}

#### animationscript function main #####


# data/chars/1_enemies/forest_nymph/ani_02/forest_nymph_ani_02.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==299)
{
if(frame==1)
{
spawnVFX(1, "breath", 1250, 0, 300, 10000001, 1);
}
if(frame==1)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==17)
{
spawnVFX(1, "breath", 525, 0, 140, 10000001, 1);
}
if(frame==20)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==36)
{
spawnVFX(2, "breath", 150, 0, 650, 10000001, 1);
}
return;
}
if(animhandle==300)
{
if(frame==1)
{
spawnVFX(1, "breath", 1250, 0, 300, 10000001, 1);
}
if(frame==1)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==17)
{
spawnVFX(1, "breath", 525, 0, 140, 10000001, 1);
}
if(frame==20)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==36)
{
spawnVFX(2, "breath", 150, 0, 650, 10000001, 1);
}
if(frame==42)
{
spawnVFX(1, "breath", 1250, 0, 300, 10000001, 1);
}
if(frame==42)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==58)
{
spawnVFX(1, "breath", 525, 0, 140, 10000001, 1);
}
if(frame==61)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==77)
{
spawnVFX(2, "breath", 150, 0, 650, 10000001, 1);
}
return;
}
if(animhandle==301)
{
if(frame==1)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==20)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
return;
}
if(animhandle==302)
{
if(frame==1)
{
spawnVFX(1, "breath", 1250, 0, 300, 10000001, 1);
}
if(frame==1)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==17)
{
spawnVFX(1, "breath", 525, 0, 140, 10000001, 1);
}
if(frame==20)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==36)
{
spawnVFX(2, "breath", 150, 0, 650, 10000001, 1);
}
if(frame==42)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==61)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
return;
}
if(animhandle==303)
{
if(frame==1)
{
dasher(0, 0, -6, 0);
}
if(frame==1)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==29)
{
dasher(0, 0, -4, 0);
}
if(frame==29)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==57)
{
dasher(0, 0, -1, 0);
}
if(frame==57)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==85)
{
dasher(0, 0, 6, 0);
}
if(frame==85)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==113)
{
dasher(0, 0, 4, 0);
}
if(frame==113)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
if(frame==141)
{
dasher(0, 0, 1, 0);
}
if(frame==141)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
return;
}
if(animhandle==304)
{
if(frame==3)
{
spawnVFX(1, "breath", 1250, 0, 300, 10000001, 1);
}
if(frame==5)
{
spawnVFX(2, "breath", 150, 0, 650, 10000001, 1);
}
if(frame==6)
{
randSound2("[Link]", "[Link]", "[Link]", "[Link]", "[Link]",
"[Link]", "[Link]", "[Link]", "[Link]");
}
return;
}

You might also like