<p>There are the following ways to invoke this command:</p>
<dt>There are three ways to invoke this command:</dt>
<olclass="arabic">
<dd><olclass="first last arabic simple">
<li><pclass="first"><ttclass="docutils literal">lua</tt> (without any parameters)</p>
<li>without any parameters - starts an interactive lua interpreter</li>
<p>This starts an interactive lua interpreter.</p>
<li>-f "filename" or --file "filename" - loads and runs the file indicated by filename</li>
</li>
<li>-s ["filename"] or --save ["filename"] - loads and runs the file indicated by filename from save directory. If filename is not supplied it loads "dfhack.lua"</li>
<li><pclass="first"><ttclass="docutils literal">lua <spanclass="pre">-f</span>"filename"</tt> or <ttclass="docutils literal">lua <spanclass="pre">--file</span>"filename"</tt></p>
<p>This loads and runs the file indicated by filename.</p>
</li>
<li><pclass="first"><ttclass="docutils literal">lua <spanclass="pre">-s</span> ["filename"]</tt> or <ttclass="docutils literal">lua <spanclass="pre">--save</span> ["filename"]</tt></p>
<p>This loads and runs the file indicated by filename from the save
directory. If the filename is not supplied, it loads "dfhack.lua".</p>
1. without any parameters - starts an interactive lua interpreter
There are the following ways to invoke this command:
2. -f "filename" or --file "filename" - loads and runs the file indicated by filename
3. -s ["filename"] or --save ["filename"] - loads and runs the file indicated by filename from save directory. If filename is not supplied it loads "dfhack.lua"
1. ``lua`` (without any parameters)
This starts an interactive lua interpreter.
2. ``lua -f "filename"`` or ``lua --file "filename"``
This loads and runs the file indicated by filename.
3. ``lua -s ["filename"]`` or ``lua --save ["filename"]``
This loads and runs the file indicated by filename from the save
directory. If the filename is not supplied, it loads "dfhack.lua".
4. ``:lua``*lua statement...*
Parses and executes the lua statement like the interactive interpreter would.