home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1997 December / WPCDEC97.ISO / DXRS / GESWDEC.DXR / 00014_GESPCINFO.ls < prev    next >
Encoding:
Text File  |  1997-10-13  |  5.4 KB  |  119 lines

  1. on GESPCINFO GESNum
  2.   global GESPCTextList, GESMouseWordList, GESDesOnStage, GESLastText, GESTempWhichPic, GESPCTextListOne, GESWhichXplor, GESReturnIcon, GESBrown, GESGreen, GESThisDEScription
  3.   repeat with d = 1 to count(GESPCTextListOne)
  4.     set TempWhichNum to getAt(getAt(GESPCTextListOne, d), 1)
  5.     set TemPList to getAt(GESPCTextListOne, d)
  6.     if (TempWhichNum = GESNum) and the mouseUp then
  7.       set GESThisDEScription to TempWhichNum
  8.       repeat while the mouseCast = TempWhichNum
  9.         repeat with z = 2 to count(TemPList)
  10.           if (GESLastText = 0) or (GESLastText <> TempWhichNum) then
  11.             set GESLastText to TempWhichNum
  12.           end if
  13.           if (getAt(getAt(TemPList, z), 2) = 1) and (word the mouseWord of field GESNum <> getAt(getAt(TemPList, z), 1)) then
  14.             setAt(getAt(TemPList, z), 2, 0)
  15.             cursor(-1)
  16.           end if
  17.           set GESCurrentWord to word the mouseWord of field GESNum
  18.           if GESCurrentWord = getAt(getAt(TemPList, z), 1) then
  19.             if getAt(getAt(TemPList, z), 3) = 0 then
  20.               setAt(getAt(TemPList, z), 2, 1)
  21.               cursor([48, 49])
  22.               updateStage()
  23.             end if
  24.             if the mouseDown and (getAt(getAt(TemPList, z), 3) = 0) then
  25.               setAt(getAt(TemPList, z), 3, 1)
  26.               set the locH of sprite 33 to 2000
  27.               set the locH of sprite 35 to 2000
  28.               set the foreColor of word the mouseWord of field GESNum to GESGreen
  29.               set TempWord to the mouseWord
  30.               cursor(-1)
  31.               repeat with s = 4 to count(getAt(TemPList, z))
  32.                 set TemPListThree to getAt(TemPList, z)
  33.                 if count(getAt(TemPListThree, s)) > 1 then
  34.                   set the castNum of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 2)
  35.                   set the locH of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 3)
  36.                   set the locV of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 4)
  37.                   set the ink of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 5)
  38.                   next repeat
  39.                 end if
  40.                 set the locH of sprite getAt(getAt(TemPListThree, s), 1) to 2000
  41.               end repeat
  42.               updateStage()
  43.               addAt(GESMouseWordList, count(GESMouseWordList) + 1, TempWord)
  44.               set GESDesOnStage to 1
  45.               if count(GESMouseWordList) > 1 then
  46.                 set the foreColor of word getAt(GESMouseWordList, 1) of field GESLastText to GESBrown
  47.                 updateStage()
  48.                 setAt(GESMouseWordList, 1, getAt(GESMouseWordList, 2))
  49.                 deleteAt(GESMouseWordList, 2)
  50.                 repeat with f = 2 to count(TemPList)
  51.                   if (getAt(getAt(TemPList, f), 3) = 1) and (z <> f) then
  52.                     setAt(getAt(TemPList, f), 3, 0)
  53.                   end if
  54.                 end repeat
  55.               end if
  56.             end if
  57.           end if
  58.         end repeat
  59.       end repeat
  60.     end if
  61.     if getAt(TemPList, 1) = GESThisDEScription then
  62.       repeat with z = 2 to count(TemPList)
  63.         repeat with x = 5 to count(getAt(TemPList, z))
  64.           if count(getAt(getAt(TemPList, z), x)) = 1 then
  65.             set TempWhichPic to 0
  66.             exit repeat
  67.             next repeat
  68.           end if
  69.           if count(getAt(getAt(TemPList, z), x)) = 6 then
  70.             set GESTempWhichPic to getAt(getAt(TemPList, z), x)
  71.           end if
  72.         end repeat
  73.         if (the mouseCast = getAt(getAt(getAt(TemPList, z), 4), 2)) and the mouseUp then
  74.           repeat while the mouseCast = getAt(getAt(getAt(TemPList, z), 4), 2)
  75.             cursor([48, 49])
  76.             if the mouseDown then
  77.               set GESDesOnStage to 2
  78.               set the locH of sprite getAt(getAt(getAt(TemPList, z), 4), 1) to 2000
  79.               repeat with x = 5 to count(getAt(TemPList, z))
  80.                 if count(getAt(getAt(TemPList, z), x)) > 1 then
  81.                   set the locH of sprite getAt(getAt(getAt(TemPList, z), x), 1) to 2000
  82.                 end if
  83.               end repeat
  84.               set the foreColor of word getAt(GESMouseWordList, 1) of field GESLastText to GESBrown
  85.               repeat with f = 2 to count(TemPList)
  86.                 if getAt(getAt(TemPList, f), 3) = 1 then
  87.                   setAt(getAt(TemPList, f), 3, 0)
  88.                 end if
  89.               end repeat
  90.               updateStage()
  91.               set GESMouseWordList to list()
  92.             end if
  93.           end repeat
  94.           cursor(-1)
  95.         end if
  96.         if GESTempWhichPic <> 0 then
  97.           if the mouseCast = getAt(GESTempWhichPic, 2) then
  98.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) + 1
  99.             cursor([48, 49])
  100.             updateStage()
  101.             repeat while rollOver(22)
  102.               if the mouseDown then
  103.                 set the castNum of sprite 36 to 257
  104.                 set the locH of sprite 36 to 517
  105.                 set the locV of sprite 36 to 392
  106.                 updateStage()
  107.               end if
  108.             end repeat
  109.             set the locH of sprite 36 to 2000
  110.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) - 1
  111.             cursor(-1)
  112.             updateStage()
  113.           end if
  114.         end if
  115.       end repeat
  116.     end if
  117.   end repeat
  118. end
  119.