StendhalScripting/Lua: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
Line 54: Line 54:
=== Tables ===
=== Tables ===


A Lua table is a data type similar to a Java list or map . Tables can be indexed or use key=value pairs.
A Lua table is a data type similar to a Java list or map. Tables can be indexed or use key=value pairs.


''(<span style="color:red;">IMPORTANT NOTE: Lua table indexes begin at 1, not 0</span>)''
''(<span style="color:red;">IMPORTANT NOTE: Lua table indexes begin at 1, not 0</span>)''