All functions (except ImGui functions) are part of the global "game" table.
Example: "game.print("text")"
A "definitions.lua" file can be found in the "Data" directory, after the game was started at least once. The file contains definitions for most imgui, imutil and game functions that can be used for reference. The definition file is embedded into the executable and is not overwritten, so if you upgrade the executable file you have to delete the file and start the game once to get the most recent.
Time Functions
Random Functions
Hook Functions
Audio
General Functions
Stat Functions
Config Functions
Mod Config Functions
Resource Functions
Game File Functions
Character Functions
Location Functions
Place Functions
Item Functions
Inventory Functions
Interaction Functions
Dialog Functions
Generic Functions
FileTag Functions
Prints the given string if the Config > "lua_debug_print" Type Boolean is true.
This should be called during the "onPreLoadFiles" hook.
The file Type > String is treated like the contents of a file with the given extension. New lines can be specified with "\n". For some extensions a path must be specified, for example ".idata".
Sends a notification to the UI that is displayed for around 5 seconds.
Returns true if a FileData with the given extension and identifier is loaded, otherwise returns false.
Refreshes the UI.
Returns true if cheating is enabled.
Returns true if debugging is enabled.
Same as "game.isDebuggingEnabled()".
Returns if the mod is enabled.
Tries to evaluate the string as lua code that returns a bool.
Triggers a game over. The given reason will be displayed, if no reason is given a default text is displayed.
Returns the general difficulty value. The default is 1.0.
Returns the text of the given TextFileData.
Closes the windows that have the given name.
Returns all options for the given FeatureFileData identifier.
Returns all options for the given OutfitFileData identifier.
Visit the given LocationData.
Visit the given PlaceData. Also visits the location this place is in.
Visit the given CharacterData. Also visits the place this character attends and the location the place is in.
Visit the given ItemData.
Goes back a location.
Returns the location that is currently visited.
Returns an empty string if non is visited.
Returns the place that is currently visited.
Returns an empty string if non is visited.
Returns the character that is currently visited.
Returns an empty string if non is visited.
Returns the item that is currently visited.
Returns an empty string if non is visited.
Leaves the current LocationData.
Leaves the current PlaceData.
Leaves the current CharacterData.
Leaves the current ItemData.