home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / dragonforce.swf / scripts / DefineSprite_472 / frame_140 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  797 b   |  20 lines

  1. stop();
  2. _quality = "high";
  3. if(_root.difficulty == "easy")
  4. {
  5.    _root.display.bombs = _root.numberofbombs * 3;
  6.    _root.display.time = int(1000 / _root.time) * 3;
  7.    _root.display.health = "+" + _root.shipshield * 3 + " Shield Bonus";
  8.    _root.totalscore += int(_root.numberofbombs * 3 + int(1000 / _root.time) * 3 + _root.shipshield * 3);
  9. }
  10. if(_root.difficulty == "expert")
  11. {
  12.    _root.display.bombs = _root.numberofbombs * 5;
  13.    _root.display.time = int(1000 / _root.time) * 5;
  14.    _root.display.health = "+" + _root.shipshield * 5 + " Shield Bonus";
  15.    _root.totalscore += int(_root.numberofbombs * 5 + int(1000 / _root.time) * 5 + _root.shipshield * 5);
  16. }
  17. _root.display.totalscore = int(_root.totalscore);
  18. _root.status.score = int(_root.totalscore);
  19. _root.changelevels = true;
  20.