Miscellaneous variables

Name

Miscellaneous config variables.

Synopsis

-- Default item carried by a knight
kts.DEFAULT_ITEM = <item-type>

-- Anim used by knights
kts.KNIGHT_ANIM = <anim>

-- Knight house colours (in-game)
kts.KNIGHT_HOUSE_COLOURS = {
    {0x664477, 0x553366, 0x442255},   -- purple
    {0x116622, 0x115522, 0x114422},   -- green
    -- etc.
}

-- Knight house colours (menu dropdown)
kts.KNIGHT_HOUSE_COLOURS_MENU = {
    0xaa55bb,    -- purple
    0x189933,    -- green
    -- etc.
}

-- Stuff bag graphic
kts.STUFF_BAG_GRAPHIC = <graphic>

-- Miscellaneous blood effects
kts.BLOOD_ICON = <graphic>
kts.BLOOD_TILES = {<tile>, <tile>, ...}
kts.DEAD_KNIGHT_TILES = {<tile>, <tile>, ...}

-- Controls
kts.CONTROLS = {<control>, <control>, ...}

Description

This page documents some miscellaneous variables that can be set directly in the kts table.

The following variables are available:

Notes

These variables are read once, when the game boots up, and therefore cannot be modified mid-game, nor can they be modified in response to changes made by players when selecting a quest (any changes made at those times will be ignored).

Bugs

For some reason, in the default Knights data files, the "Drop Gem" control is defined in the kts.CONTROLS list, but it would probably make more sense to attach it to the i_gem item instead.

Examples

The default settings for these variables can be found in general_stuff.lua, or in controls.lua in the case of kts.CONTROLS.