0% found this document useful (0 votes)
19 views4 pages

Animation Script Player Status Update

The document contains multiple animation scripts for different characters (Zeta, Amy, Rouge, Blaze) in a game. Each script checks the animation handle and updates the global variable for player alive status based on the player's index. The structure is similar across all characters, with specific animation handles triggering the same logic for updating player status.

Uploaded by

pepehoyo6
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)
19 views4 pages

Animation Script Player Status Update

The document contains multiple animation scripts for different characters (Zeta, Amy, Rouge, Blaze) in a game. Each script checks the animation handle and updates the global variable for player alive status based on the player's index. The structure is similar across all characters, with specific animation handles triggering the same logic for updating player status.

Uploaded by

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

You might also like