Adding a Menu

You can add a menu to the Quest window using a block like this:

define menu <&My Menu>
	&Look around the room: look
	Check &inventory: inventory
	-
	&About this game: about
end define

The format of lines in the menu block is:

menu text : command to run

The menu text can contain a & character. This will cause the letter that follows it to be underlined, which will be the keyboard shortcut for the menu. In the example above, the user can press Alt+M to access the menu, and then "I" to run the "inventory" command.

If the menu line is just a dash "-", a separator appears in the menu at that position.

 

< Back