Knights: Lua Documentation

Introduction

Knights uses Lua scripting to customise many aspects of the game, including items, monsters, dungeon rooms, and many other things. This page contains the documentation for that system.

General notes

Global functions

"kts" namespace

"mod" namespace

Lua version used

The Steam version of Knights currently uses Lua 5.4.8.

Lua 5.5 is now out (see changes), and we may upgrade to it at some point.

Note that other versions of Knights (e.g. the open source version downloaded directly from knightsgame.org.uk) might use a different Lua version.