home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 August / GSSH0804.iso / Geschicklichkeit / Enigma / Enigma-081.exe / data / levels / siegfried84.lua < prev    next >
Text File  |  2003-04-19  |  6KB  |  135 lines

  1. --Siegfried Fennig 19.04.2003 Rev.0
  2.  
  3. levelw = 20
  4. levelh = 13
  5.  
  6. create_world(levelw, levelh)
  7. enigma.ConserveLevel = FALSE
  8. oxyd_default_flavor = "d"
  9. fill_floor("fl-abyss", 0, 0, level_width, level_height)
  10. fill_floor("fl-rough", 1, 2, 18, 9)
  11.  
  12. function renderLine( line, pattern)
  13.     for i=1, strlen(pattern) do
  14.       local c = strsub( pattern, i, i)
  15.       if c =="t" then
  16.          set_stone("st-turnstile",i-1,line)
  17.       elseif c == "n" then
  18.          set_stone("st-turnstile-n",i-1,line)
  19.       elseif c == "s" then
  20.          set_stone("st-turnstile-s",i-1,line)
  21.       elseif c == "e" then
  22.          set_stone("st-turnstile-e",i-1,line)
  23.       elseif c == "w" then
  24.          set_stone("st-turnstile-w",i-1,line)
  25.       elseif c == "d" then
  26.          set_stone("st-door_a",i-1,line)
  27.       elseif c == "o" then
  28.          oxyd( i-1, line)
  29.       elseif c == "a" then
  30.          set_actor("ac-blackball", i-.5,line+.5, {player=0})
  31.         end
  32.     end
  33. end
  34. --              01234567890123456789
  35. renderLine(00, "                    ")
  36. renderLine(01, "                    ")
  37. renderLine(02, "  wte wte           ")
  38. renderLine(03, "   s   s            ")
  39. renderLine(04, "  wte wte   d   d   ")
  40. renderLine(05, " n    n  n   o o    ")
  41. renderLine(06, "wtewtet wte  d d  a ")
  42. renderLine(07, "      s      o o    ")
  43. renderLine(08, "  wte wte   d   d   ")
  44. renderLine(09, "   n   n            ")
  45. renderLine(10, "  wte wte           ")
  46. renderLine(11, "                    ")
  47. renderLine(12, "                    ")
  48. --              01234567890123456789
  49.  
  50. oxyd_shuffle()
  51.  
  52. set_item("it-trigger", 4, 5)
  53. set_item("it-trigger", 6, 5)
  54. set_item("it-trigger", 4, 7)
  55. set_item("it-trigger", 6, 7)
  56.  
  57. set_item("it-trigger",  2, 3, {target="door01", action="openclose"})
  58. set_item("it-trigger",  3, 3, {target="door02", action="openclose"})
  59. set_item("it-trigger",  4, 3, {target="door03", action="openclose"})
  60. set_item("it-trigger",  5, 3, {target="door04", action="openclose"})
  61. set_item("it-trigger",  6, 3, {target="door05", action="openclose"})
  62. set_item("it-trigger",  7, 3, {target="door06", action="openclose"})
  63. set_item("it-trigger",  8, 3, {target="door07", action="openclose"})
  64. set_item("it-trigger",  2, 4, {target="door08", action="openclose"})
  65. set_item("it-trigger",  4, 4, {target="door10", action="openclose"})
  66. set_item("it-trigger",  5, 4, {target="door11", action="openclose"})
  67. set_item("it-trigger",  6, 4, {target="door12", action="openclose"})
  68. set_item("it-trigger",  8, 4, {target="door14", action="openclose"})
  69. set_item("it-trigger",  2, 5, {target="door15", action="openclose"})
  70. set_item("it-trigger",  3, 5, {target="door16", action="openclose"})
  71. set_item("it-trigger",  5, 5, {target="door18", action="openclose"})
  72. set_item("it-trigger",  7, 5, {target="door20", action="openclose"})
  73. set_item("it-trigger",  8, 5, {target="door21", action="openclose"})
  74. set_item("it-trigger",  2, 6, {target="door22", action="openclose"})
  75. set_item("it-trigger",  3, 6, {target="door23", action="openclose"})
  76. set_item("it-trigger",  5, 6, {target="door25", action="openclose"})
  77. set_item("it-trigger",  7, 6, {target="door27", action="openclose"})
  78. set_item("it-trigger",  8, 6, {target="door28", action="openclose"})
  79. set_item("it-trigger",  2, 7, {target="door29", action="openclose"})
  80. set_item("it-trigger",  3, 7, {target="door30", action="openclose"})
  81. set_item("it-trigger",  5, 7, {target="door32", action="openclose"})
  82. set_item("it-trigger",  7, 7, {target="door34", action="openclose"})
  83. set_item("it-trigger",  8, 7, {target="door35", action="openclose"})
  84. set_item("it-trigger",  2, 8, {target="door36", action="openclose"})
  85. set_item("it-trigger",  4, 8, {target="door38", action="openclose"})
  86. set_item("it-trigger",  5, 8, {target="door39", action="openclose"})
  87. set_item("it-trigger",  6, 8, {target="door40", action="openclose"})
  88. set_item("it-trigger",  8, 8, {target="door42", action="openclose"})
  89. set_item("it-trigger",  2, 9, {target="door43", action="openclose"})
  90. set_item("it-trigger",  3, 9, {target="door44", action="openclose"})
  91. set_item("it-trigger",  4, 9, {target="door45", action="openclose"})
  92. set_item("it-trigger",  5, 9, {target="door46", action="openclose"})
  93. set_item("it-trigger",  6, 9, {target="door47", action="openclose"})
  94. set_item("it-trigger",  7, 9, {target="door48", action="openclose"})
  95. set_item("it-trigger",  8, 9, {target="door49", action="openclose"})
  96.  
  97. set_stone("st-door_a",11, 3, {name="door01"})
  98. set_stone("st-door_a",12, 3, {name="door02"})
  99. set_stone("st-door_a",13, 3, {name="door03"})
  100. set_stone("st-door_a",14, 3, {name="door04"})
  101. set_stone("st-door_a",15, 3, {name="door05"})
  102. set_stone("st-door_a",16, 3, {name="door06"})
  103. set_stone("st-door_a",17, 3, {name="door07"})
  104. set_stone("st-door_a",11, 4, {name="door08"})
  105. set_stone("st-door_a",13, 4, {name="door10"})
  106. set_stone("st-door_a",14, 4, {name="door11"})
  107. set_stone("st-door_a",15, 4, {name="door12"})
  108. set_stone("st-door_a",17, 4, {name="door14"})
  109. set_stone("st-door_a",11, 5, {name="door15"})
  110. set_stone("st-door_a",12, 5, {name="door16"})
  111. set_stone("st-door_a",14, 5, {name="door18"})
  112. set_stone("st-door_a",16, 5, {name="door20"})
  113. set_stone("st-door_a",17, 5, {name="door21"})
  114. set_stone("st-door_a",11, 6, {name="door22"})
  115. set_stone("st-door_a",12, 6, {name="door23"})
  116. set_stone("st-door_a",14, 6, {name="door25"})
  117. set_stone("st-door_a",16, 6, {name="door27"})
  118. set_stone("st-door_a",17, 6, {name="door28"})
  119. set_stone("st-door_a",11, 7, {name="door29"})
  120. set_stone("st-door_a",12, 7, {name="door30"})
  121. set_stone("st-door_a",14, 7, {name="door32"})
  122. set_stone("st-door_a",16, 7, {name="door34"})
  123. set_stone("st-door_a",17, 7, {name="door35"})
  124. set_stone("st-door_a",11, 8, {name="door36"})
  125. set_stone("st-door_a",13, 8, {name="door38"})
  126. set_stone("st-door_a",14, 8, {name="door39"})
  127. set_stone("st-door_a",15, 8, {name="door40"})
  128. set_stone("st-door_a",17, 8, {name="door42"})
  129. set_stone("st-door_a",11, 9, {name="door43"})
  130. set_stone("st-door_a",12, 9, {name="door44"})
  131. set_stone("st-door_a",13, 9, {name="door45"})
  132. set_stone("st-door_a",14, 9, {name="door46"})
  133. set_stone("st-door_a",15, 9, {name="door47"})
  134. set_stone("st-door_a",16, 9, {name="door48"})
  135. set_stone("st-door_a",17, 9, {name="door49"})