home *** CD-ROM | disk | FTP | other *** search
/ Seeker / Seeker.iso / files_w / 3d_dun.dir / 00066.ls < prev    next >
Encoding:
Text File  |  1994-12-01  |  2.3 KB  |  75 lines

  1. on mouseUp
  2.   global map, posx, posy, talknumber, getmap
  3.   if getAt(getAt(map, posy - 1), posx) = 0 then
  4.     set posy to posy - 1
  5.     showviews()
  6.     if getmap then
  7.       preview()
  8.     else
  9.       if (the castNum of sprite 20 = the number of cast "E") and ((posx = 13) and (posy = 2)) and not getmap then
  10.         set getmap to 1
  11.         play frame "getmap"
  12.       end if
  13.     end if
  14.     updateStage()
  15.     if talknumber <= 3 then
  16.       set p to 0
  17.       if the castNum of sprite 20 = the number of cast "N" then
  18.         if ((posx = 3) and (posy = 9)) or ((posx = 10) and (posy = 9)) or ((posx = 17) and (posy = 5)) or ((posx = 8) and (posy = 20)) then
  19.           set p to 1
  20.         end if
  21.       else
  22.         if the castNum of sprite 20 = the number of cast "E" then
  23.           if ((posx = 9) and (posy = 30)) or ((posx = 9) and (posy = 23)) or ((posx = 5) and (posy = 16)) or ((posx = 14) and (posy = 19)) or ((posx = 20) and (posy = 25)) then
  24.             set p to 1
  25.           end if
  26.         else
  27.           if the castNum of sprite 20 = the number of cast "S" then
  28.             if ((posx = 30) and (posy = 14)) or ((posx = 23) and (posy = 14)) or ((posx = 16) and (posy = 18)) or ((posx = 25) and (posy = 3)) then
  29.               set p to 1
  30.             end if
  31.           else
  32.             if the castNum of sprite 20 = the number of cast "W" then
  33.               if ((posx = 14) and (posy = 3)) or ((posx = 14) and (posy = 10)) or ((posx = 18) and (posy = 17)) or ((posx = 3) and (posy = 8)) then
  34.                 set p to 1
  35.               end if
  36.             end if
  37.           end if
  38.         end if
  39.       end if
  40.       if p = 1 then
  41.         play frame "TALK_" & string(talknumber)
  42.       end if
  43.     else
  44.       set r to random(100)
  45.       if r <= 8 then
  46.         go("ENEMY")
  47.       else
  48.         if r >= 98 then
  49.           play frame "tostart"
  50.         end if
  51.       end if
  52.     end if
  53.   else
  54.     if getAt(getAt(map, posy - 1), posx) = 2 then
  55.       if (posx = 2) and (posy = 3) then
  56.         repeat with i = 3 to 5
  57.           set the cursor of sprite i to 0
  58.         end repeat
  59.         go("goal")
  60.       else
  61.         if (posx = 21) and (posy = 8) and (talknumber <= 2) then
  62.           repeat with i = 3 to 5
  63.             set the cursor of sprite i to 0
  64.           end repeat
  65.           go("start")
  66.         else
  67.           play frame "ouch"
  68.         end if
  69.       end if
  70.     else
  71.       play frame "ouch"
  72.     end if
  73.   end if
  74. end
  75.