<?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="Blue Screen Of Death" el:subtitle="" el:id="pulley10"/>
      <el:version el:score="2" el:release="2" el:revision="1" el:status="released"/>
      <el:author  el:name="Mark Pulley" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2008 Mark Pulley</el:copyright>
      <el:license el:type="GPL v2.0 or above" el:open="true"/>
      <el:compatibility el:enigma="1.00">
       <el:dependency el:path="lib/ant" el:id="lib/ant" el:release="1" el:preload="true"/>
      </el:compatibility>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:score el:easy="4:46" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
function file_oxyd(x,y,f)
    oxyd_default_flavor=f
    oxyd(x,y)
end

create_world(21,13)
cells={}
cells[" "]=cell{floor="fl-rough-blue"}
cells["*"]=cell{stone="st-blue-sand"}
cells["0"]=cell{parent={{file_oxyd,"b"}}}
cells["1"]=cell{stone="st-likeoxydc"}
cells["_"]=cell{stone="st-window"}
cells["A"]=cell{floor="fl-swamp"}
cells["B"]=cell{stone="st-stone_break"}
cells["D"]=cell{stone={face="st-door_a",attr={name="Gate10"}}}
cells["E"]=cell{item={face="it-trigger",attr={action="close",target="Gate10"}}}
cells["F"]=cell{stone={face="st-door_a",attr={name="Gate9"}}}
cells["G"]=cell{stone={face="st-door_a",attr={name="Gate1"}}}
cells["H"]=cell{stone={face="st-coffee"},item={"it-hammer"}} --hammer hidden under stone
cells["I"]=cell{stone={face="st-door_a",attr={name="Gate2"}}}
cells["J"]=cell{stone={face="st-door_a",attr={name="Gate3"}}}
cells["K"]=cell{stone={face="st-door_a",attr={name="Gate4"}}}
cells["L"]=cell{stone={face="st-door_a",attr={name="Gate5"}}}
cells["M"]=cell{stone={face="st-door_a",attr={name="Gate6"}}}
cells["N"]=cell{stone={face="st-door_a",attr={name="Gate7"}}}
cells["O"]=cell{stone={face="st-door_a",attr={name="Gate8"}}}
cells["P"]=cell{stone={face="st-coffee"},item={"it-pin"}} --pin hidden under stone
cells["Q"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate9"}}}
cells["R"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate8"}}}
cells["S"]=cell{item={face="it-trigger",attr={action="callback",target="GateS"}}}
cells["T"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate1"}}}
cells["U"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate2"}}}
cells["V"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate3"}}}
cells["W"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate4"}}}
cells["X"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate5"}}}
cells["Y"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate6"}}}
cells["Z"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate7"}}}
cells["a"]=cell{floor="fl-water"}
cells["c"]=cell{stone="st-coffee"}
cells["d"]=cell{stone="st-death"}
cells["e"]=cell{stone={face="st-coffee"},floor={"fl-water"},actor={"ac-top"}} --water hidden under stone
cells["g"]=cell{stone={face="st-glass1"},floor={"fl-water"}} --water under glass stone
cells["i"]=cell{floor="fl-ice"}
cells["k"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate11"}}}
cells["l"]=cell{stone={face="st-laser-w", attr={on=TRUE}}} -- Laser
cells["m"]=cell{stone={face="st-door_a",attr={name="Gate11"}}}
cells["o"]=cell{stone={face="st-door_a",attr={name="Gate12"}}}
cells["p"]=cell{stone={face="st-door_a",attr={name="Gate13"}}}
cells["q"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate13"}}}
cells["r"]=cell{stone={face="st-door_a",attr={name="Gate14"}}}
cells["s"]=cell{item={face="it-trigger",attr={action="openclose",target="Gate14"}}}
cells["t"]=cell{stone={face="st-coffee"},actor={"ac-top"}} --Top hidden under stone
cells["u"]=cell{item="it-blackbomb"}
cells["v"]=cell{item={face="it-vortex-open", attr={targetx=15.5, targety=11.5}},floor="fl-ice"}
cells["w"]=cell{item={face="it-vortex-open", attr={targetx=1.5, targety=11.5}},floor="fl-ice"}
if difficult then
  cells["f"]=cell{stone="st-death"}
  cells["h"]=cell{floor="fl-ice"}
  cells["j"]=cell{stone="st-death"}
else
  cells["f"]=cell{stone="st-likeoxydc"}
  cells["h"]=cell{floor="fl-rough-blue"}
  cells["j"]=cell{stone="st-blue-sand"}
end

--      |         1    1    2
--      |1   5    0    5    0
level={"*0*******j********0* ",
       "0rwhfhK  o  O  h  h0 ", -- 1
       "1pfcht11cccf11111fFcl",
       "1N1_fs iaaai B L B cl",
       "fhhheq1iaaai1c1f1Mccl ",
       "1   fZfiAAAit   c Qcl", -- 5
       "11c1111t1f1f1 1f1hhcl",
       "1uuuI hhhh hhhJS1hhcl",
       "1PfHcGf111c11cfc1fhcl",
       "f   f hhhm hhhh  cccl",
       "1 d 1Df111E111fcf  cl", --10
       "0   t vkTUVWXY  c Rcl",
       "*0*j*************j** "}

set_default_parent(cells[" "])
draw_map(0,0,level,cells)
enigma.SendMessage(enigma.GetNamedObject("Gate10"), "open", nil)
set_actor("ac-blackball",1.5,11.5,{player=0,name="bb"})
oxyd_shuffle()

function GateS()
  enigma.SendMessage(enigma.GetNamedObject("Gate2"), "close", nil)
  enigma.SendMessage(enigma.GetNamedObject("Gate12"), "openclose", nil)
end
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
