<dt>There are three ways to invoke this command:</dt>
<dd><olclass="first last arabic simple">
<li>without any parameters - starts an interactive lua interpreter</li>
<li>-f "filename" or --file "filename" - loads and runs the file indicated by filename</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>
<p>There are the following ways to invoke this command:</p>
<olclass="arabic">
<li><pclass="first"><ttclass="docutils literal">lua</tt> (without any parameters)</p>
<p>This starts an interactive lua interpreter.</p>
</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
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"
There are the following ways to invoke this command:
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.