home *** CD-ROM | disk | FTP | other *** search
/ PC go! 1996 July / Image.iso / mrmore / tonline / haupt.dir / 00029.ls < prev    next >
Encoding:
Text File  |  1996-04-29  |  1.6 KB  |  50 lines

  1. on CheckTeleTime
  2.   global gbTeleAuto, gbNoBreak, gnLastRollTime, gnLastMouseH, gsThisFrame, gnTeleAutoFrame, gnLastAutoTime, glTeleAutoFrames, glTeleAutoDirs, glTeleAutoSounds, gbAnimFinished
  3.   if gbTeleAuto then
  4.     if the mouseDown then
  5.       EndAutoSequence()
  6.       exit
  7.     end if
  8.     if (the timer > (gnLastAutoTime + (60 * 2))) and gbAnimFinished then
  9.       set nFrames to count(glTeleAutoSounds)
  10.       set nNextSound to gnTeleAutoFrame + 1
  11.       if nNextSound > nFrames then
  12.         set nNextSound to nFrames
  13.       end if
  14.       set sSound to getAt(glTeleAutoSounds, nNextSound)
  15.       if not soundBusy(1) or (sSound = EMPTY) then
  16.         cursor(4)
  17.         set gnTeleAutoFrame to gnTeleAutoFrame + 1
  18.         if gnTeleAutoFrame > count(glTeleAutoFrames) then
  19.           set gbNoBreak to 0
  20.           EndAutoSequence()
  21.           exit
  22.         end if
  23.         set sFrame to getAt(glTeleAutoFrames, gnTeleAutoFrame)
  24.         set sMovie to getAt(glTeleAutoDirs, gnTeleAutoFrame)
  25.         set sSound to getAt(glTeleAutoSounds, gnTeleAutoFrame)
  26.         go(sFrame, sMovie)
  27.         updateStage()
  28.         set gnLastAutoTime to the timer
  29.         set gbAnimFinished to 0
  30.         if sSound <> EMPTY then
  31.           SafeSound(1, sSound)
  32.         end if
  33.         cursor(0)
  34.       end if
  35.     end if
  36.   else
  37.     if the mouseH <> gnLastMouseH then
  38.       set gnLastMouseH to the mouseH
  39.       set gnLastRollTime to the timer
  40.     else
  41.       if the timer > (gnLastRollTime + (20 * 60)) then
  42.         set gbNoBreak to 0
  43.         set gbTeleAuto to 1
  44.         set gnLastRollTime to the timer
  45.         go(1, "haupt.dir")
  46.       end if
  47.     end if
  48.   end if
  49. end
  50.