home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / GooseheadRace2.swf / scripts / frame_195 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  548 b   |  36 lines

  1. raceStandings[raceCount] = racetime;
  2. if(winner == "AI")
  3. {
  4.    raceWinners[raceCount] = "Worldwide Productions";
  5. }
  6. else
  7. {
  8.    raceWinners[raceCount] = "Goosehead";
  9.    winnerCount++;
  10. }
  11. raceCount++;
  12. BankAcc += RaceWinnings;
  13. if(raceCount == raceLaps)
  14. {
  15.    if(bankAcc >= racec1)
  16.    {
  17.       if(winnerCount == RaceLaps)
  18.       {
  19.          gotoAndPlay(222);
  20.       }
  21.       else
  22.       {
  23.          stopAllSounds();
  24.          gotoAndPlay(169);
  25.       }
  26.    }
  27.    else
  28.    {
  29.       gotoAndPlay(206);
  30.    }
  31. }
  32. else
  33. {
  34.    gotoAndPlay(175);
  35. }
  36.