0% found this document useful (0 votes)
10 views70 pages

Animation Script Functions Overview

The document contains multiple animation scripts for a game, each defining behavior based on the current frame and animation handle. Key functionalities include setting zoom values, spawning entities, modifying player properties, and handling entity interactions. Each script is structured similarly, focusing on specific animations and their effects on game entities.

Uploaded by

singhofficial153
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)
10 views70 pages

Animation Script Functions Overview

The document contains multiple animation scripts for a game, each defining behavior based on the current frame and animation handle. Key functionalities include setting zoom values, spawning entities, modifying player properties, and handling entity interactions. Each script is structured similarly, focusing on specific animations and their effects on game entities.

Uploaded by

singhofficial153
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/misc/hyper/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==1)
{
if(frame==0)
{
setglobalvar("zoomentity", getlocalvar("self"));
}
if(frame==0)
{
setglobalvar("zoomvalue", 320);
}
if(frame==0)
{
setglobalvar("zoomx", 0);
}
if(frame==0)
{
setglobalvar("zoomy", 0);
}
if(frame==2)
{
setglobalvar("zoomvalue", 350);
}
if(frame==3)
{
setglobalvar("zoomvalue", 380);
}
if(frame==4)
{
setglobalvar("zoomvalue", 410);
}
if(frame==5)
{
setglobalvar("zoomvalue", 430);
}
if(frame==6)
{
setglobalvar("zoomvalue", 460);
}
if(frame==7)
{
setglobalvar("zoomvalue", 490);
}
if(frame==8)
{
setglobalvar("zoomvalue", 490);
}
if(frame==9)
{
setglobalvar("zoomvalue", 490);
}
if(frame==10)
{
setglobalvar("zoomvalue", 490);
}
if(frame==11)
{
setglobalvar("zoomvalue", 490);
}
if(frame==12)
{
setglobalvar("zoomvalue", 490);
}
if(frame==13)
{
setglobalvar("zoomvalue", 490);
}
if(frame==14)
{
setglobalvar("zoomvalue", 490);
}
if(frame==15)
{
setglobalvar("zoomvalue", 490);
}
if(frame==22)
{
setglobalvar("zoomentity", NULL());
}
return;
}

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


# data/chars/misc/cut/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==6)
{
if(frame==1)
{
spawn01("flash2", 0, 0, 0);
}
return;
}

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


# data/chars/misc/cut/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==7)
{
if(frame==1)
{
spawn01("flash2", 0, 0, 0);
}
return;
}

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


# data/chars/misc/cut/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==8)
{
if(frame==1)
{
spawn01("flash2", 0, 0, 0);
}
return;
}

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


# data/chars/misc/supercut/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==9)
{
if(frame==1)
{
spawn01("quaker", 0, 0, 1);
}
return;
}

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


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

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==26)
{

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/shock/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==39)
{

if(frame == 15){
void self = getlocalvar("self");
killentity(self);
}
return;
}
if(animhandle==40)
{

if(frame == 15){
void self = getlocalvar("self");
killentity(self);
}
return;
}
if(animhandle==41)
{

if(frame == 15){
void self = getlocalvar("self");
killentity(self);
}
return;
}
if(animhandle==42)
{

if(frame == 15){
void self = getlocalvar("self");
killentity(self);
}
return;
}

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


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

if(frame>=1){
void self = getlocalvar("self");
void Player = getplayerproperty(self, "entity");
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*1.2);
changeentityproperty(Player, "jumpspeed", JSp*1.2);
changeentityproperty(Player, "running", RSp*1.2);
changeentityproperty(Player, "edelay", 1, 0.5, 2, 200, 2, 200); //
}
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*1.2);
changeentityproperty(Player, "edelay", 1, 0.5, 2, 200, 2, 200); //
}
if(frame==19){
changeentityproperty(Player, "speed", Sp);
changeentityproperty(Player, "jumpspeed", JSp);
changeentityproperty(Player, "running", RSp);
changeentityproperty(Player, "edelay", 1, 1, 2, 200, 2, 200); //

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

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


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

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==46)
{

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/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==48)
{

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

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


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

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/essence/pull_essence.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==51)
{

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/misc/wave/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==55)
{
if(frame==5)
{
suicide();
}
return;
}
if(animhandle==56)
{
if(frame==5)
{
suicide();
}
return;
}
if(animhandle==57)
{
if(frame==9)
{
suicide();
}
return;
}
if(animhandle==58)
{
if(frame==9)
{
suicide();
}
return;
}

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


# data/chars/misc/splash/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==59)
{
if(frame==15)
{
suicide();
}
return;
}

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


# data/chars/0_player/warrior/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==70)
{
if(frame==2)
{
setglobalvar("zoomentity", NULL());
}
if(frame==4)
{
randSound("armor_step1.wav", "armor_step2.wav", "armor_step3.wav");
}
if(frame==4)
{
spawn01("dust_walk", 0, 0, 0);
}
if(frame==10)
{
randSound("armor_step1.wav", "armor_step2.wav", "armor_step3.wav");
}
if(frame==10)
{
spawn01("dust_walk", 25, 0, 0);
}
return;
}
if(animhandle==71)
{
if(frame==1)
{
spawn01("dust_walk", -100, 0, 0);
}
if(frame==2)
{
spawn01("dust_burst1", -100, 0, 0);
}
return;
}
if(animhandle==72)
{
if(frame==1)
{
spawn01("dust_stab", -100, 0, 0);
}
if(frame==2)
{
spawn01("dust_burst1", -100, 0, 0);
}
return;
}
if(animhandle==73)
{
if(frame==1)
{
spawn01("dust_walk", -100, 0, 0);
}
if(frame==2)
{
spawn01("dust_burst2", -100, 0, 0);
}
return;
}
if(animhandle==74)
{
if(frame==1)
{
dasher(15, 0, 0, 1);
}
if(frame==4)
{
spawn01("dust_walk", -100, 0, 0);
}
if(frame==5)
{
spawn01("dust_burst2", -100, 0, 0);
}
if(frame==6)
{
dasher(0, 0, 0, 1);
}
return;
}
if(animhandle==75)
{
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==1)
{
dasher(15, 0, 0, 1);
}
if(frame==4)
{
spawn01("dust_walk", -100, 0, 0);
}
if(frame==5)
{
spawn01("dust_burst2", -100, 0, 0);
}
if(frame==6)
{
dasher(0, 0, 0, 1);
}
return;
}
if(animhandle==76)
{

{
if(frame==0){
void self = getlocalvar("self");
setglobalvar("zoomentity", self);
setglobalvar("zoomvalue", 350);
setglobalvar("zoomx", 0);
setglobalvar("zoomy", -80);
}
}
if(frame==0)
{
dasher(0, 0, 0, 1);
}
if(frame==0)
{
spawn01("quaker2", 0, 0, 1);
}
if(frame==2)
{
spawn01("quaker2", 0, 0, 1);
}
if(frame==2)
{
spawn01("dust_burst2", -100, 0, 0);
}
if(frame==3)
{
spawn01("dust_burst2", -100, 0, 0);
}
if(frame==4)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==77)
{
if(frame==0)
{
consume(50, 0, "ANI_CANT");
}
if(frame==2)
{
spawn01("dust_walk", -100, 0, 0);
}
return;
}
if(animhandle==78)
{

{
if(frame==1){
void self = getlocalvar("self");
setglobalvar("zoomentity", self);
setglobalvar("zoomvalue", 500);
setglobalvar("zoomx", 0);
setglobalvar("zoomy", -80);
}
else if(frame==9){
setglobalvar("zoomvalue", 400);
}
else if(frame==10){
setglobalvar("zoomvalue", 300);
}
else if(frame==11){
setglobalvar("zoomvalue", 275);
}
else if(frame==12){
setglobalvar("zoomvalue", 270);
}
else if(frame==13){
setglobalvar("zoomvalue", 265);
}
}
if(frame==2)
{
randSound("[Link]", "[Link]", "[Link]");
}
if(frame==2)
{
spawn01("quaker", 0, 0, 1);
}
if(frame==2)
{
spawn01("flash", 100, 135, 1);
}
if(frame==2)
{
dasher(-5, 0, 0, 1);
}
if(frame==9)
{
spawn01("EnSlow", 0, 0, 0);
}
if(frame==10)
{
spawn01("reverb", 75, 250, 100);
}
if(frame==11)
{
spawnFX("hastefx", 0, 20, 0, "Haste");
}
if(frame==13)
{
dasher(0, 0, 0, 1);
}
if(frame==14)
{
spawn01("dust_land", 0, 0, 0);
}
return;
}
if(animhandle==79)
{
if(frame==6)
{
spawn01("dust_land", 0, 0, 0);
}
return;
}
if(animhandle==80)
{
if(frame==1)
{
spawnA("story", 0, 0, 0, "die");
}
if(frame==5)
{
onlose();
}
if(frame==9)
{
onlose();
}
if(frame==12)
{
onlose();
}
return;
}
if(animhandle==81)
{

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

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

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);
}
return;
}
if(animhandle==83)
{
if(frame==2)
{
spawnbind("Mana", 1, 50, 1);
}
return;
}
if(animhandle==84)
{

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==1)
{
spawn01("wind1", 30, 0, 3);
}
return;
}
if(animhandle==85)
{

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 = 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==1)
{
spawn01("dust_walk", 0, 0, 0);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
if(frame==11)
{
spawn01("dust_land", 0, 0, 0);
}
return;
}
if(animhandle==86)
{

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

{jumptobranch("c1-08", 1);}
}
if(frame==6)
{
spawnA("story", 0, 0, 0, "nymph_super");
}
if(frame==7)
{
spawnA("story", 0, 0, 0, "nymph_super");
}
return;
}
if(animhandle==87)
{
if(frame==1)
{
spawnA("story", 0, 0, 0, "cum");
}
if(frame==2)
{
onlose();
}
if(frame==3)
{
onlose();
}
if(frame==4)
{
onlose();
}
if(frame==5)
{
onlose();
}
if(frame==6)
{
onlose();
}
if(frame==7)
{
onlose();
}
if(frame==8)
{
onlose();
}
if(frame==9)
{
onlose();
}
if(frame==10)
{
onlose();
}
if(frame==11)
{
onlose();
}
return;
}
if(animhandle==88)
{
if(frame==0)
{
leaper(1, 12, 0, 1);
}
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==6)
{
spawn01("hyper", -50, 300, 0);
}
if(frame==8)
{
spawn01("dust_burst1", -100, 0, 0);
}
if(frame==11)
{
spawn01("dust_land", 0, 0, 0);
}
if(frame==11)
{
randSound("armor_step1.wav", "armor_step2.wav", "armor_step3.wav");
}
if(frame==12)
{
randSound("armor_step1.wav", "armor_step2.wav", "armor_step3.wav");
}
return;
}
if(animhandle==89)
{
if(frame==0)
{
spawner("trail", 0, 0, 0);
}
if(frame==2)
{
spawn01("dust_land", 0, 0, 0);
}
if(frame==2)
{
spawn01("dust_burst2", -100, 0, 0);
}
if(frame==2)
{
spawn01("dust_walk", -100, 0, 0);
}
if(frame==2)
{
spawn01("dust_burst1", -100, 0, 0);
}
if(frame==2)
{
spawn01("quaker", 0, 0, 1);
}
if(frame==3)
{
randSound("armor_step1.wav", "armor_step2.wav", "armor_step3.wav");
}
if(frame==3)
{
changePlayerBp();
}
if(frame==4)
{
randSound("armor_step1.wav", "armor_step2.wav", "armor_step3.wav");
}
return;
}

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


# data/chars/0_player/massager/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==95)
{
if(frame==3)
{
randSound("[Link]", "[Link]", "[Link]");
}
return;
}
if(animhandle==96)
{
if(frame==3)
{
randSound("[Link]", "[Link]", "[Link]");
}
return;
}
if(animhandle==97)
{
if(frame==3)
{
randSound("[Link]", "[Link]", "[Link]");
}
return;
}

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


# data/chars/0_player/licker/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==100)
{
if(frame==3)
{
randSound("[Link]", "[Link]", "[Link]");
}
return;
}
if(animhandle==101)
{
if(frame==3)
{
randSound("[Link]", "[Link]", "[Link]");
}
return;
}

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


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

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==106)
{
if(frame==1)
{
dasher(1, 0, 0.5, 1);
}
if(frame==5)
{
dasher(-0.5, 0, -0.5, 1);
}
return;
}
if(animhandle==107)
{
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==108)
{
if(frame==0)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==110)
{
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==111)
{
void self = getlocalvar("self"); //Get calling entity
int iPIndex = getentityproperty(self,"playerindex");
setglobalvar("Cursor", getlocalvar("self"));

int x = getglobalvar("x"+iPIndex);
int z = getglobalvar("z"+iPIndex);

if( x!=NULL() && z!=NULL() && frame == 1){


changeentityproperty(self,"position", x, z);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==112)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==113)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==114)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==115)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==116)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==117)
{
if(frame>=1 && frame<=2){
void self = getlocalvar("self");
changeentityproperty(self, "animation", openborconstant("ANI_IDLE"));
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}

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


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

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


int iPIndex = getentityproperty(self,"playerindex");
setglobalvar("Cursor", getlocalvar("self"));

int x = getglobalvar("x"+iPIndex);
int z = getglobalvar("z"+iPIndex);

if( x!=NULL() && z!=NULL() && frame == 1){


changeentityproperty(self,"position", x, z);
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==119)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==120)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==121)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==122)
{
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}
if(animhandle==123)
{

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


void self = getlocalvar("self");
changeentityproperty(self, "animation", openborconstant("ANI_IDLE"));
}
if(frame==1)
{
setglobalvar("zoomentity", NULL());
}
return;
}

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


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

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

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


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

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/choice_return.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==135)
{

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/kraken/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==149)
{
if(frame==4)
{
spawn01("Essence_Drop", 0, 0, 2);
}
if(frame==16)
{
suicide();
}
return;
}
if(animhandle==150)
{
if(frame==1)
{
changePlayerBp(50);
}
if(frame==4)
{
spawn01("Essence_Drop2", 0, 0, 2);
}
if(frame==16)
{
suicide();
}
return;
}
if(animhandle==151)
{
if(frame==29)
{
suicide();
}
return;
}
if(animhandle==152)
{
if(frame==0)
{
slamstart2();
}
if(frame==0)
{
position(0, 125, 10, 0, -1);
}
if(frame==1)
{
position(0, 125, 10, 0, -1);
}
if(frame==2)
{
position(0, 100, 25, 0, -1);
}
if(frame==3)
{
depost();
}
if(frame==3)
{
finish(8, 1, 10, 5, 0, 0);
}
if(frame==4)
{
clearL();
}
return;
}

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


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

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==0)
{
armored(2);
}
return;
}
if(animhandle==156)
{

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"));
}
}
return;
}
if(animhandle==157)
{

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"));
}
}
return;
}
if(animhandle==158)
{

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==0)
{
armored(1);
}
if(frame==1)
{
cancelRandom("ANI_FOLLOW3", 50);
}
if(frame==1)
{
dasher(8, 0, 0);
}
if(frame==2)
{
armored(2);
}
if(frame==2)
{
dasher(2, 0, 0);
}
return;
}
if(animhandle==159)
{

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==0)
{
armored(1);
}
if(frame==1)
{
spawn07("krakentacle", 0, 0, 0, NULL(), NULL(), NULL(), NULL(),
"ANI_FOLLOW3", 1);
}
if(frame==2)
{
armored(2);
}
return;
}
if(animhandle==160)
{

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==0)
{
armored(1);
}
if(frame==1)
{
cancelRandom("ANI_FOLLOW3", 50);
}
if(frame==1)
{
dasher(8, 0, 0);
}
if(frame==2)
{
armored(2);
}
if(frame==2)
{
dasher(2, 0, 0);
}
return;
}
if(animhandle==161)
{

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

if(Health<=1){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==0)
{
armored(1);
}
if(frame==1)
{
spawn07("krakentacle", 800, 0, 0, -1);
}
if(frame==2)
{
spawn07("krakentacle", -800, 0, 0, -1);
}
if(frame==2)
{
armored(2);
}
return;
}
if(animhandle==162)
{

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==0)
{
dasher(-12, 0, 0);
}
if(frame==0)
{
afterImage("krakens");
}
if(frame==1)
{
afterImage("krakens");
}
if(frame==2)
{
afterImage("krakens");
}
if(frame==3)
{
afterImage("krakens");
}
if(frame==4)
{
dasher(-8, 0, 0);
}
if(frame==4)
{
afterImage("krakens");
}
if(frame==5)
{
afterImage("krakens");
}
if(frame==6)
{
dasher(-4, 0, 0);
}
if(frame==6)
{
afterImage("krakens");
}
if(frame==7)
{
dasher(-2, 0, 0);
}
if(frame==7)
{
afterImage("krakens");
}
return;
}
if(animhandle==163)
{

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

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

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

if(Health<=1){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==0)
{
spawnbind2("dizzy", 0, 150, 10);
}
if(frame==6)
{
looper(1, 20);
}
return;
}
if(animhandle==165)
{

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

if(Health<=1){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==6)
{
looper(1, 20);
}
return;
}
if(animhandle==166)
{

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

if(Health<=1){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
if(frame==0)
{
spawnbind2("dizzy", 60, 100, 10);
}
if(frame==6)
{
looper(1, 20);
}
return;
}
if(animhandle==167)
{

void self = getlocalvar("self");


getentityproperty(self, "maxhealth");

if(frame==0){
changeentityproperty(self, "maxhealth", 1);
}

if(frame==1){
damageentity(self, self, 2, 1, openborconstant("ATK_NORMAL"));
}
return;
}
if(animhandle==168)
{
if(frame==1)
{
spawn01("Essence_Drop", 0, 0, 2);
}
return;
}
if(animhandle==170)
{

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

if(Health<=1){
//performattack(self, openborconstant("ANI_FOLLOW2")); //DISABLED
}
}
if(frame==1)
{
spawn01("dust_burst2", -100, 0, 0);
}
if(frame==6)
{
looper(1, 20);
}
return;
}
if(animhandle==171)
{

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

if(Health<=1){
//performattack(self, openborconstant("ANI_FOLLOW2")); //DISABLED
}
}
if(frame==1)
{
spawn01("dust_burst2", -100, 0, 0);
}
return;
}
if(animhandle==172)
{
if(frame==1)
{
changePlayerBp(50);
}
if(frame==1)
{
spawn01("execute", 10, 200, 100);
}
if(frame==1)
{
floater(100);
}
if(frame==7)
{
spawn01("Essence_Drop2", 0, 0, 2);
}
if(frame==9)
{
suicide();
}
return;
}

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


# data/chars/1_enemies/sahuagin_mage/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==173)
{
if(frame==64)
{
suicide();
}
return;
}

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


# data/chars/1_enemies/snake_berserker/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==174)
{
if(frame==16)
{
suicide();
}
return;
}

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


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

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


# data/chars/1_enemies/orc_shaman/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==176)
{
if(frame==16)
{
suicide();
}
return;
}

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


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

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 = 4; //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==179)
{
if(frame==0)
{
dasher(0, 1, 0, 1);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==180)
{
if(frame==0)
{
dasher(0, 1, 0, 1);
}
if(frame==13)
{
suicide();
}
return;
}
if(animhandle==181)
{
if(frame==0)
{
dasher(0, 1, 0, 1);
}
if(frame==13)
{
suicide();
}
return;
}

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


# data/chars/vfx/words/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==182)
{
if(frame==1)
{
randSound("[Link]", "[Link]", "[Link]");
}
if(frame==1)
{
spawnVFX(1, "plap", 500, 0, 600, 100000001, 1);
}
if(frame==3)
{
randSound("[Link]", "[Link]", "[Link]");
}
if(frame==3)
{
spawnVFX(1, "plap", 1000, 0, 600, 100000001, 1);
}
return;
}
if(animhandle==183)
{
if(frame==1)
{
spawnVFX(1, "suck", 500, 0, 600, 100000001, 1);
}
return;
}
if(animhandle==184)
{
if(frame==1)
{
spawnVFX(1, "suck", 500, 0, 600, 100000001, 1);
}
if(frame==3)
{
spawnVFX(1, "suck", 1000, 0, 300, 100000001, 1);
}
return;
}
if(animhandle==185)
{
if(frame==1)
{
spawnVFX(1, "suck", 500, 0, 300, 100000001, 1);
}
if(frame==3)
{
spawnVFX(1, "suck", 1100, 0, 300, 100000001, 1);
}
return;
}

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


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

if(frame==1){
void vEntity; //Target entity
placeholder.
int iEntity; //Entity enumeration
holder.
int iType; //Entity type.
int iHP; //Entity HP
int iMax = openborvariant("count_entities"); //Entity count.

//Enumerate and loop through entity collection.


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

//Enemy type?
if (iType == openborconstant("TYPE_ENEMY") && iHP > 0){
damageentity(vEntity, vEntity, 200, 1, openborconstant("ATK_NORMAL1"));
}
}
// changeopenborvariant("slowmotion", 1);
setglobalvar("Dead", 1);
}
if(frame==2){
void self = getlocalvar("self");
// changeopenborvariant("slowmotion", 0);
killentity(self);
}
return;
}

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


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

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

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==190)
{

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/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==191)
{

if(frame==10){
void self = getlocalvar("self");
changeentityproperty(self, "subtype",
openborconstant("SUBTYPE_CHASE"));
//changeentityproperty(self, "subject_to_gravity", 1);
}
if(frame==0)
{
leaper(0, 10, 0, 1);
}
return;
}
if(animhandle==192)
{

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==193)
{

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

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


if(essenceupgrade == 9){
performattack(self, openborconstant("ANI_FOLLOW9"));
} else if(essenceupgrade == 8){
performattack(self, openborconstant("ANI_FOLLOW8"));
} else if(essenceupgrade == 7){
performattack(self, openborconstant("ANI_FOLLOW7"));
} else if(essenceupgrade == 6){
performattack(self, openborconstant("ANI_FOLLOW6"));
} else if(essenceupgrade == 5){
performattack(self, openborconstant("ANI_FOLLOW5"));
} else if(essenceupgrade == 4){
performattack(self, openborconstant("ANI_FOLLOW4"));
} else if(essenceupgrade == 3){
performattack(self, openborconstant("ANI_FOLLOW3"));
} else if(essenceupgrade == 2){
performattack(self, openborconstant("ANI_FOLLOW2"));
} else if(essenceupgrade == 1){
performattack(self, openborconstant("ANI_FOLLOW1"));
} else if(essenceupgrade == NULL()){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
return;
}
if(animhandle==194)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
suicide();
}
return;
}
if(animhandle==195)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==196)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==197)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==198)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==199)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 10, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==200)
{
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)
{
suicide();
}
return;
}
if(animhandle==201)
{
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)
{
suicide();
}
return;
}
if(animhandle==202)
{
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)
{
suicide();
}
return;
}

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


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

if(frame==2){
int iPlIndex = getlocalvar("player"); //Get calling player
void vSelf = getplayerproperty(iPlIndex , "entity"); //Get calling entity
int essenceupgrade = getglobalvar("essenceupgrade");
void self = getlocalvar("self"); //Get calling entity
if(essenceupgrade == 9){
performattack(self, openborconstant("ANI_FOLLOW9"));
} else if(essenceupgrade == 8){
performattack(self, openborconstant("ANI_FOLLOW8"));
} else if(essenceupgrade == 7){
performattack(self, openborconstant("ANI_FOLLOW7"));
} else if(essenceupgrade == 6){
performattack(self, openborconstant("ANI_FOLLOW6"));
} else if(essenceupgrade == 5){
performattack(self, openborconstant("ANI_FOLLOW5"));
} else if(essenceupgrade == 4){
performattack(self, openborconstant("ANI_FOLLOW4"));
} else if(essenceupgrade == 3){
performattack(self, openborconstant("ANI_FOLLOW3"));
} else if(essenceupgrade == 2){
performattack(self, openborconstant("ANI_FOLLOW2"));
} else if(essenceupgrade == 1){
performattack(self, openborconstant("ANI_FOLLOW1"));
} else if(essenceupgrade == NULL()){
performattack(self, openborconstant("ANI_FOLLOW1"));
}
}
return;
}
if(animhandle==204)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
suicide();
}
return;
}
if(animhandle==205)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 30, 0, 2);
}
if(frame==4)
{
suicide();
}
return;
}
if(animhandle==206)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 10, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 20, 0, 2);
}
if(frame==4)
{
spawn01("Essence", 30, 0, 2);
}
if(frame==5)
{
suicide();
}
return;
}
if(animhandle==207)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 10, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 20, 0, 2);
}
if(frame==4)
{
spawn01("Essence", 30, 0, 2);
}
if(frame==5)
{
spawn01("Essence", 40, 0, 2);
}
if(frame==6)
{
suicide();
}
return;
}
if(animhandle==208)
{
if(frame==1)
{
spawn01("Essence", 0, 0, 2);
}
if(frame==2)
{
spawn01("Essence", 10, 0, 2);
}
if(frame==3)
{
spawn01("Essence", 20, 0, 2);
}
if(frame==4)
{
spawn01("Essence", 30, 0, 2);
}
if(frame==5)
{
spawn01("Essence", 40, 0, 2);
}
if(frame==6)
{
spawn01("Essence", 50, 0, 2);
}
if(frame==7)
{
suicide();
}
return;
}
if(animhandle==209)
{
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, 10, 2);
}
if(frame==8)
{
suicide();
}
return;
}
if(animhandle==210)
{
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, 10, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==9)
{
suicide();
}
return;
}
if(animhandle==211)
{
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, 10, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==9)
{
spawn01("Essence", 0, 30, 2);
}
if(frame==10)
{
suicide();
}
return;
}
if(animhandle==212)
{
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, 10, 2);
}
if(frame==8)
{
spawn01("Essence", 0, 20, 2);
}
if(frame==9)
{
spawn01("Essence", 0, 30, 2);
}
if(frame==10)
{
spawn01("Essence", 0, 40, 2);
}
if(frame==11)
{
suicide();
}
return;
}

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


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

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==215)
{
if(frame==1)
{
suicide();
}
return;
}

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


# data/chars/misc/quaker_story.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==223)
{
if(frame==165)
{
suicide();
}
return;
}
if(animhandle==224)
{
if(frame==3)
{
suicide();
}
return;
}

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


# data/chars/dialogues/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==225)
{
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==226)
{
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==227)
{
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==228)
{

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==230)
{

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==231)
{

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==233)
{

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==234)
{

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/story/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==237)
{

if(frame==0){
if(getglobalvar("DrawHUD")!= 0){
setglobalvar("DrawHUD", 0);
}
}
if(frame==1)
{
talk();
}
return;
}
if(animhandle==238)
{

if(frame==0){
setglobalvar("0At2", NULL());
}
if(frame==1)
{
sendDialogMsg();
}
return;
}
if(animhandle==239)
{

if(frame==0){
setglobalvar("0At2", NULL());
}
if(frame==1)
{
sendDialogMsg();
}
return;
}
if(animhandle==240)
{

if(frame==0){
setglobalvar("0At2", NULL());
}
if(frame==1)
{
sendDialogMsg();
}
return;
}

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


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

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==243)
{

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==244)
{

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==245)
{

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/language_menu.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==252)
{

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("story_folder");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == "eng"){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == "cns"){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("story_folder");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == "eng"){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == "cns"){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("story_folder");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == "eng"){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == "cns"){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

}
return;
}

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


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

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==256)
{

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==257)
{

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==258)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("story_folder", "eng");
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==259)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("story_folder", "cns");
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==260)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 3);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==261)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 4);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==262)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 5);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}

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


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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("difficulty");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 1){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}
if(Status == 2){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

if(Status == 3){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 4){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW4"));
}

if(Status == 5){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW5"));
}

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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("difficulty");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 1){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == 2){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

if(Status == 3){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 4){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW4"));
}

if(Status == 5){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW5"));
}

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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("difficulty");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 1){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == 2){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

if(Status == 3){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 4){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW4"));
}

if(Status == 5){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW5"));
}

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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("difficulty");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}
if(Status == 1){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == 2){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

if(Status == 3){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 4){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW4"));
}

if(Status == 5){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW5"));
}

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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("difficulty");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 1){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == 2){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

if(Status == 3){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 4){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW4"));
}

if(Status == 5){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW5"));
}

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

if(frame>=2){
void self = getlocalvar("self");
int Status = getglobalvar("difficulty");

if(Status == NULL()){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 1){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW1"));
}

if(Status == 2){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW2"));
}

if(Status == 3){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW3"));
}

if(Status == 4){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW4"));
}

if(Status == 5){
changeentityproperty(self, "animation",
openborconstant("ANI_FOLLOW5"));
}

}
return;
}

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


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

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==271)
{

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==272)
{

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==273)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 1);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==274)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 2);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==275)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 3);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==276)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 4);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}
if(animhandle==277)
{

if(frame==3){
int Success = loadsample("data/sounds/[Link]");
setglobalvar("difficulty", 5);
playsample(Success, 0, 20, 20, 100, 0);
}
return;
}

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


# data/chars/2_anim/misc/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==278)
{
if(frame==0)
{
dasher(-0.05, 0, 0, 1);
}
if(frame==1)
{
dasher(0.05, 0, 0, 1);
}
return;
}

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


# data/chars/vfx/ambience/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==279)
{
if(frame==1)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==2)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==3)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==4)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==5)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==6)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==7)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==8)
{
playCustomSound("[Link]", 25, 100, 0);
}
return;
}

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


# data/chars/2_anim/receptionist/idle/receptionist_idle2.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==280)
{
if(frame==39)
{
looper(1, 5);
}
return;
}
}

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


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

if(frame >= 1){


void Click = getglobalvar("Inputted");

//APPLY A DEFAULT PLAYER NAME IF NULL


if(getglobalvar("AliasP0") == NULL()){
setglobalvar("AliasP0", "Claude");
}

if(Click == "V"){
char Claude = getglobalvar("InpuText");
int SFX1 = loadsample("data/sounds/[Link]");
int SFX2 = loadsample("data/sounds/[Link]");

if(Claude != "_" && Claude != "__" && Claude != "___"){


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

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

setglobalvar("InpuText", "___");

if(P1){
setglobalvar("AliasP0", Claude);
}
} else {
playsample(SFX2, 0, 120, 120, 100, 0);
}

setglobalvar("Inputted", 0);
}
}
return;
}

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


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

if(frame == 1){
void self = getlocalvar("self");
char Code = getentityproperty(self,"name");

if(Code == "A"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK1"));
} else if(Code == "B"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK2"));
} else if(Code == "C"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK3"));
} else if(Code == "D"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK4"));
} else if(Code == "E"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK5"));
} else if(Code == "F"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK6"));
} else if(Code == "G"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK7"));
} else if(Code == "H"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK8"));
} else if(Code == "I"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK9"));
} else if(Code == "J"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK10"));
} else if(Code == "K"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK11"));
} else if(Code == "L"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK12"));
} else if(Code == "M"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK13"));
} else if(Code == "N"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK14"));
} else if(Code == "O"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK15"));
} else if(Code == "P"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK16"));
} else if(Code == "Q"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK17"));
} else if(Code == "R"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK18"));
} else if(Code == "S"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK19"));
} else if(Code == "T"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK20"));
} else if(Code == "U"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK21"));
} else if(Code == "V"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK22"));
} else if(Code == "W"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK23"));
} else if(Code == "X"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK24"));
} else if(Code == "Y"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK25"));
} else if(Code == "Z"){
changeentityproperty(self, "animation", openborconstant("ANI_ATTACK26"));
} else if(Code == "a"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW1"));
} else if(Code == "b"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW2"));
} else if(Code == "c"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW3"));
} else if(Code == "d"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW4"));
} else if(Code == "e"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW5"));
} else if(Code == "f"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW6"));
} else if(Code == "g"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW7"));
} else if(Code == "h"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW8"));
} else if(Code == "i"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW9"));
} else if(Code == "j"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW10"));
} else if(Code == "k"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW11"));
} else if(Code == "l"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW12"));
} else if(Code == "m"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW13"));
} else if(Code == "n"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW14"));
} else if(Code == "o"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW15"));
} else if(Code == "p"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW16"));
} else if(Code == "q"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW17"));
} else if(Code == "r"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW18"));
} else if(Code == "s"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW19"));
} else if(Code == "t"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW20"));
} else if(Code == "u"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW21"));
} else if(Code == "v"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW22"));
} else if(Code == "w"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW23"));
} else if(Code == "x"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW24"));
} else if(Code == "y"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW25"));
} else if(Code == "z"){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW26"));
} else {
changeentityproperty(self, "animation",
openborconstant("ANI_FREESPECIAL"));
}
}
return;
}

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


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

if(frame == 1){
void self = getlocalvar("self");
int Aggro = getentityproperty(self,"aggression");

if(Aggro == 2){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW2"));
} else if(Aggro == 3){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW3"));
} else if(Aggro == 4){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW4"));
} else if(Aggro == 5){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW5"));
} else if(Aggro == 6){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW6"));
} else if(Aggro == 7){
changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW7"));
}
}
return;
}

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


# data/chars/vfx/ambience/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==349)
{
if(frame==1)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==2)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==3)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==4)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==5)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==6)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==7)
{
playCustomSound("[Link]", 25, 100, 0);
}
if(frame==8)
{
playCustomSound("[Link]", 25, 100, 0);
}
return;
}

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


# data/chars/2_anim/receptionist/idle/receptionist_idle2.txt
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==350)
{
if(frame==39)
{
looper(1, 5);
}
return;
}

You might also like