56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
/*
|
|
Calculate the nBattleProgress variable and asign it to the scout
|
|
nHordestrength is determined by the number of Horde banners that exist
|
|
Created By: Dalantriel Jul 22, 2002
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
// Set the variables
|
|
int nHordestrength = 0;
|
|
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster1")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster2")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster3")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster4")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster5")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster6")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster7")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster8")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster9")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
if(GetCurrentHitPoints(GetObjectByTag("spawnmaster10")) >> 0)
|
|
{
|
|
nHordestrength++;
|
|
}
|
|
|
|
SetLocalInt(OBJECT_SELF, "nBattleProgress", nHordestrength);
|
|
|
|
}
|