Lua Files

From Moondust Wiki
Jump to navigation Jump to search

Explanation for each Lua file processing by LunaLua

luna.lua

(since SMBX2 Beta 4)

When put in a level folder, code in this file impacts that level exclusively. But when put in the episode folder, this code impacts all levels in the episode.

map.lua

(since SMBX2 Beta 4)

When put in the episode folder, this code impacts the overworld.


Deprecated file names (use them in SMBX2 Beta 3 and older version)

OOjs UI icon notice-destructive.svg DEPRECATED: Those file names are kept for compatibility reasons and are not recommended to be used in new projects


lunadll.lua

When put in a level folder, code in this file impacts that level exclusively.


lunaworld.lua

When put in the episode folder, this code impacts all levels in the episode.


lunaoverworld.lua

When put in the episode folder, this code impacts the overworld.


lunadll.txt

Notice Important note: This is an outdated LunaDLL AutoCode language script! (not a Lua file!)


Use only if you are working with legacy LunaDLL. When put in a level folder, the code in this file impacts that level exclusively.

lunaworld.txt

Use only if you are working with legacy LunaDLL. When put in the episode folder, this code impacts the overworld.

lunaglobal.txt

Use only if you are working with legacy LunaDLL. This is the global Autocode script file which puts in the SMBX / Engine root folder.