<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<el:level xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://enigma-game.org/schema/level/1 level.xsd" xmlns:el="http://enigma-game.org/schema/level/1">
  <el:protected>
    <el:info el:type="level">
      <el:identity el:title="Im-pull-se" el:subtitle="" el:id="ralf07"/>
      <el:version el:score="3" el:release="3" el:revision="2" el:status="released"/>
      <el:author  el:name="Ralf Westram" el:email="amgine@reallysoft.de" el:homepage=""/>
      <el:copyright>Copyright © 2003 Ralf Westram</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.10"/>
      <el:modes el:easy="false" el:single="true" el:network="false"/>
      <el:comments><el:code>New API converted by R. Bourquin</el:code></el:comments>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
wo["ConserveLevel"] = false

ti[" "] = ti({"fl_bluegreen", checkerboard=0}) .. {"fl_bluegray", checkerboard=1}
ti["."] = {"fl_abyss"}
ti["-"] = {"fl_sahara"}
ti["#"] = {"st_lightglass"}
ti["X"] = ti["-"] .. ti["#"]
ti["*"] = {"fl_sahara", name="doors#"} .. ti["#"]
ti["G"] = ti["-"] .. {"st_rawglass"}
ti["I"] = {"st_stoneimpulse"}
ti["J"] = ti["-"] .. ti["I"]
ti["P"] = {"st_pull"}
ti["t"] = {"it_trigger", target="counter", action="signal"}
ti["R"] = ti["t"] .. ti["P"]
ti["O"] = {"st_oxyd"}
ti["@"] = {"#ac_marble_black"}

wo(ti, " ", {
    ".........O..........",
    "........   .........",
    "......###*###.......",
    ".....#X     X#......",
    ".....# RtJtR #......",
    ".... # tGIGt # .....",
    "...O * JI IJ * O....",
    ".... # tGIGt # .....",
    ".....# RtJtR #......",
    ".....#X  @  X#......",
    "......###*###.......",
    "........   .........",
    ".........O.........."})

wo:add({"ot_counter", name="counter", state=4, target_11="close_doors", target_12="open_doors", action="callback"})
wo:shuffleOxyd()

function open_doors(value, sender)
    wo[no["doors#*"]] = ti["P"]
end

function close_doors(value, sender)
    wo[no["doors#*"]] = ti["*"]
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
