Animation Script Functions Overview
Animation Script Functions Overview
# 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;
}
setglobalvar("EXP", getglobalvar("EXP")+1);
if(frame==11)
{
suicide();
}
return;
}
if(frame==2){
int P1lv = getglobalvar("level.0");
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;
}
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;
}
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;
}
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;
//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;
}
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;
killentity(self); //Suicide!
}
return;
}
if(T){
int eTime = openborvariant("elapsed_time");
if(P1){
Px = getentityproperty(P1, "x");
Pz = getentityproperty(P1, "z");
//Coin?
if(iName == "Essence"){
Ex = getentityproperty(vEntity, "x");
Ez = getentityproperty(vEntity, "z");
{
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(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;
}
int x = getglobalvar("x"+iPIndex);
int z = getglobalvar("z"+iPIndex);
int x = getglobalvar("x"+iPIndex);
int z = getglobalvar("z"+iPIndex);
int x = getglobalvar("x"+iPIndex);
int z = getglobalvar("z"+iPIndex);
{
dasher(0.2,3,0);
}
return;
}
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)
{
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;
}
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(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.
//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;
}
if(getglobalvar("CoinsC") == NULL()){
setglobalvar("CoinsC", 0);
}
if(getglobalvar("CoinsC") != NULL()){
setglobalvar("CoinsC", getglobalvar("CoinsC")+1);
}
if(frame==27)
{
suicide();
}
return;
}
if(animhandle==189)
{
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)
{
if(frame==2){
int iPlIndex = getlocalvar("player"); //Get calling player
void vSelf = getplayerproperty(iPlIndex , "entity"); //Get calling entity
int essenceupgrade = getglobalvar("essenceupgrade");
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;
}
if(frame==1){
changeentityproperty(self, "health", Health-5);
if (Health <= 0){
killentity(self);
}
}
return;
}
if(animhandle==215)
{
if(frame==1)
{
suicide();
}
return;
}
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)
{
if(getentityproperty(vtm, "type")==openborconstant("TYPE_NPC"))
{
killentity(self);
}
return;
}
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)
{
if(getentityproperty(vtm, "type")==openborconstant("TYPE_NPC"))
{
killentity(self);
}
return;
}
if(PAnim!=openborconstant("ANI_FALL7")){
killentity(self);
}
}
return;
}
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;
}
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(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(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");
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");
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;
}
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;
}
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;
}
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;
}
if(Click == "V"){
char Claude = getglobalvar("InpuText");
int SFX1 = loadsample("data/sounds/[Link]");
int SFX2 = loadsample("data/sounds/[Link]");
setglobalvar("InpuText", "___");
if(P1){
setglobalvar("AliasP0", Claude);
}
} else {
playsample(SFX2, 0, 120, 120, 100, 0);
}
setglobalvar("Inputted", 0);
}
}
return;
}
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;
}
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;
}