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

  1. on GESINSPCINFO GESNum
  2.   global GESPCTextList, GESMouseWordList, GESDesOnStage, GESLastText, GESTempWhichPic, GESPCTextListOne, GESPCTextListTwo, GESWhichXplor, GESReturnIcon, GESBrown, GESGreen, GESThisDEScription
  3.   repeat with d = 1 to count(GESPCTextListTwo)
  4.     set TempWhichNum to getAt(getAt(GESPCTextListTwo, d), 1)
  5.     set TemPList to getAt(GESPCTextListTwo, 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.               set the locH of sprite GESReturnIcon to 2000
  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.               setAt(getAt(TemPList, z), 3, 1)
  42.               addAt(GESMouseWordList, count(GESMouseWordList) + 1, TempWord)
  43.               set GESDesOnStage to 1
  44.               if count(GESMouseWordList) > 1 then
  45.                 set the foreColor of word getAt(GESMouseWordList, 1) of field GESLastText to GESBrown
  46.                 updateStage()
  47.                 setAt(GESMouseWordList, 1, getAt(GESMouseWordList, 2))
  48.                 deleteAt(GESMouseWordList, 2)
  49.                 repeat with f = 2 to count(TemPList)
  50.                   if (getAt(getAt(TemPList, f), 3) = 1) and (z <> f) then
  51.                     setAt(getAt(TemPList, f), 3, 0)
  52.                   end if
  53.                 end repeat
  54.               end if
  55.             end if
  56.           end if
  57.         end repeat
  58.       end repeat
  59.     end if
  60.     if getAt(TemPList, 1) = GESThisDEScription then
  61.       repeat with z = 2 to count(TemPList)
  62.         repeat with x = 5 to count(getAt(TemPList, z))
  63.           if count(getAt(getAt(TemPList, z), x)) = 1 then
  64.             set TempWhichPic to 0
  65.             exit repeat
  66.             next repeat
  67.           end if
  68.           if count(getAt(getAt(TemPList, z), x)) = 6 then
  69.             set GESTempWhichPic to getAt(getAt(TemPList, z), x)
  70.           end if
  71.         end repeat
  72.         if (the mouseCast = getAt(getAt(getAt(TemPList, z), 4), 2)) and the mouseUp then
  73.           repeat while the mouseCast = getAt(getAt(getAt(TemPList, z), 4), 2)
  74.             cursor([48, 49])
  75.             if the mouseDown then
  76.               set the locH of sprite GESReturnIcon to 500
  77.               set the locV of sprite GESReturnIcon to 380
  78.               set GESDesOnStage to 2
  79.               set the locH of sprite getAt(getAt(getAt(TemPList, z), 4), 1) to 2000
  80.               repeat with x = 5 to count(getAt(TemPList, z))
  81.                 if count(getAt(getAt(TemPList, z), x)) > 1 then
  82.                   set the locH of sprite getAt(getAt(getAt(TemPList, z), x), 1) to 2000
  83.                 end if
  84.               end repeat
  85.               set the foreColor of word getAt(GESMouseWordList, 1) of field GESLastText to GESBrown
  86.               repeat with f = 2 to count(TemPList)
  87.                 if getAt(getAt(TemPList, f), 3) = 1 then
  88.                   setAt(getAt(TemPList, f), 3, 0)
  89.                 end if
  90.               end repeat
  91.               updateStage()
  92.               set GESMouseWordList to list()
  93.             end if
  94.           end repeat
  95.           cursor(-1)
  96.         end if
  97.         if GESTempWhichPic <> 0 then
  98.           if the mouseCast = getAt(GESTempWhichPic, 2) then
  99.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) + 1
  100.             cursor([48, 49])
  101.             updateStage()
  102.             repeat while rollOver(22)
  103.               if the mouseDown then
  104.                 set the castNum of sprite 36 to 257
  105.                 set the locH of sprite 36 to 517
  106.                 set the locV of sprite 36 to 392
  107.                 updateStage()
  108.               end if
  109.             end repeat
  110.             set the locH of sprite 36 to 2000
  111.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) - 1
  112.             updateStage()
  113.             cursor(-1)
  114.           end if
  115.         end if
  116.       end repeat
  117.     end if
  118.   end repeat
  119. end
  120.