Constructors

These functions are used to create the fundamental objects of your game world.


Booktasy.Room(name, description)

Creates a new Room object.

Parameters

Returns

A Room table containing:

Field Type Description
items table List of items on the floor.
entities table List of NPCs/entities in the room.
exits table Dictionary of direction keys → room names.
describe() method Prints the room description, contents, and exits.

Booktasy.Entity(name, description, opts)

Creates a new Entity (NPC).

Parameters

Methods


Booktasy.Item(name, description, opts)

Creates a new Item.

Parameters


Booktasy.Event(name, condition_func, action_func, is_one_shot)

Creates a gameplay Event logic block.

Parameters