diff --git a/Lua-Parser.md b/Lua-Parser.md index d8cd09f..a5230f3 100644 --- a/Lua-Parser.md +++ b/Lua-Parser.md @@ -6,6 +6,7 @@ The rest of this guide assumes you know Lua 5.1, if you don't then it wont make ## Table of Contents * [Init Scripts](#init-scripts) +* [Modules](#modules) * [NPC Scripts](#npc-scripts) * [Player Scripts](#player-scripts) * [Item Scripts](#item-scripts) @@ -27,6 +28,12 @@ On Lua Parser reload it will attempt to load two scripts with no function env. These are useful for setting up modules to load automatically or for loading encounters. + +### Modules +Modules are bits of code or compiled libraries that lua can load with require("module_name"). +They are akin to the perl plugin system and can be loaded from: +* ./lua_modules/module_name.lua + ### NPC Scripts NPC Scripts are quest scripts that are attached to NPCs (most quests follow this format).