Global State Variables

These variables track the state of the engine during runtime. They are accessible via the global Booktasy table.

Variable Type Description
Booktasy.GAME_WORLD Table Holds the world data: { rooms = {}, current_room = nil }.
Booktasy.INVENTORY Table A list (array) of Item objects currently held by the player.
Booktasy.SAVEABLE_GLOBALS Table A list of string names of global variables to persist on save/load.
Booktasy.EVENTS Table A list of active Event objects.
Booktasy.TIMERS Table A dictionary of active timers by name.
Booktasy.TURN_COUNT Integer Tracks the number of valid turns taken.
Booktasy.MAX_TURNS Integer Max turns allowed before game over (-1 for infinite).
Booktasy.GAME_OVER Boolean true if the game has ended.