Syntax Formatting

Throughout this document, syntax formatting is used in order to show how the various commands and tags should be typed in. Please be aware that syntax formatting often shows brackets which you do not need to type - in fact, typing the brackets will stop Quest from working properly.

ExampleDescription
keywordA script command or tag you're instructed to type appears in bold.
option ]Optional items appear in square brackets - do not type the brackets.
this | that }Where you have a choice, options appear in braces separated by vertical bars. In this example you would enter either "this" or "that".
objectItalics indicate where you type something in. In this example, here you would enter the name of an object. As another example, script means you can enter any script command here.
codeA monospaced font is used within text to indicate something you type in, and also for code examples.

For example:

if [ not ] here <object> then script [ else script ]

means:

The "if" part must be present
The "not" part is optional
The "here" part must be present
The "<" part must be present
An object name must be present
The ">" part must be present
The "then" part must be present
Any script command must be entered after "then"
Optionally, an "else" followed by any script command can be present.

An example of a statement of the above form is:

if here <carrot> then msg <You can see a carrot.>

And another example is:

if not here <magic wand> then msg <You don't have your magic wand to hand!> else do <magic procedure>

 

< Back