wiki:lua
Last modified 5 months ago Last modified on 12/23/11 19:00:38

Lua API: master index

This is a list of all functions, tables and other Lua entities that are defined by the Knights Lua API. This list is constantly evolving and subject to change at any time.

add_missile -- adds a missile into the dungeon
add_pos -- adds a displacement to a position
add_tile -- adds a tile to a given dungeon square
close_door -- closes a tile of type "door"
cxt -- context table
get_pos -- gets the current position of a creature
get_tiles -- gets a list of tiles on a given square
Graphic -- creates a Graphic from a .BMP file
is_door_open -- determines whether a tile of type "door" is currently open
kconfig_control -- loads a Control from the KConfig system
kconfig_itemtype -- loads an ItemType from the KConfig system
kconfig_tile -- loads a Tile from the KConfig system
MISC_CONFIG -- various server config settings
open_door -- opens a tile of type "door"
open_or_close_door -- opens a tile of type "door" (if it is closed), or closes it (if it is open)
play_sound -- plays a sound effect
print -- prints a message to the Messages window
remove_tile -- removes a tile from a given dungeon square
Sound -- creates a Sound from a .WAV file
teleport -- teleports a creature to a given position
teleport_actor -- teleports the current actor by a given offset
transform_offset -- transform an x,y offset according to dungeon reflection/rotation
transform_direction -- transform a direction according to dungeon reflection/rotation
user_table -- returns the user table associated with a tile