1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
|
<?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="Advanced Tutorial" el:subtitle="" el:id="m_tutor/adv_tutorial"/>
<el:version el:score="1" el:release="2" el:revision="8" el:status="released"/>
<el:author el:name="Jacob Scott" el:email="" el:homepage=""/>
<el:copyright>Copyright © 2004 Jacob Scott</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 version by Andreas, January 2009</el:code>
</el:comments>
<el:score el:easy="-" el:difficult="-"/>
</el:info>
<el:luamain><![CDATA[
-- The first part of this level file consists of tile-declarations.
-- The key length is two, i.e. each tile is described by two characters.
-- The characters to be used are not fixed - however, we encourage you
-- to follow some guidelines and conventions.
ti[" "] = {"fl_lawn"} -- The default floor typically is described by one or more blank spaces.
ti[". "] = {"fl_hay"} -- Less often used floors use small characters to make the map more easy to read.
ti["! "] = {"fl_abyss"}
ti["~ "] = {"fl_water"}
ti["= "] = {"fl_space"}
ti["m "] = {"fl_metal"} -- If you have many floors, letters and numbers can be used as well.
ti["- "] = {"fl_inverse"}
ti["i "] = {"fl_ice"}
ti["_ "] = {"fl_sand"}
ti["r "] = {"fl_red"}
ti["?1"] = {"fl_bridge", "b1"} -- The second argument defines a name for the bridge: "b1".
ti["2 "] = {"fl_slope_ps"} -- The numbers correspond to the arrows on the numerical keyboard.
ti["8 "] = {"fl_slope_pn"}
ti["6 "] = {"fl_slope_pe"}
ti["4 "] = {"fl_slope_pw"}
ti["1 "] = {"fl_slope_isw"}
ti["3 "] = {"fl_slope_ise"}
ti["7 "] = {"fl_slope_inw"}
ti["9 "] = {"fl_slope_ine"}
ti["@ "] = {"ac_marble", 0, 0.5} -- Following Nethack-tradition, the main actor typically is "@",
ti["# "] = {"st_granite"} -- and the main walls are described by "#".
ti[".#"] = ti["# "] .. ti[". "] -- Tile declarations can be combined into a new tile.
ti["~#"] = ti["# "] .. ti["~ "]
ti["-#"] = ti["# "] .. ti["- "]
ti["| "] = {"st_mirror", movable = true, orientation = NORTH} -- A mirror needs additional information.
ti["+ "] = {"st_box"}
ti["A "] = {"st_plaster_breakable"} -- Stones typically use capital letters.
ti["B "] = {"st_brownie"}
ti["BE"] = {"st_boulder", orientation = EAST} -- To memorize the orientation of a boulder-stone,
ti["BN"] = {"st_boulder", orientation = NORTH} -- one can use the second entry in keylength-2-maps;
ti["BS"] = {"st_boulder", orientation = SOUTH} -- but it's not a must.
ti["D1"] = {"st_door", "d1", faces = "ew"} -- As another aided recall, the number in the name of
ti["D2"] = {"st_door", "d2", faces = "sn"} -- each door is used in the tilekey.
ti["D3"] = {"st_door", "d3", faces = "we"}
ti["D4"] = {"st_door", "d4", faces = "sn"} .. ti[". "]
ti["D5"] = {"st_door", "d5", faces = "sn"} .. ti[". "]
ti["D6"] = {"st_door", "d6", faces = "sn"}
ti["F "] = {"st_passage_black_frame"}
ti["G "] = {"st_grate_cross"}
ti[".G"] = ti["G "] .. ti[". "]
ti["I "] = {"st_actorimpulse"} .. ti[". "]
ti["K "] = {"st_knight"}
ti["L "] = {"st_laser", "l1", state = OFF, orientation = WEST}
ti["N1"] = {"st_oneway", color = WHITE, orientation = WEST} .. ti["4 "]
ti["N2"] = {"st_oneway", color = BLACK, orientation = NORTH} .. ti[". "]
ti["N3"] = {"st_oneway", orientation = SOUTH} .. ti[". "]
ti["N4"] = {"st_oneway", color = WHITE, orientation = SOUTH} .. ti["2 "]
ti["O "] = {"st_oxyd", flavor = "a"}
ti["P "] = {"st_purplegray"}
ti["Q "] = {"st_quake"}
ti["R "] = {"st_brownie"} .. ti({"#ac_rotor", gohome = false, strength = 12, range = 8, prefercurrent=1.0}) .. ti[". "]
ti["S "] = {"st_plop"}
ti["S3"] = {"st_switch", target = "d3"}
ti["SB"] = {"st_laserswitch", target = "b1"}
ti["SL"] = {"st_switch", target = "l1"}
ti["W "] = {"st_window", faces = "s"}
ti["X "] = {"st_death"}
ti["c "] = {"it_coin_s"}
ti["d*"] = {"it_document", text = "text%%"} -- These entries are used for autotiling, see below.
ti["e*"] = {"it_document", text = "text%%"} .. ti[". "]
ti["l "] = {"it_extralife"}
ti[".l"] = ti["l "] .. ti[". "]
ti[".F"] = ti["F "] .. ti[". "]
ti["p "] = {"#ac_pearl", owner = DEFAULT, controllers = DEFAULT} .. ti[". "]
ti["s "] = {"it_spade"}
ti["t "] = {"#ac_top", strength = 10, range = 7}
ti["t1"] = {"it_trigger", target = "d1"}
ti["t2"] = {"it_trigger", target = "d2"}
ti["t4"] = {"it_trigger", target = "d4"} .. ti[". "]
ti["t5"] = {"it_trigger", target = "d5"} .. ti[". "]
ti["t6"] = {"it_trigger", target = "d6"} .. ti[". "]
ti["tR"] = {"it_sensor_exit", invisible = true, target = "call_rotor"} .. ti["R "] -- See below for callback function.
ti[".R"] = {"fl_hay", "rotortext"}
ti["w "] = {"it_magicwand"}
ti["x "] = {"it_spoon"} .. ti[". "]
ti["y "] = {"it_dynamite"}
ti["iy"] = ti["y "] .. ti["i "]
-- {"it_document", text = "text%17"} .. ti[". "] -> dQ
-- Next follows the map. It is a twodimensional ASCII-representation of the level,
-- in this case with two characters per tile. This number is given by the length
-- of the second argument " ", which is the default key. The default key represents
-- the default floor, if no other floor is explicitly given.
-- The autotile-rule will replace each occurence of "dX" (with "X" any character)
-- by the tile "d*", but with all "%%" replaced by "%X", and similarly with "eX".
wo(res.autotile(ti, {"d", "d*"}, {"e", "e*"}), " ",
{"# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"# # K K K # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"# # SB # # K K K # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"# | # # # K K K dU # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"# _ _ _ _ # X K K K ! ! # ~ ~ ~ ~ ~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. . . . . . . . . . . eQ. . . . . I ~ .#p .#.#.#. . . . . . . . . . . . . . . . . . . . . . . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! # O O # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#.#.#.#.#.#.#.#.#.#.#.#. .#.#.#.#. .#~ .#8 .#. . . . . . . . . . . . . . . . . . . . . . .G. . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! # O O # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .#. .#~ ~ .#. .#.#.#. . . . . . . . . . . . . . . . . . . . . . . .GtR. . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! # # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .#N4.#~ ~ .#. 4 N1. . . . . . . . . . . . . . . . . . . . . . . . . .G. . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! # O O # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .#2 .#~ ~ .#N2.#.#. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! O O # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#~ .#.#.#.#.#.#.#.#.#.#2 .#~ ~ I . 4 . . . eX. . . . . . . . . . . . . . . . .l. . . . . . . . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! # O O # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#~ .#3 4 4 4 4 4 4 4 4 7 .#.#.#.#.#.#x . . . . . . . . . . . . . . . . . . . .R. . eR. . . . . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! # dV O O # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#~ .#2 I .#.#.#.#.#.#.#.#.#. . 4 . 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! # Q Q # ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ",
"~ .#. .#~ .#2 .#~ ~ ~ ~ ~ ~ ~ .#. . . # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ",
"~ .#. .#~ .#2 .#~ ~ ~ ~ ~ ~ ~ .#. .#.## # X # ~ ~ ~ ~ dGS ~ ~ # ! ! ! # r r r r r r r r # ",
"~ .#I .#~ .#2 .#~ ~ ~ ~ ~ ~ ~ .#. .#.## # # ~ ~ ~ ~ S ~ ~ # ! ! ! # r r r r r r r r # ",
"~ ~ ~ ~ ~ .#2 I .#.#.#.#.#.#~ .#. .F. D3 # # + ~ ~ ~ ~ B G S ~ ~ # ! ! ! # m m m m m m m m m # r r r r r r r r # ",
"~ ~ ~ ~ ~ .#9 6 6 6 6 6 1 .#~ .#. .#. # dA # X # + ~ ~ ~ ~ + B S ~ ~ P P P # ! ! ! # m m m m m m m m m # # ",
"~ ~ ~ ~ ~ .#.#.#.#.#.#I 2 .#~ .#! .#. # # # X # ~ ~ ~ ~ S ~ ~ P P ! P P # # # # # dJ # # ",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# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -#-#-#-#-#-#-## # -#-#-## # # # # # # "})
-- Now that the world has been created, we may shuffle the Oxyd colors,
-- which are assigned automatically.
wo:shuffleOxyd()
-- The following callback function is called by an invisible trigger
-- right to the rotor-actor (tile "tR"). It is called whenever the trigger
-- is pressed down or released again. It then does the following:
-- - Check the stone at its position ("sender" is the trigger, "st(sender)"
-- is the stone at its position). If there is such a stone, then
-- continue. (In particular, don't continue if the trigger is pushed
-- down by the marble itself.)
-- - Check its own user attribute "_done". Its initialised to "false",
-- so "not sender._done" will return "true" at first, and the function
-- continues.
-- - Put a document at the Position of the door named "d3", the text
-- of the document is "text%Z" (see below).
-- - Set its own attribute "_done" to "true", s.t. there is only one
-- document set, no matter how often call_rotor is called.
function call_rotor(is_on, sender)
if (not sender._done) then
wo[no["rotortext"]] = {"it_document", text = "text%Z"}
sender._done = true
end
end
-- Finally, you will see the documents' texts in the xml-code. Their keys "text%X"
-- correspond to the entries "text%%" of the document-setting tiles "d*" and "e*",
-- but during the autotiling-process, all "text%%" have been replaced by "text%X",
-- which now refer to the texts below.
-- The texts are extracted from the level to ease translation, that's why they
-- don't appear in the tile-declarations directly (see Reference Manual).
]]></el:luamain>
<el:i18n>
<el:string el:key="title">
<el:english el:translate="false"/>
</el:string>
<el:string el:key="text%A">
<el:english el:translate="true">Welcome to Enigma! This tutorial I (Jacob Scott) made will help you learn how to play.</el:english>
</el:string>
<el:string el:key="text%B">
<el:english el:translate="true">You control the black ball. To pick up an object, just roll over it. You can bounce off most walls (try it), but avoid the blue floor near the bottom of the room (actually, try falling into it and then restarting the level with the 'Esc' key). While these messages are being displayed, don't click any buttons or push any keys or the message will stop.</el:english>
</el:string>
<el:string el:key="text%C">
<el:english el:translate="true">This is pretty self-explanatory.</el:english>
</el:string>
<el:string el:key="text%D">
<el:english el:translate="true">Enigma is full of puzzles of various types. In the next room, you will encounter your first one.</el:english>
</el:string>
<el:string el:key="text%E">
<el:english el:translate="true">You can't walk on water! Try pushing the blocks into the water to get to the other side.</el:english>
</el:string>
<el:string el:key="text%F">
<el:english el:translate="true">Notice that you can't push a row of two or more blocks. Also, blocks can't be on the same squares as grates but you can.</el:english>
</el:string>
<el:string el:key="text%G">
<el:english el:translate="true">There are different types of blocks here. Those black blocks sink when they fall into water. The tan blocks don't sink but don't form bridges either.</el:english>
</el:string>
<el:string el:key="text%H">
<el:english el:translate="true">That thing is a top -- it will destroy your ball if they touch. Also, as long as you are close enough to it, the top will chase you. If you die, you will restart at the beginning of the level (if you have any balls left). Try to find a way to get past and into the next room (you can use the blocks in the center of the room as barricades).</el:english>
</el:string>
<el:string el:key="text%I">
<el:english el:translate="true">Good job! Notice that the top can't go beneath that block with a black outline -- you're safe.</el:english>
</el:string>
<el:string el:key="text%J">
<el:english el:translate="true">Those are different types of floors. Try going over them.</el:english>
</el:string>
<el:string el:key="text%K">
<el:english el:translate="true">The grayish floors are slopes. The white floor is inverse-floor (you will see).</el:english>
</el:string>
<el:string el:key="text%L">
<el:english el:translate="true">Watch what happens when you go over those triggers. See if you can get the extra ball.</el:english>
</el:string>
<el:string el:key="text%M">
<el:english el:translate="true">That's dynamite. Try dropping some next to that yellowish wall (and moving out of the way).</el:english>
</el:string>
<el:string el:key="text%N">
<el:english el:translate="true">Try using the spade on the holes caused by the dynamite.</el:english>
</el:string>
<el:string el:key="text%O">
<el:english el:translate="true">Those things are boulders -- try moving one of the tan blocks. Don't fall into the water or abyss (the black floor).</el:english>
</el:string>
<el:string el:key="text%P">
<el:english el:translate="true">Take the magic wand and hit a boulder. Try to let the row of three boulders pass the large column.</el:english>
</el:string>
<el:string el:key="text%Q">
<el:english el:translate="true">Hit it hard enough!</el:english>
</el:string>
<el:string el:key="text%R">
<el:english el:translate="true">It appears to be a simple room, but you're getting an extra ball anyway. Maybe there is a reason ...</el:english>
</el:string>
<el:string el:key="text%S">
<el:english el:translate="true">Try to get the laser beam to hit that black stone, but don't get hit by it! Use the mirrors to direct the beam.</el:english>
</el:string>
<el:string el:key="text%T">
<el:english el:translate="true">Many objects change when hit with a laser beam. Try hitting some of the coins with the laser beam. Also, try hitting a block over a coin. Those stones to your right are knights -- you need to fight (hit) them with a sword (in the front of your inventory) to get past.</el:english>
</el:string>
<el:string el:key="text%U">
<el:english el:translate="true">Do you have any umbrellas? Each one will give you approximately ten seconds of protection from danger (such as falling).</el:english>
</el:string>
<el:string el:key="text%V">
<el:english el:translate="true">Those black stones are quake stones -- they reset all progress made with the oxyd stones. The other stones are the oxyd stones. Match them up to win!</el:english>
</el:string>
<el:string el:key="text%W">
<el:english el:translate="true">This area at the bottom of the screen is your inventory -- when you pick things up, they go here (there is a maximum of twelve). To scroll through the inventory, use the right mouse button or the 'tab' key. To drop or use an object, click the left mouse button. Some objects, such as documents (like this one), can't be dropped but are instead used. Those two balls in your inventory are your extra lives -- if you die in this level, you will restart at the beginning of the level if you have any balls left (and you will lose one of the balls).</el:english>
</el:string>
<el:string el:key="text%X">
<el:english el:translate="true">Naturally, you're supposed to go through those closed gates at the top of the screen. Try going down that slope near the bottom of the room to see what's to the left. Don't bother with that trigger below the abyss yet. If you could hit that small white ball through the one-way blocks (with the arrows), it might roll down and stop on that trigger. You will need to go in with it but you can't go through the white one-way block. Take the spoon and use it once the white ball is through (hit it hard).</el:english>
</el:string>
<el:string el:key="text%Y">
<el:english el:translate="true">The stone in the top-right of the room is a switch. Hit it -- it is probably useful. In this case the switch opens and closes a door (Do you remember a door that you weren't able to open?). The bluish line is a window -- bridge the water before you do anything with it.</el:english>
</el:string>
<el:string el:key="text%Z">
<el:english el:translate="true">That was a rotor (similar to a top). Some levels have many rotors and tops to make them difficult. However, maybe this rotor has a purpose; maybe you could get it on that trigger near where the spoon was. It might be convenient to close the gate.</el:english>
</el:string>
</el:i18n>
</el:protected>
</el:level>
|