home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 July / WPCJUL96.ISO / file.exe / GESFINJ.DXR / 00014_GESPCINFO.ls < prev    next >
Encoding:
Text File  |  1996-05-15  |  5.3 KB  |  117 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 foreColor of word the mouseWord of field GESNum to GESGreen
  27.               set TempWord to the mouseWord
  28.               cursor(-1)
  29.               repeat with s = 4 to count(getAt(TempList, z))
  30.                 set TemPListThree to getAt(TempList, z)
  31.                 if count(getAt(TemPListThree, s)) > 1 then
  32.                   set the castNum of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 2)
  33.                   set the locH of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 3)
  34.                   set the locV of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 4)
  35.                   set the ink of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 5)
  36.                   next repeat
  37.                 end if
  38.                 set the locH of sprite getAt(getAt(TemPListThree, s), 1) to 2000
  39.               end repeat
  40.               updateStage()
  41.               addAt(GESMouseWordList, count(GESMouseWordList) + 1, TempWord)
  42.               set GESDesOnStage to 1
  43.               if count(GESMouseWordList) > 1 then
  44.                 set the foreColor of word getAt(GESMouseWordList, 1) of field GESLastText to GESBrown
  45.                 updateStage()
  46.                 setAt(GESMouseWordList, 1, getAt(GESMouseWordList, 2))
  47.                 deleteAt(GESMouseWordList, 2)
  48.                 repeat with f = 2 to count(TempList)
  49.                   if (getAt(getAt(TempList, f), 3) = 1) and (z <> f) then
  50.                     setAt(getAt(TempList, f), 3, 0)
  51.                   end if
  52.                 end repeat
  53.               end if
  54.             end if
  55.           end if
  56.         end repeat
  57.       end repeat
  58.     end if
  59.     if getAt(TempList, 1) = GESThisDEScription then
  60.       repeat with z = 2 to count(TempList)
  61.         repeat with x = 5 to count(getAt(TempList, z))
  62.           if count(getAt(getAt(TempList, z), x)) = 1 then
  63.             set TempWhichPic to 0
  64.             exit repeat
  65.             next repeat
  66.           end if
  67.           if count(getAt(getAt(TempList, z), x)) = 6 then
  68.             set GESTempWhichPic to getAt(getAt(TempList, z), x)
  69.           end if
  70.         end repeat
  71.         if (the mouseCast = getAt(getAt(getAt(TempList, z), 4), 2)) and the mouseUp then
  72.           repeat while the mouseCast = getAt(getAt(getAt(TempList, z), 4), 2)
  73.             cursor([48, 49])
  74.             if the mouseDown then
  75.               set GESDesOnStage to 2
  76.               set the locH of sprite getAt(getAt(getAt(TempList, z), 4), 1) to 2000
  77.               repeat with x = 5 to count(getAt(TempList, z))
  78.                 if count(getAt(getAt(TempList, z), x)) > 1 then
  79.                   set the locH of sprite getAt(getAt(getAt(TempList, z), x), 1) to 2000
  80.                 end if
  81.               end repeat
  82.               set the foreColor of word getAt(GESMouseWordList, 1) of field GESLastText to GESBrown
  83.               repeat with f = 2 to count(TempList)
  84.                 if getAt(getAt(TempList, f), 3) = 1 then
  85.                   setAt(getAt(TempList, f), 3, 0)
  86.                 end if
  87.               end repeat
  88.               updateStage()
  89.               set GESMouseWordList to list()
  90.             end if
  91.           end repeat
  92.           cursor(-1)
  93.         end if
  94.         if GESTempWhichPic <> 0 then
  95.           if the mouseCast = getAt(GESTempWhichPic, 2) then
  96.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) + 1
  97.             cursor([48, 49])
  98.             updateStage()
  99.             repeat while rollOver(22)
  100.               if the mouseDown then
  101.                 set the castNum of sprite 36 to 257
  102.                 set the locH of sprite 36 to 517
  103.                 set the locV of sprite 36 to 392
  104.                 updateStage()
  105.               end if
  106.             end repeat
  107.             set the locH of sprite 36 to 2000
  108.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) - 1
  109.             cursor(-1)
  110.             updateStage()
  111.           end if
  112.         end if
  113.       end repeat
  114.     end if
  115.   end repeat
  116. end
  117.