16 lines
415 B
Plaintext
16 lines
415 B
Plaintext
int StartingConditional()
|
|
{
|
|
object oMod=GetModule();
|
|
int nSLAVEC=GetLocalInt(oMod,"nSLAVEC");
|
|
object oSlave=GetLocalObject(oMod,"oSLAVE1");
|
|
int nC=1;
|
|
if (nSLAVEC==0) return TRUE;
|
|
while(nC<=nSLAVEC)
|
|
{ // test
|
|
if (oSlave!=OBJECT_INVALID&&GetIsDead(oSlave)==FALSE) return FALSE;
|
|
nC++;
|
|
oSlave=GetLocalObject(oMod,"oSLAVE"+IntToString(nC));
|
|
} // test
|
|
return TRUE;
|
|
}
|