Hi Keith,
Here are some suggestions on creating your own EnigmaLevels: (you or/and your
Son)
1.
You can edit an Enigma Level file with WordPad inwindows. I think it is worth
getting asource code editor, like "Notepad++", it will show you where pairs
ofparenthesis are and other syntax errors. You can Google "notepad++" and down
load a free copy.
2.
Find the folder that contains your "enigma.exe"
Find the subdirectory data/levels/auto (If it doesn't exist create it.)
Find the subdirectory data/levels/enigma_tutorial
copy thefile "m_tut01_2.xml" file intothe folder subdirectory data/levels/auto
Start enigma and select "Level Pack" then"User" then "Auto Folder". The level
you copied should display as "Oxyd Stones 1". If so, you can select it and
play it.
3.
Edit the Level you copied. Open the file "m_tut01_2.xml " in thesubdirectory
data/levels/auto. If youdecided to use Notepad++, select "Lua" under "L" from
the"Language" drop down menu.
The file is in two parts. The description of the level is in a languagecalled
Lua. This part starts at the line ti[" "] ={"fl_lawn_b"} and stops after the
line wo:shuffleOxyd(). The otherpart, surrounding the Lua part, is in a
language called "XML". This part, among other things, prepares theenigma
program to deal with the Lua part. You shouldn't need to work with the XML part
until you are ready tosubmit the Level to be tested by other level makers. The
Enigma Reference Manual describes whatneeds to be done for that.
The following group of lines define the size and shape ofthe world that the
level exists in. Itis best viewed in a uniform size font. Starting with the
second line there are 13 lines of 20 characters, eachline between double quotes.
wo(ti, "1", {
"####################",
"# #",
"# 2111111114 #",
"# 1011111101 #",
"# 214 1111111111 #",
"# 1d1791111111111 #",
"#1o11111111QQ1111 #",
"# 1d1681111111111 #",
"# 315 1111111111 #",
"# 1011111101 #",
"# 3111111115 #",
"# #",
"####################"})
If you look a few lines above you will see a line:
ti["0"]= {"st_oxyd",flavor = "d"}. (I added colorfor clerity)
This line is defining the character 0 as an oxyd stone. There are basically 4
kind of objects in theworld:
Stones -name beginning in st_ ( in the caseabove st_oxyd)
Floors -name beginning in fl_
Items - namebeginning in it_
Actors -name beginning in ac_
The Enigma Reference Manual describes all the validobjects and their names.
4.
For an experiment, replacetwo of the "1" charactersin the world description
with the character "0". Save yourchanges. Restart enigma and look at theLevel
in the Auto Folder. It should havetwo more oxyds in the world.
5.
If all is going well so far, congratulations, you have made a new Level. You
can also use new characters to define newobjects and place them in your level
as you please. As you get more experience you can copy otherLevels into your
"Auto" folder and look at them in edit to see howthey work and use that
information to create your own ideas.
I hope this is all clear and I didn't make any mistakes. If you have any
questions don't hesitate toask.
Ray
-
Sentfrom Ray Wick without any free advertisement for any companies.
_______________________________________________
Enigma-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/enigma-devel