Skip to content
Robin Johnson edited this page Aug 27, 2021 · 1 revision

room blocks define your game's "rooms" or locations. There is one room block per room in your game.

A room block must include:

  • a first line consisting of the keyword room, the room's internal name (which must consist of letters, numbers and underscores), and (optional but strongly recommended) room description (a string).
    • if the room description is absent, Gruescript will guess "You are in a/an (internal name)", with any underscores in the internal name being replaced by spaces, or "I am in" if the game is in first person (i.e. if person 1 appears in the [[game]] block.)

It may include:

  • lines declaring this room's directions connecting it to other rooms.

    • for conventional directions (north, northeast, east, southeast, south, southwest, west, northwest, up, down, in, out, port and starboard) these consist of the direction followed by the internal name of the room linked.
    • for other directions, use the keyword dir, followed by the direction (consisting of letters, numbers and underscores), then the internal name of the room linked.
  • The room's permanent verbs, declared on one or lines beginning with the keyword verbs and any verbs that will always be available when the player is in the room. (It is usually better to associate verbs with things than rooms.)

Clone this wiki locally