home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / eroticos / mammary-memory.exe / scripts / frame_29 / DoAction.as
Text File  |  2004-08-27  |  3KB  |  103 lines

  1. while(eval("/:picked") < "1")
  2. {
  3.    set("/:draw",int(random("13")));
  4.    tellTarget("/card14/cardset/image")
  5.    {
  6.       if(eval("/:draw") == "0" and "0" < eval("/:image1"))
  7.       {
  8.          gotoAndStop("image1");
  9.          set("/:image1",eval("/:image1") - "1");
  10.          set("/:picked","1");
  11.       }
  12.       if(eval("/:draw") == "1" and "0" < eval("/:image2"))
  13.       {
  14.          gotoAndStop("image2");
  15.          play();
  16.          set("/:image2",eval("/:image2") - "1");
  17.          set("/:picked","1");
  18.       }
  19.       if(eval("/:draw") == "2" and "0" < eval("/:image3"))
  20.       {
  21.          gotoAndStop("image3");
  22.          play();
  23.          set("/:image3",eval("/:image3") - "1");
  24.          set("/:picked","1");
  25.       }
  26.       if(eval("/:draw") == "3" and "0" < eval("/:image4"))
  27.       {
  28.          gotoAndStop("image4");
  29.          play();
  30.          set("/:image4",eval("/:image4") - "1");
  31.          set("/:picked","1");
  32.       }
  33.       if(eval("/:draw") == "4" and "0" < eval("/:image5"))
  34.       {
  35.          gotoAndStop("image5");
  36.          play();
  37.          set("/:image5",eval("/:image5") - "1");
  38.          set("/:picked","1");
  39.       }
  40.       if(eval("/:draw") == "5" and "0" < eval("/:image6"))
  41.       {
  42.          gotoAndStop("image6");
  43.          play();
  44.          set("/:image6",eval("/:image6") - "1");
  45.          set("/:picked","1");
  46.       }
  47.       if(eval("/:draw") == "6" and "0" < eval("/:image7"))
  48.       {
  49.          gotoAndStop("image7");
  50.          play();
  51.          set("/:image7",eval("/:image7") - "1");
  52.          set("/:picked","1");
  53.       }
  54.       if(eval("/:draw") == "7" and "0" < eval("/:image8"))
  55.       {
  56.          gotoAndStop("image8");
  57.          play();
  58.          set("/:image8",eval("/:image8") - "1");
  59.          set("/:picked","1");
  60.       }
  61.       if(eval("/:draw") == "8" and "0" < eval("/:image9"))
  62.       {
  63.          gotoAndStop("image9");
  64.          play();
  65.          set("/:image9",eval("/:image9") - "1");
  66.          set("/:picked","1");
  67.       }
  68.       if(eval("/:draw") == "9" and "0" < eval("/:image10"))
  69.       {
  70.          gotoAndStop("image10");
  71.          play();
  72.          set("/:image10",eval("/:image10") - "1");
  73.          set("/:picked","1");
  74.       }
  75.       if(eval("/:draw") == "10" and "0" < eval("/:image11"))
  76.       {
  77.          gotoAndStop("image11");
  78.          play();
  79.          set("/:image11",eval("/:image11") - "1");
  80.          set("/:picked","1");
  81.       }
  82.       if(eval("/:draw") == "11" and "0" < eval("/:image12"))
  83.       {
  84.          gotoAndStop("image12");
  85.          play();
  86.          set("/:image12",eval("/:image12") - "1");
  87.          set("/:picked","1");
  88.       }
  89.       if(eval("/:draw") == "12" and "0" < eval("/:image13"))
  90.       {
  91.          gotoAndStop("image13");
  92.          play();
  93.          set("/:image13",eval("/:image13") - "1");
  94.          set("/:picked","1");
  95.       }
  96.    }
  97. }
  98. set("/:picked","0");
  99. tellTarget("/card14")
  100. {
  101.    play();
  102. }
  103.