Initial upload
Initial upload
This commit is contained in:
55
_module/nss/calc_hs_var.nss
Normal file
55
_module/nss/calc_hs_var.nss
Normal file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user