Advanced Descriptions:Exit Descriptions
MyGame.createAsset({
class: "Room",
name: "Piano Room",
description: `The tiny room is dominated by a grand piano. `,
exits: {
east: "Cello Room",
west: "Viola Room",
north: "Tuba Room",
south: "Holophoner Room",
},
});
The room's description will appear like this...
Piano Room
The tiny room is dominated by a grand piano.
You can go east, west, north, or
south.
If a player has visited the rooms...
Piano Room
The tiny room is dominated by a grand piano.
You can go east to the Cello Room, west to the Viola
Room, north to the Tuba Room, or south to the Holophoner
Room.
MyGame.createAsset({
class: "Room",
name: "Piano Room",
descriptions: {
look: `The tiny room is dominated by a grand piano. `,
exits: `It appears that {we} may be able to squeeze around the grand piano to the north, south, east or west to reach the other instrument rooms. `,
},
exits: {
east: "Cello Room",
west: "Viola Room",
north: "Tuba Room",
south: "Holophoner Room",
},
});
Piano Room
The tiny room is dominated by a grand piano.
It appears that you may be able to squeeze around the grand piano to the
north, south, east or west to reach the other instrument rooms.
Control whether a list of exits is appended to a room's description with game.settings.print_room_exits or room.print_room_exits.
Control whether a list of the room's contents is appended to a room's description with game.settings.print_room_contents or room.print_room_contents.