home *** CD-ROM | disk | FTP | other *** search
/ CD PowerPlay 7 / cdpowerplayissue.iso / sources / sources.dxr / 00043.ls < prev    next >
Encoding:
Text File  |  1994-10-17  |  8.9 KB  |  177 lines

  1. on startMovie
  2.   global isEXE, userColourDepth, cd_volume, gloss_texts, glossList
  3.   set isEXE to 1
  4.   set the centerStage to 1
  5.   if ((the stageTop >= 0) and (the stageLeft >= 0)) = 1 then
  6.     set cd_volume to whichCDVolume()
  7.     if cd_volume <> EMPTY then
  8.       if the machineType < 256 then
  9.         if the colorQD = 1 then
  10.           set userColourDepth to the colorDepth
  11.         else
  12.           fatalError("Sources of Faith can only be run on a Macintosh that can be set" && "to 8-bit colour.")
  13.         end if
  14.       else
  15.         if the colorDepth < 8 then
  16.           fatalError("Please update your Video Driver to allow 8-bit colour before" && "running Sources of Faith.")
  17.         end if
  18.       end if
  19.     else
  20.       fatalError("The Sources of Faith CD-ROM does not appear to be present on your system.")
  21.     end if
  22.   else
  23.     fatalError("Sources of Faith can only be run on a computer with a 640x480 monitor.")
  24.   end if
  25.   sourceSearchPaths()
  26.   sourceMediaPaths()
  27.   linkExternalObjects()
  28.   if the quickTimePresent = 0 then
  29.     fatalError("QuickTime is not installed on your computer.")
  30.   end if
  31.   set glossList to getFileContent(gloss_texts & "SofIndex.txt")
  32.   when keyDown then soundSwitch(the keycode)
  33. end
  34.  
  35. on linkExternalObjects
  36.   global cd_volume
  37.   if the machineType < 256 then
  38.   else
  39.     openXLib(cd_volume & "fileio.dll")
  40.     openXLib(cd_volume & "mciqtenu.dll")
  41.     openXLib(cd_volume & "playenu.dll")
  42.     openXLib(cd_volume & "qthndlr.dll")
  43.     openXLib(cd_volume & "qtim.dll")
  44.     openXLib(cd_volume & "qtimcmgr.dll")
  45.     openXLib(cd_volume & "qtole.dll")
  46.     openXLib(cd_volume & "qtvhdw.dll")
  47.     openXLib(cd_volume & "viewenu.dll")
  48.   end if
  49. end
  50.  
  51. on whichCDVolume
  52.   return the pathName
  53. end
  54.  
  55. on sourceSearchPaths
  56.   global cd_volume
  57.   if the machineType < 256 then
  58.     append(the searchPath, cd_volume)
  59.     append(the searchPath, cd_volume & "IslaMovs:")
  60.     append(the searchPath, cd_volume & "IslaSnds:")
  61.     append(the searchPath, cd_volume & "Glossary:")
  62.   else
  63.     append(the searchPath, cd_volume)
  64.     append(the searchPath, cd_volume & "IslaMovs\")
  65.     append(the searchPath, cd_volume & "IslaSnds\")
  66.     append(the searchPath, cd_volume & "Glossary\")
  67.   end if
  68. end
  69.  
  70. on sourceMediaPaths
  71.   global cd_volume, mmd_movies, gloss_texts, main_sounds, isla_sounds, isla_movies
  72.   if the machineType < 256 then
  73.     set mmd_movies to cd_volume
  74.     set gloss_texts to cd_volume & "Glossary:"
  75.     set main_sounds to cd_volume & "MainSnds:"
  76.     set isla_sounds to cd_volume & "IslaSnds:"
  77.     set isla_movies to cd_volume & "IslaMovs:"
  78.   else
  79.     set mmd_movies to cd_volume
  80.     set gloss_texts to cd_volume & "Glossary\"
  81.     set main_sounds to cd_volume & "MainSnds\"
  82.     set isla_sounds to cd_volume & "IslaSnds\"
  83.     set isla_movies to cd_volume & "IslaMovs\"
  84.   end if
  85. end
  86.  
  87. on helper
  88.   if the mouseCast = 509 then
  89.     put "If this button is blue, click for textual information. If a word appears in red" && "in the text field, it is a Glossary term. Click it and you will receive a brief" && "explanation of its meaning. If this button is grey, no further information is" && "available." into field "help"
  90.   else
  91.     if the mouseCast = 501 then
  92.       put "Click this button to Quit from Sources of Faith." into field "help"
  93.     else
  94.       if the mouseCast = 1 then
  95.         put "Click this button to print the textual information displayed when you click the blue" && "Information button. It is not possible to print images, but refer to your" && "computer's user manual to discover how to make a 'screen dump'." into field "help"
  96.       else
  97.         if the mouseCast = 449 then
  98.           set theReligion to (the mouseH - the left of sprite 6) / 78
  99.           if theReligion = 1 then
  100.             put "The buttons along the bottom of the screen are used to select a particular religion." && "This one is Animism. It looks at Australian Aborigines." into field "help"
  101.           else
  102.             if theReligion = 2 then
  103.               put "The buttons along the bottom of the screen are used to select a particular religion." && "This one is Buddhism." into field "help"
  104.             else
  105.               if theReligion = 3 then
  106.                 put "The buttons along the bottom of the screen are used to select a particular religion." && "This one is Christianity." into field "help"
  107.               else
  108.                 if theReligion = 4 then
  109.                   put "The buttons along the bottom of the screen are used to select a particular religion." && "This one is Hinduism." into field "help"
  110.                 else
  111.                   if theReligion = 5 then
  112.                     put "The buttons along the bottom of the screen are used to select a particular religion." && "This one is Islam." into field "help"
  113.                   else
  114.                     if theReligion = 6 then
  115.                       put "The buttons along the bottom of the screen are used to select a particular religion." && "This one is Judaism." into field "help"
  116.                     else
  117.                       if theReligion = 7 then
  118.                         put "The buttons along the bottom of the screen are used to select a particular religion." && "This one is Taoism." into field "help"
  119.                       else
  120.                         if theReligion = 0 then
  121.                           put "This buttons is called the 'Compass'. Click it to hide all the buttons on the screen" && "so that you can see certain information more clearly. Click it again to" && "show all the buttons once more." into field "help"
  122.                         end if
  123.                       end if
  124.                     end if
  125.                   end if
  126.                 end if
  127.               end if
  128.             end if
  129.           end if
  130.         else
  131.           if the mouseCast = 25 then
  132.             set subjectCount to the height of sprite 19 / 8
  133.             set theSubject to ((the mouseV - the top of sprite 19) / subjectCount) + 1
  134.             if theSubject = 1 then
  135.               put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one describes Gods, Deities and Mythical beings." into field "help"
  136.             else
  137.               if theSubject = 2 then
  138.                 put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one describes Life Cycles and Rites of Passage." into field "help"
  139.               else
  140.                 if theSubject = 3 then
  141.                   put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one describes Moral Codes and Ethics." into field "help"
  142.                 else
  143.                   if theSubject = 4 then
  144.                     put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one describes Cultural Achievements (Art, Architecture, Literature and" && "Science)." into field "help"
  145.                   else
  146.                     if theSubject = 5 then
  147.                       put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one describes Festivals and Celebrations." into field "help"
  148.                     else
  149.                       if theSubject = 6 then
  150.                         put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one describes Geographic Spread, Origins and History." into field "help"
  151.                       else
  152.                         if theSubject = 7 then
  153.                           put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one describes major Variations, Branches and Sects." into field "help"
  154.                         else
  155.                           if theSubject = 8 then
  156.                             put "The buttons in the vertical are used to select information about the current" && "religion on a particular topic. Each religion is covered by the same topics." && "This one is a short introductory narration and slide show." into field "help"
  157.                           end if
  158.                         end if
  159.                       end if
  160.                     end if
  161.                   end if
  162.                 end if
  163.               end if
  164.             end if
  165.           else
  166.             if the machineType < 256 then
  167.               put "Hold down the <Option>-key down and press the <Space>-bar to switch sound" && "on or off" into field "help"
  168.             else
  169.               put "Hold down the <Alt>-key down and press the <Space>-bar to switch sound" && "on or off" into field "help"
  170.             end if
  171.           end if
  172.         end if
  173.       end if
  174.     end if
  175.   end if
  176. end
  177.