0% found this document useful (0 votes)
15 views8 pages

Script Log

The document contains multiple animation scripts for various characters in a game, detailing how to handle specific animation events based on the animation handle and player index. Each character's script checks the animation handle and updates global variables to indicate player status or performs specific actions like grabbing or attacking based on conditions. Additionally, some scripts include functionality to kill entities or pause music under certain conditions.
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)
15 views8 pages

Script Log

The document contains multiple animation scripts for various characters in a game, detailing how to handle specific animation events based on the animation handle and player index. Each character's script checks the animation handle and updates global variables to indicate player status or performs specific actions like grabbing or attacking based on conditions. Additionally, some scripts include functionality to kill entities or pause music under certain conditions.
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/zeta/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==22)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==23)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==24)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}

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

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==49)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==50)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}

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


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

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==75)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==76)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}

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


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

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==101)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}
if(animhandle==102)
{

void self = getlocalvar("self");


int PIndex = getentityproperty(self,"playerindex");

if (PIndex==0)
{
setglobalvar("p1alive", 1);
}
else if (PIndex==1)
{
setglobalvar("p2alive", 1);
}
return;
}

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


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

void self = getlocalvar("self");


void vSelf = getplayerproperty(0, "entity");
void vName = getentityproperty(vSelf,"name");
void vSelf2 = getplayerproperty(1, "entity");
void vName2 = getentityproperty(vSelf2,"name");

if(vName=="Zeta" || vName2=="Zeta")
{
performattack(self, openborconstant("ANI_FOLLOW1"));
}

return;
}

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


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

void self = getlocalvar("self");


void vSelf = getplayerproperty(0, "entity");
void vName = getentityproperty(vSelf,"name");
void vSelf2 = getplayerproperty(1, "entity");
void vName2 = getentityproperty(vSelf2,"name");

if(vName=="Rouge" || vName2=="Rouge")
{
performattack(self, openborconstant("ANI_FOLLOW1"));
}

return;
}

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


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

void self = getlocalvar("self");


void vSelf = getplayerproperty(0, "entity");
void vName = getentityproperty(vSelf,"name");
void vSelf2 = getplayerproperty(1, "entity");
void vName2 = getentityproperty(vSelf2,"name");

if(vName=="Amy" || vName2=="Amy")
{
performattack(self, openborconstant("ANI_FOLLOW1"));
}

return;
}

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


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

void self = getlocalvar("self");


void vSelf = getplayerproperty(0, "entity");
void vName = getentityproperty(vSelf,"name");
void vSelf2 = getplayerproperty(1, "entity");
void vName2 = getentityproperty(vSelf2,"name");

if(vName=="Blaze" || vName2=="Blaze")
{
performattack(self, openborconstant("ANI_FOLLOW1"));
}

return;
}

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


# data/chars/ground/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==127)
{
if(frame==0)
{
grab();
}
return;
}

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


# data/chars/motobug/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==152)
{
if(frame==0)
{
grab();
}
return;
}

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


# data/chars/buzz/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==173)
{
if(frame==0)
{
grab();
}
return;
}

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


# data/chars/tent/[Link]
########################################
void main()
{
int frame = getlocalvar("frame");
int animhandle = getlocalvar("animhandle");
if(animhandle==194)
{
if(frame==0)
{
grab();
}
return;
}

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


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

void self = getlocalvar("self");


killentity(self);
pausemusic(0);
return;
}

You might also like