Update documentation.

develop
expwnent 2015-01-26 21:55:28 -05:00
parent 1445b0a919
commit 1443a64ddb
2 changed files with 4 additions and 2 deletions

@ -3306,8 +3306,8 @@ Scripts
Any files with the .lua extension placed into hack/scripts/* Any files with the .lua extension placed into hack/scripts/*
are automatically used by the DFHack core as commands. The are automatically used by the DFHack core as commands. The
matching command name consists of the name of the file sans matching command name consists of the name of the file without
the extension. the extension. First DFHack searches for the script in the save folder/raw/scripts folder. If it is not found there, it searches in the DF/raw/scripts folder. If it is not there, it searches in DF/hack/scripts. If it is not there, it gives up.
If the first line of the script is a one-line comment, it is If the first line of the script is a one-line comment, it is
used by the built-in ``ls`` and ``help`` commands. used by the built-in ``ls`` and ``help`` commands.

@ -1,6 +1,8 @@
DFHack Future DFHack Future
Internals Internals
Lua scripts can set environment variables of each other with dfhack.run_script_with_env.
Fixes Fixes
dfhack.run_script should correctly find save-specific scripts now.
New Plugins New Plugins
New Scripts New Scripts
New Tweaks New Tweaks