home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / golden_glove.swf / scripts / frame_19 / DoAction.as < prev   
Encoding:
Text File  |  2007-03-15  |  3.8 KB  |  139 lines

  1. _root.musiccontrol.gotoAndPlay("success");
  2. _root._quality = "HIGH";
  3. fighting = 1;
  4. if(_root.yourspeed > 1)
  5. {
  6.    _root.yourspeed--;
  7. }
  8. if(_root.yourstamina > 1)
  9. {
  10.    _root.yourstamina--;
  11. }
  12. if(_root.yourpower > 1)
  13. {
  14.    _root.yourpower--;
  15. }
  16. if(_root.yourcondition > 1)
  17. {
  18.    _root.yourcondition--;
  19. }
  20. if(_root.troubles > 0)
  21. {
  22.    _root.troubles -= 1;
  23. }
  24. _root.mediahype += 5;
  25. _root.bank += _root.payperfight;
  26. _root.payperfight += 1000;
  27. if(_root.oppKO == "knockout")
  28. {
  29.    _root.wins = _root.wins + 1;
  30.    _root.attributepts += 1;
  31.    if(_root.divtype == 1)
  32.    {
  33.       _root.divtype1wins = _root.divtype1wins + 1;
  34.    }
  35.    if(_root.divtype == 2)
  36.    {
  37.       _root.divtype2wins = _root.divtype2wins + 1;
  38.    }
  39.    if(_root.divtype == 3)
  40.    {
  41.       _root.divtype3wins = _root.divtype3wins + 1;
  42.    }
  43.    if(_root.divtype == 4)
  44.    {
  45.       _root.divtype4wins = _root.divtype4wins + 1;
  46.    }
  47.    if(_root.divtype == 5)
  48.    {
  49.       _root.divtype5wins = _root.divtype5wins + 1;
  50.    }
  51.    if(_root.divtype == 6)
  52.    {
  53.       _root.divtype6wins = _root.divtype6wins + 1;
  54.    }
  55.    if(_root.belts[0] != "STREET BELT" && _root.divtype1wins == 1 && _root.divtype == 1)
  56.    {
  57.       _root.currentbelt = "STREET BELT";
  58.       _root.beltsobtained = _root.beltsobtained + 1;
  59.       _root.belts[0] = "STREET BELT";
  60.       _root.gotoAndStop("beltget");
  61.    }
  62.    if(_root.belts[1] != "AMATUER BELT" && _root.divtype2wins == 1 && _root.divtype == 2)
  63.    {
  64.       _root.currentbelt = "AMATUER CHAMPIONSHIP BELT";
  65.       _root.beltsobtained = _root.beltsobtained + 1;
  66.       _root.belts[1] = "AMATUER BELT";
  67.       _root.gotoAndStop("beltget");
  68.    }
  69.    if(_root.belts[2] != "STREET CHAMPION" && _root.divtype3wins == 2 && _root.divtype == 3)
  70.    {
  71.       _root.currentbelt = "STREET CHAMPIONS BELT";
  72.       _root.beltsobtained = _root.beltsobtained + 1;
  73.       _root.belts[2] = "STREET CHAMPION";
  74.       _root.gotoAndStop("beltget");
  75.    }
  76.    if(_root.belts[3] != "REGIONAL TITLE" && _root.divtype4wins == 2 && _root.divtype == 4)
  77.    {
  78.       _root.currentbelt = "REGIONAL TITLE BELT";
  79.       _root.beltsobtained = _root.beltsobtained + 1;
  80.       _root.belts[3] = "REGIONAL TITLE";
  81.       _root.gotoAndStop("beltget");
  82.    }
  83.    if(_root.belts[4] != "WORLDSTREET CHAMP" && _root.divtype5wins == 3 && _root.divtype == 5)
  84.    {
  85.       _root.currentbelt = "WORLDSTREETS CHAMPIONSHIP BELT";
  86.       _root.beltsobtained = _root.beltsobtained + 1;
  87.       _root.belts[4] = "WORLDSTREET CHAMP";
  88.       _root.gotoAndStop("beltget");
  89.    }
  90.    if(_root.belts[5] != "NATIONAL TITLE" && _root.divtype6wins == 3 && _root.divtype == 6)
  91.    {
  92.       _root.currentbelt = "NATIONAL TITLE BELT";
  93.       _root.beltsobtained = _root.beltsobtained + 1;
  94.       _root.belts[5] = "NATIONAL TITLE";
  95.       _root.gotoAndStop("beltget");
  96.    }
  97.    if(_root.belts[5] != "WORLD CHAMPION" && _root.beltsobtained == 6)
  98.    {
  99.       _root.currentbelt = "THE WORLD\'S CHAMPIONSHIP BELT";
  100.       _root.belts[5] = "WORLD CHAMPION";
  101.       _root.gotoAndStop("beltget");
  102.    }
  103.    if(_root.divtype == 7 && _root.finalboss == 1)
  104.    {
  105.       _root.currentbelt = "GOLDEN GLOVE CHAMPION";
  106.       _root.gotoAndStop("champ");
  107.    }
  108. }
  109. if(_root.youKO == "yourout")
  110. {
  111.    _root.troubles += 2;
  112.    _root.losses = _root.losses + 1;
  113.    if(_root.divtype == 1)
  114.    {
  115.       _root.divtype1losses = _root.divtype1losses + 1;
  116.    }
  117.    if(_root.divtype == 2)
  118.    {
  119.       _root.divtype2losses = _root.divtype2losses + 1;
  120.    }
  121.    if(_root.divtype == 3)
  122.    {
  123.       _root.divtype3losses = _root.divtype3losses + 1;
  124.    }
  125.    if(_root.divtype == 4)
  126.    {
  127.       _root.divtype4losses = _root.divtype4losses + 1;
  128.    }
  129.    if(_root.divtype == 5)
  130.    {
  131.       _root.divtype5losses = _root.divtype5losses + 1;
  132.    }
  133.    if(_root.divtype == 6)
  134.    {
  135.       _root.divtype6losses = _root.divtype6losses + 1;
  136.    }
  137.    _root.gotoAndStop("fightover");
  138. }
  139.