home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / DefineSprite_325 / frame_61 / DoAction.as
Encoding:
Text File  |  2005-08-04  |  611 b   |  41 lines

  1. life = random(2);
  2. if(life < 1)
  3. {
  4.    _root.showlife = true;
  5. }
  6. if(life > 0)
  7. {
  8.    _root.showlife = false;
  9. }
  10. x = random(4);
  11. if(x < 1)
  12. {
  13.    this._x = _root.sheep._x + 1200;
  14. }
  15. if(x > 0)
  16. {
  17.    if(x < 2)
  18.    {
  19.       this._x = _root.sheep._x + 1500;
  20.    }
  21. }
  22. if(x > 1)
  23. {
  24.    if(x < 3)
  25.    {
  26.       this._x = _root.sheep._x + 900;
  27.    }
  28. }
  29. if(x > 2)
  30. {
  31.    this._x = _root.sheep._x + 1000;
  32. }
  33. _root.bot3life = _root.levellife;
  34. _root.notarget3 = true;
  35. _root.hitarea3 = false;
  36. _root.sheeplevel.nextFrame();
  37. _root.score.score1 += 1;
  38. _root.nextbot3 = false;
  39. _root.nextbot4 = true;
  40. gotoAndPlay(1);
  41.