diff --git a/Lua API.rst b/Lua API.rst index d770271ae..7c86129b3 100644 --- a/Lua API.rst +++ b/Lua API.rst @@ -3306,8 +3306,8 @@ Scripts Any files with the .lua extension placed into hack/scripts/* are automatically used by the DFHack core as commands. The -matching command name consists of the name of the file sans -the extension. +matching command name consists of the name of the file without +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 used by the built-in ``ls`` and ``help`` commands. diff --git a/NEWS b/NEWS index 11bf20509..ea0d1b166 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ DFHack Future Internals + Lua scripts can set environment variables of each other with dfhack.run_script_with_env. Fixes + dfhack.run_script should correctly find save-specific scripts now. New Plugins New Scripts New Tweaks