StendhalScripting/Lua: Difference between revisions

Content deleted Content added
imported>AntumDeluge
Tables: accessing table values
imported>AntumDeluge
Line 169:
Like normal variables, functions can be declared as '''global''' or '''local''' & must be terminated with the <code>end</code> keyword.
 
There are two ways to declaredefine functions with the <code>function</code> keyword:
<pre>
local function myFunction()
Line 183:
</pre>
 
Functions can also be valuesmembers inof a table:
<pre>
local myTable = {}