Lua scripts for the Legacy mod