home *** CD-ROM | disk | FTP | other *** search
/ Seeker / Seeker.iso / files_w / suzan.dir / 00034.ls < prev    next >
Encoding:
Text File  |  1994-12-03  |  800 b   |  35 lines

  1. on exitFrame
  2.   global getpoints, getitems, getpieces, oldsuzan
  3.   set p to 0
  4.   repeat with i = 1 to 8
  5.     if getAt(getpoints, i) = 1 then
  6.       set p to 1
  7.       exit repeat
  8.     end if
  9.   end repeat
  10.   puppetSprite(30, 1)
  11.   set the castNum of sprite 30 to the castNum of sprite 30 + p
  12.   repeat with i = 1 to 7
  13.     if not getAt(getitems, i) then
  14.       puppetSprite(i + 30, 1)
  15.       set the castNum of sprite (i + 30) to 0
  16.     end if
  17.   end repeat
  18.   puppetSprite(48, 1)
  19.   set the castNum of sprite 48 to 210
  20.   set the locH of sprite 48 to 0
  21.   set the locV of sprite 48 to 0
  22.   if getAt(getpieces, 10) then
  23.     puppetSprite(3, 1)
  24.   end if
  25.   if getAt(getpoints, 2) and getAt(getpoints, 3) then
  26.     go("scene3")
  27.   else
  28.     if oldsuzan then
  29.       go("scene2")
  30.     else
  31.       go("scene1")
  32.     end if
  33.   end if
  34. end
  35.