home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1997 August / Personal_Computer_World_Aug_97.iso / dxrs / intpcw08.dxr / 00001.ls next >
Encoding:
Text File  |  1997-05-21  |  4.6 KB  |  107 lines

  1. on startMovie
  2.   global IFLSpriteDifference, IFLhasLineFlashedList, WaitFactor, SpeedIndex, GTSWIN95, gtswhichopsystem, RunProg, IFLWhichcursorList, IFLThisButton, addPallist, addlist, ADDKindList, REFAddWatch, REFaddPallist, REFaddlist, REFADDKindList, IFLSkipList, IFLINTARTList, IFLINTGTSList, IFLINTFAEList, IFLINTHANList, IFLINTGROList, IFLINTGESList, IFLINTREFList, IFLINTRESList, IFLINTMGIList, IFLLeaveIntro, ILFRotateP, IFLPersonalList, IFLStartP, IFLMovieNameList, REFINTER, IFLROtCounter, IFLKeyFlag, ARTGRAPHICSNAMELIST, ARTTWOGRAPHICSNAMELIST, ARTJuke, ARTComic, JUKESoundOne, REFADvertNo, CDXIndexNAme, DriveLtr, REFMGXNAme, JUKESoundTwo, ACROPATH, filetextlist
  3.   set the exitLock to 1
  4.   repeat with t = 1 to 48
  5.     puppetSprite(t, 1)
  6.   end repeat
  7.   updateStage()
  8.   set the searchPath to [DriveLtr & "video"]
  9.   set filetextlist to list()
  10.   set IFLMovieNameList to list("REFPCW08", "HANPCW08", "RESPCW08", "CDXPCW08", "FAEPCW08", "GESPCW08", "GTSPCW08", "ARTPCW08", "MGIPCW08")
  11.   set addPallist to list(["PLACETV", "PLACEAD"], [0, 0], [0, 0])
  12.   set REFaddPallist to list(["PLACETV", "PLACEAD"], [0, 0], [0, 0])
  13.   set addlist to list([0, 0], [0, 0], [0, 0])
  14.   set REFaddlist to list([0, 0], [0, 0], [0, 0])
  15.   set ADDKindList to list(2, 4, 5)
  16.   set REFADDKindList to list(2, 4, 5)
  17.   set REFADvertNo to 3
  18.   set ARTGRAPHICSNAMELIST to list("10019158.BMP", "10019181.BMP", "10019184.BMP", "10019207.BMP", "10019210.BMP", "10019256.BMP", "10019261.BMP", "C14216F.BMP", "10027858.BMP", "10027863.BMP", "10027868.BMP", "10027871.BMP", "10027876.BMP", "10037164.BMP", "TAB12G.BMP", "TAB12H.BMP")
  19.   set ARTTWOGRAPHICSNAMELIST to list("10022015.BMP", "10022023.BMP", "10022025.BMP", "10022031.BMP", "10022036.BMP", "10025056.BMP", "10033097.BMP", "10033100.BMP", "10033101.BMP", "10033102.BMP", "10033104.BMP", "10033105.BMP", "10033116.BMP", "10046420.BMP", "10049953.BMP", "10049978.BMP")
  20.   set ARTJuke to "JUKEBX08"
  21.   set ARTComic to "ZARNAC4"
  22.   set JUKESoundOne to "CHANNEL.WAV"
  23.   set JUKESoundTwo to "CHANNEL.WAV"
  24.   set CDXIndexNAme to "PCWCDX08.dbf"
  25.   set REFMGXNAme to "PCWMGX08.dbf"
  26.   set IFLINTARTList to list([31, "ARTNAME", 256, 151], [12, "ARTContent", 160, 251])
  27.   set IFLINTGTSList to list([31, "GAMENAME", 199, 151], [12, "GameContent", 211, 251])
  28.   set IFLINTFAEList to list([31, "MULTNAME", 116, 152], [12, "MULTContent", 206, 251])
  29.   set IFLINTHANList to list([31, "HANDNAME", 159, 151], [12, "HANContent", 200, 259])
  30.   set IFLINTGROList to list([31, "GROUNAME", 174, 151], [12, "GROContent", 168, 259])
  31.   set IFLINTGESList to list([31, "GETTNAME", 56, 150], [12, "GESContent", 178, 259])
  32.   set IFLINTREFList to list([31, "REFENAME", 148, 150], [12, "REFContent", 178, 251])
  33.   set IFLINTRESList to list([31, "RESONAME", 47, 150], [12, "RESContent", 142, 259])
  34.   set IFLINTMGIList to list([31, "ROOMNAME", 150, 150], [12, "MGIContent", 232, 251])
  35.   set IFLLeaveIntro to 0
  36.   set ILFRotateP to 0
  37.   set IFLStartP to 0
  38.   set REFAddWatch to 0
  39.   set IFLThisButton to 0
  40.   set REFINTER to 0
  41.   set IFLROtCounter to 0
  42.   set IFLKeyFlag to 0
  43.   set IFLSpriteDifference to 38
  44.   set the searchPath to [DriveLtr & "video"]
  45.   set IFLWhichcursorList to list([1049, 1050], [1051, 1052], [1053, 1054], [1055, 1056], [1057, 1058], [1059, 1060], [1061, 1062], [1063, 1064], [1065, 1066])
  46.   set IFLhasLineFlashedList to list(4, 5, 2, 1, 5, 0, 0, 2, 5)
  47.   set IFLSkipList to list([39, 653, 150], [40, 404, 150], [41, 653, 106], [42, 404, 105], [43, 164, 61], [44, 404, 61], [45, 164, 105], [46, 164, 150], [47, 653, 61])
  48.   set SpeedIndex to CalcSpeedIndex()
  49.   set WaitFactor to 1
  50.   if SpeedIndex < 50 then
  51.     set WaitFactor to 0
  52.   end if
  53.   if the machineType < 200 then
  54.     set WaitFactor to 1
  55.   end if
  56.   if the machineType > 200 then
  57.     openXLib("fileio.dll")
  58.     readfile("c:\vnu\vnu.ini")
  59.     set search to "acrobat= "
  60.     set ACROPATH to findentry(search)
  61.     if ACROPATH = 0 then
  62.       set ACROPATH to EMPTY
  63.     else
  64.       set ACROPATH to char the number of chars in search + 1 to the number of chars in ACROPATH of ACROPATH
  65.     end if
  66.   end if
  67.   if the machineType > 200 then
  68.     win_initialise()
  69.   end if
  70.   if the machineType > 200 then
  71.     win_GetVersion()
  72.     if gtswhichopsystem > 311 then
  73.       set GTSWIN95 to 1
  74.     else
  75.       set GTSWIN95 to 0
  76.     end if
  77.   else
  78.     set GTSWIN95 to 0
  79.   end if
  80.   if the machineType > 200 then
  81.     StopBrowser()
  82.   end if
  83.   IFLCursorSet()
  84.   set the exitLock to 1
  85. end
  86.  
  87. on stopMovie
  88.   if the machineType > 200 then
  89.     win_exit()
  90.   end if
  91. end
  92.  
  93. on CalcSpeedIndex
  94.   set now to the ticks
  95.   set loops to 0
  96.   repeat while the ticks < (now + 60)
  97.     set loops to loops + 1
  98.   end repeat
  99.   return loops * 100 / 16500
  100. end
  101.  
  102. on Intwait mysecs
  103.   startTimer()
  104.   repeat while the timer < (mysecs * 60)
  105.   end repeat
  106. end
  107.