home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / gtswaug.dxr / 00013_GTSImplementOption.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  8.8 KB  |  196 lines

  1. on GTSImplementOption x
  2.   global GTSOptionList, GTSYesOrCancel, GTSInstall, GTSSizeList, GTSWIN95, GTSNameList, GTSInstallSprite, GTSChoosen, GTSBatchInstallList, GTSBatchPlayList, GTSBatchBothList
  3.   if GTSInstall = 0 then
  4.     if x = 3 then
  5.       if getAt(getAt(GTSSizeList, GTSChoosen), 2) = 0 then
  6.         put "Installing" && getAt(GTSNameList, GTSChoosen) && "on to your HD  in order to play it later from DOS will occupy" && getAt(getAt(GTSSizeList, GTSChoosen), 1) & "Mb of disk space.It will be installed to " & getAt(getAt(GTSSizeList, GTSChoosen), 3) & RETURN & "..........  INSTALL  ............ CANCEL ........." into field 40
  7.       else
  8.         put "Installing the files on your HD to enable you to play" && getAt(GTSNameList, GTSChoosen) && "later in DOS from the CD Rom will occupy" && getAt(getAt(GTSSizeList, GTSChoosen), 1) & "Mb of disk space. It will be installed to " & getAt(getAt(GTSSizeList, GTSChoosen), 3) & RETURN & "..........  INSTALL  ............ CANCEL ........." into field 40
  9.       end if
  10.     end if
  11.     if x = 4 then
  12.       if ((GTSWIN95 = 1) and (getAt(getAt(GTSSizeList, GTSChoosen), 4) = 0) and (getAt(getAt(GTSSizeList, GTSChoosen), 5) <> 4)) or (GTSChoosen = 5) or (GTSChoosen = 4) then
  13.         if (getAt(getAt(GTSSizeList, GTSChoosen), 5) = 0) or (getAt(getAt(GTSSizeList, GTSChoosen), 5) = 3) then
  14.           if getAt(getAt(GTSSizeList, GTSChoosen), 2) = 0 then
  15.             put "In order to play" && getAt(GTSNameList, GTSChoosen) && ",it must first be Installed to your HD . This will occupy" && getAt(getAt(GTSSizeList, GTSChoosen), 1) & "Mb of disk space and will be installed to " & getAt(getAt(GTSSizeList, GTSChoosen), 3) & RETURN & "..........  INSTALL  ............ CANCEL ........." into field 40
  16.           else
  17.             put "To play" && getAt(GTSNameList, GTSChoosen) && "from the CD Rom, some files must be installed on your HD which will occupy" && getAt(getAt(GTSSizeList, GTSChoosen), 1) & "Mb of disk space" & RETURN & "and will be installed to " & getAt(getAt(GTSSizeList, GTSChoosen), 3) & RETURN & "..........  INSTALL  ............ CANCEL ........." into field 40
  18.           end if
  19.           setAt(getAt(GTSOptionList, x), 6, 40)
  20.         else
  21.           setAt(getAt(GTSOptionList, x), 6, 39)
  22.         end if
  23.       else
  24.         setAt(getAt(GTSOptionList, x), 6, 39)
  25.       end if
  26.     end if
  27.     set ThisList to getAt(GTSOptionList, x)
  28.     set the castNum of sprite getAt(ThisList, 5) to getAt(ThisList, 6)
  29.     set the locH of sprite getAt(ThisList, 5) to getAt(ThisList, 7)
  30.     set the locV of sprite getAt(ThisList, 5) to getAt(ThisList, 8)
  31.     set the ink of sprite getAt(ThisList, 5) to 37
  32.     updateStage()
  33.     if x = 2 then
  34.       GTSPreviewGame()
  35.     else
  36.       repeat while 1
  37.         if x = 1 then
  38.           wait(1)
  39.           GTSGameStop()
  40.           exit repeat
  41.         end if
  42.         if x = 4 then
  43.           if (getAt(getAt(GTSSizeList, GTSChoosen), 4) = 1) or (getAt(getAt(GTSSizeList, GTSChoosen), 5) = 1) or (getAt(getAt(GTSSizeList, GTSChoosen), 5) = 4) then
  44.             wait(1)
  45.             put "play only"
  46.             if the machineType > 200 then
  47.               set TempName to getAt(GTSBatchPlayList, GTSChoosen)
  48.               if TempName <> "0" then
  49.                 open(the pathName & TempName)
  50.               end if
  51.             end if
  52.             GTSGameStop()
  53.             exit repeat
  54.           else
  55.             set GTSInstall to 1
  56.             if the mouseUp then
  57.               set GTSMouseUP to 1
  58.             else
  59.               set GTSMouseUP to 0
  60.             end if
  61.             if (GTSMouseUP = 1) and (the mouseCast = 40) then
  62.               set GTSMouseUP to 0
  63.               repeat while 1
  64.                 if word the mouseWord of field 40 = "INSTALL" then
  65.                   set GTSThisword to the mouseWord
  66.                   set the foreColor of word GTSThisword of field 40 to 0
  67.                   repeat while word the mouseWord of field 40 = "INSTALL"
  68.                     if the mouseDown then
  69.                       set GTSYesOrCancel to 1
  70.                       set the castNum of sprite getAt(ThisList, 5) to 38
  71.                       set the locH of sprite getAt(ThisList, 5) to 200
  72.                       set the locV of sprite getAt(ThisList, 5) to 200
  73.                       set the ink of sprite getAt(ThisList, 5) to 37
  74.                       cursor(4)
  75.                       updateStage()
  76.                     end if
  77.                   end repeat
  78.                   set the foreColor of word GTSThisword of field 40 to 255
  79.                 end if
  80.                 if word the mouseWord of field 40 = "CANCEL" then
  81.                   set GTSThisword to the mouseWord
  82.                   set the foreColor of word GTSThisword of field 40 to 0
  83.                   repeat while word the mouseWord of field 40 = "CANCEL"
  84.                     if the mouseDown then
  85.                       set GTSYesOrCancel to 2
  86.                       set the locH of sprite getAt(ThisList, 5) to 2000
  87.                       updateStage()
  88.                     end if
  89.                   end repeat
  90.                   set the foreColor of word GTSThisword of field 40 to 255
  91.                 end if
  92.                 if GTSYesOrCancel > 0 then
  93.                   exit repeat
  94.                   next repeat
  95.                 end if
  96.                 if (the mouseCast <> 40) and the mouseDown then
  97.                   beep()
  98.                 end if
  99.               end repeat
  100.               if GTSYesOrCancel = 1 then
  101.                 set GTSYesOrCancel to 0
  102.                 put "both install then play"
  103.                 if the machineType > 200 then
  104.                   set TempName to getAt(GTSBatchBothList, GTSChoosen)
  105.                   if TempName <> "0" then
  106.                     open(the pathName & TempName)
  107.                   end if
  108.                 end if
  109.                 cursor(-1)
  110.                 set the locH of sprite getAt(ThisList, 5) to 2000
  111.                 setAt(getAt(GTSSizeList, GTSChoosen), 5, 1)
  112.                 updateStage()
  113.                 GTSGameStop()
  114.                 exit repeat
  115.               end if
  116.               if GTSYesOrCancel = 2 then
  117.                 set GTSYesOrCancel to 0
  118.                 exit repeat
  119.               end if
  120.             end if
  121.           end if
  122.         end if
  123.         if x = 3 then
  124.           set GTSInstall to 1
  125.           if the mouseUp then
  126.             set GTSMouseUP to 1
  127.           else
  128.             set GTSMouseUP to 0
  129.           end if
  130.           if (GTSMouseUP = 1) and (the mouseCast = 40) then
  131.             set GTSMouseUP to 0
  132.             repeat while 1
  133.               if word the mouseWord of field 40 = "INSTALL" then
  134.                 set GTSThisword to the mouseWord
  135.                 set the foreColor of word GTSThisword of field 40 to 0
  136.                 repeat while word the mouseWord of field 40 = "INSTALL"
  137.                   if the mouseDown then
  138.                     set GTSYesOrCancel to 1
  139.                     set the castNum of sprite getAt(ThisList, 5) to 38
  140.                     set the locH of sprite getAt(ThisList, 5) to 200
  141.                     set the locV of sprite getAt(ThisList, 5) to 200
  142.                     set the ink of sprite getAt(ThisList, 5) to 37
  143.                     cursor(4)
  144.                     updateStage()
  145.                   end if
  146.                 end repeat
  147.                 set the foreColor of word GTSThisword of field 40 to 255
  148.               end if
  149.               if word the mouseWord of field 40 = "CANCEL" then
  150.                 set GTSThisword to the mouseWord
  151.                 set the foreColor of word GTSThisword of field 40 to 0
  152.                 repeat while word the mouseWord of field 40 = "CANCEL"
  153.                   if the mouseDown then
  154.                     set GTSYesOrCancel to 2
  155.                     set the locH of sprite getAt(ThisList, 5) to 2000
  156.                     updateStage()
  157.                   end if
  158.                 end repeat
  159.                 set the foreColor of word GTSThisword of field 40 to 255
  160.               end if
  161.               if GTSYesOrCancel > 0 then
  162.                 exit repeat
  163.                 next repeat
  164.               end if
  165.               if (the mouseCast <> 40) and the mouseDown then
  166.                 beep()
  167.               end if
  168.             end repeat
  169.             if GTSYesOrCancel = 1 then
  170.               set GTSYesOrCancel to 0
  171.               put "install only"
  172.               if the machineType > 200 then
  173.                 set TempName to getAt(GTSBatchInstallList, GTSChoosen)
  174.                 if TempName <> "0" then
  175.                   open(the pathName & TempName)
  176.                 end if
  177.               end if
  178.               cursor(-1)
  179.               set the locH of sprite getAt(ThisList, 5) to 2000
  180.               set the locH of sprite GTSInstallSprite to 2000
  181.               set the locH of sprite 22 to 2000
  182.               setAt(getAt(GTSOptionList, 3), 4, 5)
  183.               updateStage()
  184.               exit repeat
  185.             end if
  186.             if GTSYesOrCancel = 2 then
  187.               set GTSYesOrCancel to 0
  188.               exit repeat
  189.             end if
  190.           end if
  191.         end if
  192.       end repeat
  193.     end if
  194.   end if
  195. end
  196.