home *** CD-ROM | disk | FTP | other *** search
/ 321 GAMES / 321GAMES.iso / logic / runes / runes.exe / runes.DXR / 00074_GETPUZZ.ls < prev    next >
Encoding:
Text File  |  1996-07-01  |  3.2 KB  |  127 lines

  1. on GETPUZZ
  2.   global UPG, PUZZ
  3.   set PUZZ to 0
  4.   if UPG = 0 then
  5.     if (the key = "A") or (the key = "a") then
  6.       set PUZZ to 1
  7.     end if
  8.     if (the key = "B") or (the key = "b") then
  9.       set PUZZ to 2
  10.     end if
  11.     if (the key = "c") or (the key = "C") then
  12.       set PUZZ to 3
  13.     end if
  14.     if (the key = "D") or (the key = "d") then
  15.       set PUZZ to 4
  16.     end if
  17.     if (the key = "e") or (the key = "E") then
  18.       set PUZZ to 5
  19.     end if
  20.     if (the key = "F") or (the key = "f") then
  21.       set PUZZ to 6
  22.     end if
  23.     if (the key = "G") or (the key = "g") then
  24.       set PUZZ to 7
  25.     end if
  26.     if (the key = "H") or (the key = "h") then
  27.       set PUZZ to 8
  28.     end if
  29.     if (the key = "I") or (the key = "i") then
  30.       set PUZZ to 9
  31.     end if
  32.     if (the key = "j") or (the key = "J") then
  33.       set PUZZ to 10
  34.     end if
  35.   end if
  36.   if UPG = 1 then
  37.     if (the key = "A") or (the key = "a") then
  38.       set PUZZ to 1
  39.     end if
  40.     if (the key = "B") or (the key = "b") then
  41.       set PUZZ to 2
  42.     end if
  43.     if (the key = "c") or (the key = "C") then
  44.       set PUZZ to 3
  45.     end if
  46.     if (the key = "D") or (the key = "d") then
  47.       set PUZZ to 4
  48.     end if
  49.     if (the key = "e") or (the key = "E") then
  50.       set PUZZ to 5
  51.     end if
  52.     if (the key = "F") or (the key = "f") then
  53.       set PUZZ to 6
  54.     end if
  55.     if (the key = "G") or (the key = "g") then
  56.       set PUZZ to 7
  57.     end if
  58.     if (the key = "H") or (the key = "h") then
  59.       set PUZZ to 8
  60.     end if
  61.     if (the key = "I") or (the key = "i") then
  62.       set PUZZ to 9
  63.     end if
  64.     if (the key = "j") or (the key = "J") then
  65.       set PUZZ to 10
  66.     end if
  67.     if (the key = "K") or (the key = "k") then
  68.       set PUZZ to 11
  69.     end if
  70.     if (the key = "L") or (the key = "l") then
  71.       set PUZZ to 12
  72.     end if
  73.     if (the key = "M") or (the key = "m") then
  74.       set PUZZ to 13
  75.     end if
  76.     if (the key = "N") or (the key = "n") then
  77.       set PUZZ to 14
  78.     end if
  79.     if (the key = "O") or (the key = "o") then
  80.       set PUZZ to 15
  81.     end if
  82.     if (the key = "P") or (the key = "p") then
  83.       set PUZZ to 16
  84.     end if
  85.     if (the key = "q") or (the key = "Q") then
  86.       set PUZZ to 17
  87.     end if
  88.     if (the key = "R") or (the key = "r") then
  89.       set PUZZ to 18
  90.     end if
  91.     if (the key = "S") or (the key = "s") then
  92.       set PUZZ to 19
  93.     end if
  94.     if (the key = "t") or (the key = "T") then
  95.       set PUZZ to 20
  96.     end if
  97.     if (the key = "U") or (the key = "u") then
  98.       set PUZZ to 21
  99.     end if
  100.     if (the key = "v") or (the key = "V") then
  101.       set PUZZ to 22
  102.     end if
  103.     if (the key = "w") or (the key = "W") then
  104.       set PUZZ to 23
  105.     end if
  106.     if (the key = "X") or (the key = "X") then
  107.       set PUZZ to 24
  108.     end if
  109.     if (the key = "Y") or (the key = "y") then
  110.       set PUZZ to 25
  111.     end if
  112.     if (the key = "Z") or (the key = "z") then
  113.       set PUZZ to 26
  114.     end if
  115.   end if
  116.   if PUZZ <> 0 then
  117.     set the mouseDownScript to EMPTY
  118.     set the castNum of sprite 6 to 119 + PUZZ
  119.     set the castNum of sprite 7 to 119 + PUZZ
  120.     set the locH of sprite 6 to 21
  121.     set the locV of sprite 6 to 200
  122.     set the locH of sprite 7 to 575
  123.     set the locV of sprite 7 to 200
  124.     updateStage()
  125.   end if
  126. end
  127.