diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-15 04:05:31 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-15 04:05:31 -0800 |
commit | 3be53369f544187af7bb88b1ee284ab1348f32af (patch) | |
tree | 2fa8af73c0cf9ea2be3df7159cbf9163799c8958 /crawl-ref/docs/options_guide.txt | |
parent | df940b3d40577cd05d71ebe7613f0dec1f115e91 (diff) | |
download | crawl-ref-3be53369f544187af7bb88b1ee284ab1348f32af.tar.gz crawl-ref-3be53369f544187af7bb88b1ee284ab1348f32af.zip |
luaterp (&^T): load files via terp_file option
You can now specify Lua files to be loaded for use in the wizard Lua
interpreter via "terp_file = file_path" in your init file. These
files will be run in the context of dlua, as opposed to the clua
context of files included with "lua_file = file_path".
Diffstat (limited to 'crawl-ref/docs/options_guide.txt')
-rw-r--r-- | crawl-ref/docs/options_guide.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/docs/options_guide.txt b/crawl-ref/docs/options_guide.txt index 1128495065..c8d4667aab 100644 --- a/crawl-ref/docs/options_guide.txt +++ b/crawl-ref/docs/options_guide.txt @@ -382,6 +382,13 @@ The available stock Lua scripts are Also see section 7 on inline Lua fragments. +The wizard-mode Lua interpreter (&^T) will, the first time it's invoked, +load all of the files that are specified with the terp_file option: + +terp_file = <path/name.lua> + +The Lua in these files will have access to all of the Crawl Lua internals +(that is, will be run in the context of dlua, not clua). 4- Interface. ============== |