<?xml version="1.0" encoding="windows-1252" 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="Lady in Red" el:subtitle="" el:id="just30"/>
      <el:version el:score="1" el:release="1" el:revision="4" el:status="released"/>
      <el:author el:name="JuSt" el:email="" el:homepage=""/>
      <el:copyright>Copyright © 2007 JuSt</el:copyright>
      <el:license el:type="GPL version 2" el:open="true"/>
      <el:compatibility el:enigma="1.01">
      </el:compatibility>
      <el:modes el:easy="true" el:single="true" el:network="false"/>
      <el:score el:easy="0:34" el:difficult="0:34"/>
    </el:info>
    <el:luamain><![CDATA[
levelw=21
levelh=13

create_world( levelw, levelh)
enigma.ConserveLevel = 0

set_actor("ac-whiteball", 1.5, 11.5, {player=1, essential=1})
set_actor("ac-blackball", 2.5, 11.5, {player=0, essential=1})

fill_floor("fl-bumps")
draw_floor("fl-water", {1, 3}, {1, 0}, 2)
set_floor("fl-water", 1, 4)
set_floor("fl-water", 3, 5)
draw_floor("fl-water", {5, 8}, {1, 0}, 2)
set_floor("fl-water", 6, 7)
draw_floor("fl-water", {10, 10}, {0, 1}, 2)

draw_border("st-bumps", 0, 0, 20, 13)
draw_stones("st-bumps", {3, 2}, {0, 1}, 3)
draw_stones("st-bumps", {3, 6}, {0, 1}, 6)
set_stone("st-bumps", 4, 4)
draw_stones("st-bumps", {5, 4}, {0, 1}, 2)
set_stone("st-bumps", 5, 7)
draw_stones("st-bumps", {5, 9}, {0, 1}, 2)
draw_stones("st-bumps", {8, 2}, {0, 1}, 7)
draw_stones("st-bumps", {10, 1}, {0, 1}, 5)
draw_stones("st-bumps", {12, 2}, {0, 1}, 5)
draw_stones("st-bumps", {14, 1}, {0, 1}, 5)
set_stone("st-bumps", 15, 5)
set_stone("st-bumps", 16, 3)
draw_stones("st-bumps", {17, 1}, {0, 1}, 6)
draw_stones("st-bumps", {9, 7}, {1, 0}, 9)
draw_stones("st-bumps", {10, 9}, {1, 0}, 8)
set_stone("st-wood", 2, 5)
set_stone("st-bolder-n", 2, 6)
set_stone("st-door-v", 3, 1, {name="ST03-01"})
set_stone("st-turnstile-w", 5, 2)
set_stone("st-stoneimpulse", 5, 6)
set_stone("st-door-v", 5, 11, {name="ST05-11"})
set_stone("st-turnstile-n", 6, 1)
set_stone("st-turnstile", 6, 2)
set_stone("st-turnstile-s", 6, 3)
set_stone("st-turnstile", 6, 5)
set_stone("st-turnstile-s", 6, 6)
set_stone("st-bolder-s", 6, 7)
set_stone("st-wood", 6, 8)
set_stone("st-turnstile-e", 7, 2)
set_stone("st-turnstile-e", 7, 5)
set_stone("st-stoneimpulse-hollow", 7, 7)
set_stone("st-stoneimpulse", 7, 8)
set_stone("st-door-v", 8, 1, {name="ST08-01"})
set_stone("st-actorimpulse", 8, 10)
set_stone("st-actorimpulse", 8, 11)
set_stone("st-grate1", 9, 10)
set_stone("st-grate1", 9, 11)
set_stone("st-grate1", 9, 12)
set_stone("st-door-v", 10, 6, {name="ST10-06"})
set_stone("st-bolder-w", 10, 11)
set_stone("st-rotator-left", 10, 12)
set_stone("st-door-h", 13, 4, {name="ST13-04"})
set_stone("st-door-h", 15, 3, {name="ST15-03"})
set_stone("st-oxyd", 18, 0, {flavor="b", color="1"})
set_stone("st-door-h", 18, 2, {name="ST18-02"})
set_stone("st-rotator-right", 18, 9)
set_stone("st-oxyd", 19, 1, {flavor="b", color="1"})
set_stone("st-rotator-right", 19, 11)
if difficult then
    set_stone("st-timer", 20, 0, {name="ST14-00", target="ST08-01", action="close", on=0, interval=1, invisible="0"})
    set_stone("st-timer", 20, 1, {name="ST15-00", target="ST10-06", action="close", on=0, interval=1, invisible="0"})
    set_stone("st-timer", 20, 2, {name="ST16-00", target="ST13-04", action="close", on=0, interval=1, invisible="0"})
    set_stone("st-switch_black", 16, 1, {target="ST18-02", action="openclose"})
    set_stone("st-timer", 20, 3, {name="ST17-00", target="ST15-03", action="close", on=0, interval=1, invisible="0"})
else
    set_stone("st-timer", 20, 0, {name="ST14-00", target="ST08-01", action="close", on=0, interval=2, invisible="0"})
    set_stone("st-timer", 20, 1, {name="ST15-00", target="ST10-06", action="close", on=0, interval=2, invisible="0"})
    set_stone("st-timer", 20, 2, {name="ST16-00", target="ST13-04", action="close", on=0, interval=2, invisible="0"})
    set_stone("st-switch", 16, 1, {target="ST18-02", action="openclose"})
    set_stone("st-timer", 20, 3, {name="ST17-00", target="ST15-03", action="close", on=0, interval=2, invisible="0"})
end

set_item("it-vortex-closed", 1, 5, {name="vortex", targetx="1.5", targety="1.5"})
set_item("it-yinyang", 1, 11)
set_item("it-trigger", 2, 4, {target="ST03-01", action="open", invisible="0"})
set_item("it-yinyang", 2, 11)
set_item("it-trigger", 6, 9, {target="ST05-11", action="open", invisible="0"})
set_item("it-wrench", 9, 11)
set_item("it-trigger", 11, 10, {target="func1", action="callback", invisible="0"})
set_item("it-trigger", 11, 11, {target="func2", action="callback", invisible="0"})
set_item("it-trigger", 16, 10, {target="func3", action="callback", invisible="0"})
set_item("it-trigger", 16, 11, {target="func4", action="callback", invisible="0"})

function func1()
    SendMessage("ST15-03", "open")
    SendMessage("ST17-00", "on")
end

function func2()
    SendMessage("ST08-01", "open")
    SendMessage("ST14-00", "on")
end

function func3()
    SendMessage("ST13-04", "open")
    SendMessage("ST16-00", "on")
end

function func4()
    SendMessage("ST10-06", "open")
    SendMessage("ST15-00", "on")
end

SendMessage("vortex", "open")
    ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="true"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
