<?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="All Floors as of Enigma 1.20" el:subtitle="" el:id="floors"/>
      <el:version el:score="1" el:release="1" el:revision="5" el:status="experimental"/>
      <el:author el:name="Raoul Bourquin" el:email=""/>
      <el:copyright>Copyright © 2009 Raoul Bourquin</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="true"/>
      <el:score el:easy="-" el:difficult="-"/>
    </el:info>
    <el:luamain><![CDATA[
local floors = {

{"fl_adhesionless", _text="fl_adhesionless"},
{"fl_aquamarine", _text="fl_aquamarine"},
{"fl_aquamarine_framed", _text="fl_aquamarine_framed"},
{"fl_bast", _text="fl_bast"},
{"fl_bast_framed", _text="fl_bast_framed"},
{"fl_bluegray", _text="fl_bluegray"},
{"fl_bluegray_framed", _text="fl_bluegray_framed"},
{"fl_bluegreen", _text="fl_bluegreen"},
{"fl_bluegreen_framed", _text="fl_bluegreen_framed"},
{"fl_blueslab", _text="fl_blueslab"},
{"fl_blueslab_framed", _text="fl_blueslab_framed"},
{"fl_brick", _text="fl_brick"},
{"fl_brick_framed", _text="fl_brick_framed"},
{"fl_bright", _text="fl_bright"},
{"fl_bright_framed", _text="fl_bright_framed"},
{"fl_concrete", _text="fl_concrete"},
{"fl_concrete_framed", _text="fl_concrete_framed"},
{"fl_dark", _text="fl_dark"},
{"fl_dark_framed", _text="fl_dark_framed"},
{"fl_darkgray", _text="fl_darkgray"},
{"fl_darkgray_framed", _text="fl_darkgray_framed"},
{"fl_dunes", _text="fl_dunes"},
{"fl_dunes_framed", _text="fl_dunes_framed"},
{"fl_gravel", _text="fl_gravel"},
{"fl_gravel_framed", _text="fl_gravel_framed"},
{"fl_gray", _text="fl_gray"},
{"fl_gray_framed", _text="fl_gray_framed"},
{"fl_himalaya", _text="fl_himalaya"},
{"fl_himalaya_framed", _text="fl_himalaya_framed"},
{"fl_ivory", _text="fl_ivory"},
{"fl_ivory_framed", _text="fl_ivory_framed"},
{"fl_lawn", _text="fl_lawn"},
{"fl_lawn_a", _text="fl_lawn_a"},
{"fl_lawn_b", _text="fl_lawn_b"},
{"fl_lawn_c1", _text="fl_lawn_c1"},
{"fl_lawn_c2", _text="fl_lawn_c2"},
{"fl_lawn_c3", _text="fl_lawn_c3"},
{"fl_lawn_c4", _text="fl_lawn_c4"},
{"fl_lawn_d1", _text="fl_lawn_d1"},
{"fl_lawn_d2", _text="fl_lawn_d2"},
{"fl_lawn_d3", _text="fl_lawn_d3"},
{"fl_lawn_d4", _text="fl_lawn_d4"},
{"fl_lawn_e1", _text="fl_lawn_e1"},
{"fl_lawn_e2", _text="fl_lawn_e2"},
{"fl_lawn_e3", _text="fl_lawn_e3"},
{"fl_lawn_e4", _text="fl_lawn_e4"},
{"fl_marble", _text="fl_marble"},
{"fl_marble_framed", _text="fl_marble_framed"},
{"fl_metal", _text="fl_metal"},
{"fl_metal_1", _text="fl_metal_1"},
{"fl_metal_2", _text="fl_metal_2"},
{"fl_metal_3", _text="fl_metal_3"},
{"fl_metal_4", _text="fl_metal_4"},
{"fl_metal_5", _text="fl_metal_5"},
{"fl_metal_6", _text="fl_metal_6"},
{"fl_metal_7", _text="fl_metal_7"},
{"fl_metal_framed", _text="fl_metal_framed"},
{"fl_metal_1_framed", _text="fl_metal_1_framed"},
{"fl_metal_2_framed", _text="fl_metal_2_framed"},
{"fl_metal_3_framed", _text="fl_metal_3_framed"},
{"fl_metal_4_framed", _text="fl_metal_4_framed"},
{"fl_metal_5_framed", _text="fl_metal_5_framed"},
{"fl_metal_6_framed", _text="fl_metal_6_framed"},
{"fl_metal_7_framed", _text="fl_metal_7_framed"},
{"fl_mortar", _text="fl_mortar"},
{"fl_mortar_framed", _text="fl_mortar_framed"},
{"fl_pinkbumps", _text="fl_pinkbumps"},
{"fl_pinkbumps_framed", _text="fl_pinkbumps_framed"},
{"fl_plank", _text="fl_plank"},
{"fl_plank_framed", _text="fl_plank_framed"},
{"fl_platinum", _text="fl_platinum"},
{"fl_platinum_framed", _text="fl_platinum_framed"},
{"fl_red", _text="fl_red"},
{"fl_red_framed", _text="fl_red_framed"},
{"fl_redslab", _text="fl_redslab"},
{"fl_redslab_framed", _text="fl_redslab_framed"},
{"fl_rough", _text="fl_rough"},
{"fl_rough_framed", _text="fl_rough_framed"},
{"fl_sahara", _text="fl_sahara"},
{"fl_sahara_framed", _text="fl_sahara_framed"},
{"fl_samba", _text="fl_samba"},
{"fl_samba_h", _text="fl_samba_h"},
{"fl_samba_v", _text="fl_samba_v"},
{"fl_samba_framed", _text="fl_samba_framed"},
{"fl_samba_h_framed", _text="fl_samba_h_framed"},
{"fl_samba_v_framed", _text="fl_samba_v_framed"},
{"fl_sand", _text="fl_sand"},
{"fl_sand_framed", _text="fl_sand_framed"},
{"fl_space", _text="fl_space"},
{"fl_stone", _text="fl_stone"},
{"fl_stone_framed", _text="fl_stone_framed"},
{"fl_tigris", _text="fl_tigris"},
{"fl_tigris_framed", _text="fl_tigris_framed"},
{"fl_white", _text="fl_white"},
{"fl_white_framed", _text="fl_white_framed"},
{"fl_woven", _text="fl_woven"},
{"fl_woven_framed", _text="fl_woven_framed"},
{"fl_abyss", _text="fl_abyss"},
{"fl_bridge", _text="fl_bridge, default"},
{"fl_bridge", state=OPEN, _text="fl_bridge, state=OPEN"},
{"fl_bridge", state=CLOSED, _text="fl_bridge, state=CLOSED"},
{"fl_bridge", state=CLOSED, flavor="gc", _text="fl_bridge, flavor=\"gc\", state=CLOSED"},
{"fl_bridge", state=CLOSED, flavor="bw", _text="fl_bridge, flavor=\"bw\", state=CLOSED"},
{"fl_bridge", state=CLOSED, flavor="bs", _text="fl_bridge, flavor=\"bs\", state=CLOSED"},
{"fl_bridge", state=CLOSED, flavor="be", _text="fl_bridge, flavor=\"be\", state=CLOSED"},
{"fl_bridge", state=CLOSED, flavor="bn", _text="fl_bridge, flavor=\"bn\", state=CLOSED"},
{"fl_fake_abyss", _text="fl_fake_abyss"},
{"fl_fake_trigger", _text="fl_fake_trigger"},
{"fl_hay", _text="fl_hay"},
{"fl_hay_framed", _text="fl_hay_framed"},
{"fl_ice", _text="fl_ice"},
{"fl_inverse", _text="fl_inverse"},
{"fl_inverse_white", _text="fl_inverse_white"},
{"fl_inverse_gray", _text="fl_inverse_gray"},
{"fl_rock", _text="fl_rock"},
{"fl_rock_framed", _text="fl_rock_framed"},
{"fl_scales", _text="fl_scales, default"},
{"fl_scales_brick", _text="fl_scales_brick"},
{"fl_scales_bridgewood", _text="fl_scales_bridgewood"},
{"fl_scales_concrete", _text="fl_scales_concrete"},
{"fl_scales_darkgray", _text="fl_scales_darkgray"},
{"fl_scales_gray", _text="fl_scales_gray"},
{"fl_scales_platinum", _text="fl_scales_platinum"},
{"fl_slope", _text="fl_slope, default"},
{"fl_slope", slope=WEST, shape="pw", _text="fl_slope, slope=WEST, shape=\"pw\""},
{"fl_slope", slope=SOUTH, shape="ps", _text="fl_slope, slope=SOUTH, shape=\"ps\""},
{"fl_slope", slope=EAST, shape="pe", _text="fl_slope, slope=EAST, shape=\"pe\""},
{"fl_slope", slope=NORTH, shape="pn", _text="fl_slope, slope=NORTH, shape=\"pn\""},
{"fl_slope", slope=NORTHWEST, shape="inw", _text="fl_slope, slope=NORTHWEST, shape=\"inw\""},
{"fl_slope", slope=SOUTHWEST, shape="isw", _text="fl_slope, slope=SOUTHWEST, shape=\"isw\""},
{"fl_slope", slope=SOUTHEAST, shape="ise", _text="fl_slope, slope=SOUTHEAST, shape=\"ise\""},
{"fl_slope", slope=NORTHEAST, shape="ine", _text="fl_slope, slope=NORTHEAST, shape=\"ine\""},
{"fl_slope", slope=NORTHWEST, shape="onw", _text="fl_slope, slope=NORTHWEST, shape=\"onw\""},
{"fl_slope", slope=SOUTHWEST, shape="osw", _text="fl_slope, slope=SOUTHWEST, shape=\"osw\""},
{"fl_slope", slope=SOUTHEAST, shape="ose", _text="fl_slope, slope=SOUTHEAST, shape=\"ose\""},
{"fl_slope", slope=NORTHEAST, shape="one", _text="fl_slope, slope=NORTHEAST, shape=\"one\""},
{"fl_slope", slope=WEST, shape="tw", _text="fl_slope, slope=WEST, shape=\"tw\""},
{"fl_slope", slope=SOUTH, shape="ts", _text="fl_slope, slope=SOUTH, shape=\"ts\""},
{"fl_slope", slope=EAST, shape="te", _text="fl_slope, slope=EAST, shape=\"te\""},
{"fl_slope", slope=NORTH, shape="tn", _text="fl_slope, slope=NORTH, shape=\"tn\""},
{"fl_slope", slope=NORTHWEST, shape="twl", _text="fl_slope, slope=NORTHWEST, shape=\"twl\""},
{"fl_slope", slope=SOUTHWEST, shape="tsl", _text="fl_slope, slope=SOUTHWEST, shape=\"tsl\""},
{"fl_slope", slope=SOUTHEAST, shape="tel", _text="fl_slope, slope=SOUTHEAST, shape=\"tel\""},
{"fl_slope", slope=NORTHEAST, shape="tnl", _text="fl_slope, slope=NORTHEAST, shape=\"tnl\""},
{"fl_slope", slope=SOUTHWEST, shape="twr", _text="fl_slope, slope=SOUTHWEST, shape=\"twr\""},
{"fl_slope", slope=SOUTHEAST, shape="tsr", _text="fl_slope, slope=SOUTHEAST, shape=\"tsr\""},
{"fl_slope", slope=NORTHEAST, shape="ter", _text="fl_slope, slope=NORTHEAST, shape=\"ter\""},
{"fl_slope", slope=NORTHWEST, shape="tnr", _text="fl_slope, slope=NORTHWEST, shape=\"tnr\""},
{"fl_swamp", _text="fl_swamp"},
{"fl_thief", _text="fl_thief"},
{"fl_water", _text="fl_water"},
{"fl_water_source", _text="fl_water_source"},
{"fl_wood", _text="fl_wood"},
{"fl_wood_h", _text="fl_wood_h"},
{"fl_wood_v", _text="fl_wood_v"},
{"fl_wood_framed", _text="fl_wood_framed"},
{"fl_wood_framed_h", _text="fl_wood_framed_h"},
{"fl_wood_framed_v", _text="fl_wood_framed_v"},
{"fl_yinyang", _text="fl_yinyang, default"},
{"fl_yinyang", state=YIN, _text="fl_yinyang, state=YIN"},
{"fl_yinyang", state=YANG, _text="fl_yinyang, state=YANG"},
{"fl_yinyang", state=YIN, invisible=true, _text="fl_yinyang, state=YIN, invisible=true"},
{"fl_yinyang", state=YANG, invisible=true, _text="fl_yinyang, state=YANG, invisible=true"},
}

wo["FollowMethod"] = FOLLOW_SCROLL
wo["AutoRespawn"] = true

ti[" "] = {"fl_sahara"}
ti["#"] = {"st_rawglass"}
ti["S"] = {"st_switch", target="set_floor"}
ti["x"] = {"st_brake", name="here"}

wo(ti, " ", 12+#floors, 13)
wo:drawBorder(po(0, 0), wo["Width"], wo["Height"], ti["#"])
wo[{1,1}] = {"#ac_marble_black"}
wo[{1,2}] = {"#ac_marble_white"}
wo[{1,3}] = ti["x"]

for i=1, #floors do
    wo[po(5+i, 1)] = ti["S"]
    wo[po(5+i, 2)] = {"it_document", text=floors[i]["_text"]}
    wo[po(5+i, 5)] = floors[i]
    wo[po(5+i, 6)] = floors[i]
    wo[po(5+i, 7)] = floors[i]
    wo[po(5+i, 8)] = floors[i]
    wo[po(5+i, 9)] = floors[i]
end

-- Floortile express worldwide:
function set_floor(value, sender)
    wo[po(sender) + po(0, 1)] = {"it_document", text=floors[sender.x-5]["_text"]}
    if no["here"]:exists() then
        wo[no["here"]] = floors[sender.x-5]
    end
end

wo[{0,9}] = {"st_switch", target="chameleon"}
wo[{1,9}] = {"it_document", text="Add st_chameleon on this row"}
function chameleon(value, sender)
    wo:drawBorder(sender + 6*E, wo["Width"] - 12, 1, {"st_chameleon"})
end
 ]]></el:luamain>
    <el:i18n>
      <el:string el:key="title">
        <el:english el:translate="false"/>
      </el:string>
    </el:i18n>
  </el:protected>
</el:level>
