kts.GetRandomPos

Name

kts.GetRandomPos – generate a random position within the dungeon

Synopsis

result = kts.GetRandomPos()

Description

Generates a random position within the dungeon and returns it.

Return Value

The return value is a table with two fields x and y giving the co-ordinates of the random position.

Errors

This will error if it is called when there is no game in progress (e.g. during quest selection/setup).

See Also

kts.RandomRange