kts.GameTime

Name

kts.GameTime – returns the total elapsed game time, in milliseconds

Synopsis

result = kts.GameTime()

Description

This function just returns the time since the game was started, in milliseconds.

Return Value

Returns a number as described above.

Errors

None.

Examples

This function is used in the standard Knights Lua files to calibrate scroll effects – if the game has been running longer than approximately 9 minutes, then certain types of scrolls become more common. See magic.lua.