Verbs and commands
The ADRIFT 5 standard library provides a large number of pre-defined commands to perform many of the common actions that are required in an adventure game.
Most commands consist of a verb (action) followed by one or two nouns (objects) which are used to perform the action with, however a few allow just the noun to be specified, and the verb to use is implied.
This is a summary of the standard commands. For more detailed information, command abreviations and alternate wording, go to The Standard Library page.
Contents
References
The words between % symbols in the left colomb are called references, and are replaced by the name of an actual object in the game.
- %object% is the name of any static or dynamic object, eg. 'pen' or 'large red ball'. If it is in the plural form %objects%, then you can also list multiple objects or use "All" to perform this command on all relevant objects.
- %character% is either the proper name or descriptor of a character, eg. 'john doe' or 'tall man'.
- %direction% can only be a compass direction, up, down, in or out.
- %number% can be any number.
- %text% can be anything.
Picking up and putting down objects
Only objects which have their "Object Type" property set to "Dynamic" can be picked up. Other characters in the game can also carry objects, not just the player. Where %objects% is shown, rather than %object%, it is possible to list several dynamic objects to be picked up or dropped at once, or use the word "all" to take everything at the location or drop everything in your inventory.
> inventory |
Lists what the player is currently wearing & holding. |
> get %objects% |
Pick up a dynamic object from the players current location. |
> drop %objects% |
The named object, which must be in the players inventory, is put on the ground. |
> get %objects% from %object% |
Take an object that is inside or on top of another object. |
> give %objects% to %character% |
Object in players inventory goes to another characters inventory. |
> put %objects% in %object% |
object in players inventory is put into a container. |
> put %objects% on %object% |
object in players inventory is put onto an object with a surface. |
Sitting and Laying down
The player can sit down on chairs or lay on beds.
They can also lay down or sit on the floor or ground.
An object must have the property "Characters can sit on this object" for the player to be able to sit on it.
An object must have the property "Characters can lie on this object" to lay on it.
Objects with the property "Characters can stand on this object" can also be stood upon.
> get on %object% |
The player sits on the indicated object. |
> sit up |
The player sits down on the floor or ground. |
> get on %object% |
The player lays on the indicated object. |
> lie down |
The player lays down on the floor or ground. |
> stand out of %object% |
The player gets off of the indicated object. |
> stand up |
The player gets off of the object that they are currently on top of and stand up. |
> get on %object% |
The player stands on top of the indicated object. |
> stand |
The player stands up id they are sitting or laying down. |
Pushing and Pulling
> push %object% |
By default this just gives a "nothing happens" message, but you can override this to push something along like a trolly, or to press a button. |
> tug %object% |
By default this just gives a "nothing happens" message, but you can override this to pull something along, or to pull a lever. |
Conversation
> %objects% |
TBD. |
Open and Close
> %objects% |
TBD. |
Look and Examine
> %objects% |
TBD. |
Clothing
> %objects% |
TBD. |
Food and Drink
> %objects% |
TBD. |
Player Movement
> %objects% |
TBD. |
Attack!
> %objects% |
TBD. |