From 830113c009d2780dfa951134c372ad0f7d17f1bb Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 26 Jun 2013 13:28:33 -0700 Subject: [PATCH] Updated Lua Parser (markdown) --- Lua-Parser.md | 7 +++++++ 1 file changed, 7 insertions(+) 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).