home *** CD-ROM | disk | FTP | other *** search
/ PC go! 1996 July / Image.iso / mrmore / tonline / 51btx.dir / 00031.ls < prev    next >
Encoding:
Text File  |  1996-02-19  |  1.6 KB  |  50 lines

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