What's the basic syntax for commands? Thumbnail

Q:

What's the basic syntax for commands?

A:

Commands are of three forms:
  1. VERB
  2. VERB NOUN
  3. VERB NOUN1 PREPOSITION NOUN2.

Examples:

  1. INVENTORY, SCORE, WHO, EAST
  2. EAT BANANA, HIT ZOMBIE, OPEN UMBRELLA, FOLLOW RAT, SHOUT "HI FOLKS!"
  3. KILL DWARF WITH AXE, OPEN DOOR WITH KEY, LIGHT STICK FROM FIRE, PUT TREASURE IN BAG.

Most of the time the nouns are objects (eg. UMBRELLA), but some commands expect strings, which are messages in quotes (eg. "HI FOLKS!"). It doesn't really matter what preposition you use - F (short for FROM) is commonest. Adjectives and adverbs can be used if you really insist, and articles are occasionally useful (KILL A RAT attacks one of them, whereas than KILL RAT attacks them all).

Most commands, but direction commands in particular, can be strung together on one line, separated by dots. Each dot means one repetition of the previous command, eg. O.O.O.O.O.O.O is the same as O....... and will move you OUT seven times.


Copyright © Multi-User Entertainment Ltd. ( muse@mud.co.uk )
21st January 1998: q6.htm