home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / ray-ray.swf / scripts / DefineSprite_100 / frame_25 / DoAction.as < prev   
Encoding:
Text File  |  2005-09-29  |  534 b   |  18 lines

  1. val = random("20") + "1";
  2. if(val == "1" and wait == "0" and wait1 == "0" and wait2 == "0" and grump1 == "0" and grump6 == "0" and grump11 == "0" and grump16 == "0" and grump21 == "0")
  3. {
  4.    wait = "1";
  5.    tellTarget("run_thru1")
  6.    {
  7.       gotoAndStop("run_thru");
  8.    }
  9. }
  10. if(val == "2" and wait == "0" and wait1 == "0" and wait2 == "0" and grump5 == "0" and grump10 == "0" and grump15 == "0" and grump20 == "0" and grump25 == "0")
  11. {
  12.    wait = "1";
  13.    tellTarget("run_thru2")
  14.    {
  15.       gotoAndStop("run_thru");
  16.    }
  17. }
  18.