home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / geswaug.dxr / 00023_GESNOTEINFO.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  5.3 KB  |  118 lines

  1. on GESNOTEINFO GESNum
  2.   global GESPCTextList, GESMouseWordList, GESDesOnStage, GESLastText, GESTempWhichPic, GESNOTETextList, GESWhichXplor, GESReturnIcon, GESNOTBlue, GESNOTBrown, GESThisDEScription
  3.   repeat with d = 1 to count(GESNOTETextList)
  4.     set TempWhichNum to getAt(getAt(GESNOTETextList, d), 1)
  5.     set TemPList to getAt(GESNOTETextList, 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 11 to 2000
  27.               set the foreColor of word the mouseWord of field GESNum to GESNOTBrown
  28.               set TempWord to the mouseWord
  29.               cursor(-1)
  30.               repeat with s = 4 to count(getAt(TemPList, z))
  31.                 set TemPListThree to getAt(TemPList, z)
  32.                 if count(getAt(TemPListThree, s)) > 1 then
  33.                   set the castNum of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 2)
  34.                   set the locH of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 3)
  35.                   set the locV of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 4)
  36.                   set the ink of sprite getAt(getAt(TemPListThree, s), 1) to getAt(getAt(TemPListThree, s), 5)
  37.                   next repeat
  38.                 end if
  39.                 set the locH of sprite getAt(getAt(TemPListThree, s), 1) to 2000
  40.               end repeat
  41.               updateStage()
  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 GESNOTBlue
  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 GESDesOnStage to 2
  77.               set the locH of sprite getAt(getAt(getAt(TemPList, z), 4), 1) to 2000
  78.               repeat with x = 5 to count(getAt(TemPList, z))
  79.                 if count(getAt(getAt(TemPList, z), x)) > 1 then
  80.                   set the locH of sprite getAt(getAt(getAt(TemPList, z), x), 1) to 2000
  81.                 end if
  82.               end repeat
  83.               set the foreColor of word getAt(GESMouseWordList, 1) of field GESLastText to GESNOTBlue
  84.               repeat with f = 2 to count(TemPList)
  85.                 if getAt(getAt(TemPList, f), 3) = 1 then
  86.                   setAt(getAt(TemPList, f), 3, 0)
  87.                 end if
  88.               end repeat
  89.               updateStage()
  90.               set GESMouseWordList to list()
  91.             end if
  92.           end repeat
  93.           cursor(-1)
  94.         end if
  95.         if GESTempWhichPic <> 0 then
  96.           if the mouseCast = getAt(GESTempWhichPic, 2) then
  97.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) + 1
  98.             cursor([48, 49])
  99.             updateStage()
  100.             repeat while rollOver(22)
  101.               if the mouseDown then
  102.                 set the castNum of sprite 36 to 257
  103.                 set the locH of sprite 36 to 517
  104.                 set the locV of sprite 36 to 392
  105.                 updateStage()
  106.               end if
  107.             end repeat
  108.             set the locH of sprite 36 to 2000
  109.             set the castNum of sprite getAt(GESTempWhichPic, 1) to the castNum of sprite getAt(GESTempWhichPic, 1) - 1
  110.             cursor(-1)
  111.             updateStage()
  112.           end if
  113.         end if
  114.       end repeat
  115.     end if
  116.   end repeat
  117. end
  118.