The command parser

From ADRIFT 5 Manual Wiki
Revision as of 08:11, 29 September 2012 by Saabie (Talk | contribs) (Created page with "== Special parser key-words == The following keywords are directly decoded by the parser to allow more complex commands to be entered than has been defined in the general tasks. ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Special parser key-words

The following keywords are directly decoded by the parser to allow more complex commands to be entered than has been defined in the general tasks.

This allows for more natural commands to be entered, and enables the player to manipulate multiple objects with a single command.

ALL

The ALL keyword can be used anywhere an %object% reference appears in a command. It causes the tasks actions to be executed for every object that would pass the tasks restrictions. The output message of the task is then printed, using a list of those objects where it would normally print the name of a single object.

> get all
Ok, I pick up the floor mat, the red pen and the bouquet of flowers

get all will get every object in the current location that the player is allowed to take.

> drop all
Ok, I put down the floor mat, the red pen and the bouquet of flowers

drop all will drop everything in the players inventory.

AND

The AND keyword lets the player specify several items at once.

> get flowers and mat
Ok, I pick up the floor mat and the bouquet of flowers

Using AND you can perform the same command on two objects at once.

> get scarab, flowers and mat
Ok, I pick up the egyptian scarab, the floor mat and the bouquet of flowers

For more than two objects, separate them with comma's.

EXCEPT

The EXCEPT keyword is usually used with ALL to exclude one or two objects from a large group.

> get all except flowers and mat
Ok, I pick up the red pen, the blue pen and the egyptian scarab

Player gets everything except the objects he excludes.

IT

> get all
Ok, I pick up the floor mat, the red pen and the bouquet of flowers

get all will get every object in the current location that the player is allowed to take.

> drop all
Ok, I put down the floor mat, the red pen and the bouquet of flowers

drop all will drop everything in the players inventory.

THEM

> get all
Ok, I pick up the floor mat, the red pen and the bouquet of flowers

get all will get every object in the current location that the player is allowed to take.

> drop all
Ok, I put down the floor mat, the red pen and the bouquet of flowers

drop all will drop everything in the players inventory.

HIM

> get all
Ok, I pick up the floor mat, the red pen and the bouquet of flowers

get all will get every object in the current location that the player is allowed to take.

> drop all
Ok, I put down the floor mat, the red pen and the bouquet of flowers

drop all will drop everything in the players inventory.

HER

> get all
Ok, I pick up the floor mat, the red pen and the bouquet of flowers

get all will get every object in the current location that the player is allowed to take.

> drop all
Ok, I put down the floor mat, the red pen and the bouquet of flowers

drop all will drop everything in the players inventory.