home *** CD-ROM | disk | FTP | other *** search
/ A Virtual Reality Guide to Texas / CD.iso / texdata / arcextra / extras.cst / 00064.ls < prev    next >
Encoding:
Text File  |  1998-06-23  |  1.0 KB  |  48 lines

  1. on idle
  2.   
  3.   if the moviename = "TDOC.dir" then
  4.     set curMark = marker(0)
  5.     if curmark < label("sing") or  (curmark >= label("help")) then
  6.       if the volume of sound 3 < 255 then
  7.         if soundbusy(1) = false then
  8.           set the volume of sound 3 = 255
  9.         end if
  10.       end if
  11.       playback
  12.     end if
  13.   else
  14.     if the moviename = "tbits.dir" then
  15.       playback
  16.     else if the frame < label("sing") then
  17.       playback
  18.     end if
  19.   end if
  20. end
  21.  
  22.  
  23.  
  24. on playback
  25.   global backsong,movieplaying
  26.   
  27.   if movieplaying <> true then
  28.     if soundbusy(3) = false then
  29.       if voidp(backsong) then
  30.         set backsong = random(3)
  31.       end if
  32.       if backsong < 1 then
  33.         set backsong = backsong * -1
  34.         set nextsong = backsong
  35.         repeat while nextsong = backsong
  36.           set nextsong = random(3)
  37.         end repeat
  38.         
  39.         sound playfile 3,"bacsong" & string(nextsong)
  40.         set backsong = nextsong
  41.       else
  42.         set backsong = backsong * -1
  43.         sound playfile 3,"ambient.aif"
  44.       end if
  45.     end if
  46.   end if
  47. end
  48.