home *** CD-ROM | disk | FTP | other *** search
- s32 CheckStandardVictory()
- {
- s32 indice;
- s32 nbcivil;
- s32 vicval;
-
- nbcivil = GetVariable("NBCIVIL");
- vicval = 0;
-
- for( indice = 1; indice <= nbcivil; indice += 1 )
- {
- vicval = vicval + GetSaved( GetWorldResident("civil" + indice));
- }
-
- if( vicval == nbcivil )
- return 1;
- else
- return 0;
- }
-
-
- s32 CheckStandardDefeat()
- {
- WORLDRESIDENT wr;
- s32 indice;
- s32 nbcivil;
-
- if ( TestAllFaints() == 1)
- return 1;
-
- if( Check_ClassicGameOverAll() == 1 )
- return 2;
-
- nbcivil = GetNbCivil();
-
- for( indice = 1; indice <= nbcivil; indice += 1 )
- {
- wr = GetWorldResident("civil"+ indice);
- if( GetCurrPDV(wr) == 0.0 )
- {
- ForceConsole(1);
- PrintConsole("civil"+ indice);
- return 3;
- }
- }
-
-
- return 0;
- }
-
-
-
-
-