home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / eroticos / SpeedStripPoker.swf / scripts / frame_3 / DoAction.as
Text File  |  2006-01-17  |  2KB  |  128 lines

  1. _root.hercard.gotoAndStop(card2 + 2 + suit2 * 13);
  2. if(bet == 100)
  3. {
  4.    if(card1 > card2)
  5.    {
  6.       result = "You Won";
  7.       yermunny += 100;
  8.       hermunny -= 100;
  9.       tellTarget(sounds)
  10.       {
  11.          gotoAndStop("win");
  12.          play();
  13.       }
  14.    }
  15.    else
  16.    {
  17.       result = "You Lose";
  18.       yermunny -= 100;
  19.       hermunny += 100;
  20.       tellTarget(sounds)
  21.       {
  22.          gotoAndStop("lose");
  23.          play();
  24.       }
  25.    }
  26. }
  27. if(bet == 25)
  28. {
  29.    if(card1 < card2)
  30.    {
  31.       result = "You Won";
  32.       yermunny += 25;
  33.       hermunny -= 25;
  34.       tellTarget(sounds)
  35.       {
  36.          gotoAndStop("win");
  37.          play();
  38.       }
  39.    }
  40.    else
  41.    {
  42.       result = "You Lose";
  43.       yermunny -= 25;
  44.       hermunny += 25;
  45.       tellTarget(sounds)
  46.       {
  47.          gotoAndStop("lose");
  48.          play();
  49.       }
  50.    }
  51. }
  52. if(hermunny < 0)
  53. {
  54.    level += 1;
  55.    if(demo == 1 and level > 3)
  56.    {
  57.       level = "demoend";
  58.    }
  59.    if(level == 2)
  60.    {
  61.       result = "Samantha lost.  She sells you her sweatshirt for $550";
  62.       hermunny += 550;
  63.       yermunny -= 550;
  64.    }
  65.    if(level == 3)
  66.    {
  67.       result = "You Won.  Samantha sells her T-shirt for $600";
  68.       hermunny += 600;
  69.       yermunny -= 600;
  70.    }
  71.    if(level == 4)
  72.    {
  73.       result = "Samantha needs money and sells her Shorts for $650";
  74.       hermunny += 650;
  75.       yermunny -= 650;
  76.    }
  77.    if(level == 5)
  78.    {
  79.       result = "You buy Samantha\'s panties for $700.";
  80.       hermunny += 700;
  81.       yermunny -= 700;
  82.    }
  83.    if(level < 6 and level != "demoend")
  84.    {
  85.       GIRLYPIX.loadMovie("sspoker_sam" + level + ".jpg");
  86.       tellTarget(sounds)
  87.       {
  88.          gotoAndStop("levelup");
  89.          play();
  90.       }
  91.    }
  92. }
  93. if(yermunny < 125)
  94. {
  95.    tellTarget(moneyflasher)
  96.    {
  97.       gotoAndPlay(2);
  98.    }
  99. }
  100. else
  101. {
  102.    tellTarget(moneyflasher)
  103.    {
  104.       gotoAndStop(1);
  105.    }
  106. }
  107. if(level > 5)
  108. {
  109.    tellTarget(sounds)
  110.    {
  111.       gotoAndStop("victory");
  112.       play();
  113.    }
  114.    gotoAndStop(4);
  115.    hermunny = 0;
  116.    loadMovie("sspoker_victory.swf","GIRLYPIX");
  117. }
  118. if(yermunny < 1)
  119. {
  120.    yermunny = 0;
  121.    gotoAndStop(5);
  122. }
  123. if(level == "demoend")
  124. {
  125.    gotoAndStop(6);
  126. }
  127. stop();
  128.