home *** CD-ROM | disk | FTP | other *** search
/ Car Screensaver - Toyota / TOYOTA.iso / mjparty / vivi_ex.exe / vivi_ex.DXR / 00016.ls < prev    next >
Encoding:
Text File  |  1996-05-13  |  1.7 KB  |  69 lines

  1. on exitFrame
  2.   global gchnlist
  3.   if random(10) > 5 then
  4.     set a to 0
  5.   else
  6.     if random(100) < 16 then
  7.       set a to 2
  8.     else
  9.       if random(100) < 11 then
  10.         set a to 3
  11.       else
  12.         if random(100) < 6 then
  13.           set a to 5
  14.         else
  15.           set a to 0
  16.         end if
  17.       end if
  18.     end if
  19.   end if
  20.   startTimer()
  21.   repeat while the timer < 100
  22.     repeat with n = 1 to 1
  23.       if random(2) = 1 then
  24.         set the castNum of sprite 10 to 312
  25.         set the locH of sprite 10 to 304
  26.         set the locV of sprite 10 to 340 + (random(5) * 9)
  27.       else
  28.         set the castNum of sprite 10 to 313
  29.         set the locH of sprite 10 to 277 + (random(5) * 9)
  30.         set the locV of sprite 10 to 367
  31.       end if
  32.       set n to random(20)
  33.       set two to n / 10
  34.       set one to n - (two * 10)
  35.       if two = 0 then
  36.         set the castNum of sprite 26 to 272
  37.       else
  38.         set the castNum of sprite 26 to 261 + two
  39.       end if
  40.       set the castNum of sprite 11 to 261 + one
  41.       updateStage()
  42.     end repeat
  43.     if the mouseDown then
  44.       exit repeat
  45.     end if
  46.   end repeat
  47.   sound stop 1
  48.   if a = 0 then
  49.     set gchnlist to [0, 0]
  50.   else
  51.     set n to random(10)
  52.     set gchnlist to [n, a]
  53.     puppetSprite(9, 1)
  54.     puppetSprite(10, 1)
  55.     puppetSprite(11, 1)
  56.     set the castNum of sprite 9 to 321
  57.     if n < 6 then
  58.       set the castNum of sprite 10 to 312
  59.       set the locH of sprite 10 to 304
  60.       set the locV of sprite 10 to 340 + (n * 9)
  61.     else
  62.       set the castNum of sprite 10 to 313
  63.       set the locH of sprite 10 to 277 + ((n - 5) * 9)
  64.       set the locV of sprite 10 to 367
  65.     end if
  66.     set the castNum of sprite 11 to 261 + a
  67.   end if
  68. end
  69.