Difference between revisions of "Verbs and commands"

From ADRIFT 5 Manual Wiki
Jump to: navigation, search
m (Sitting and Laying down)
(Conversation)
Line 197: Line 197:
  
 
== Conversation ==
 
== Conversation ==
<table border=0><td bgcolor="#000000" width=150>
+
<table border=0><td bgcolor="#000000" width=200>
 
<FONT COLOR=#FF0000>
 
<FONT COLOR=#FF0000>
> <FONT COLOR=#00C0FF>%objects%</FONT> <br>
+
> ask about <FONT COLOR=#00C0FF>%text%</FONT>  
>  <FONT COLOR=#00C0FF>%objects%</FONT><br>
+
> <FONT COLOR=#00C0FF>%objects%</FONT> up<br>
+
> <FONT COLOR=#00C0FF>%objects%</FONT>  
+
 
</FONT></td><td>
 
</FONT></td><td>
TBD.
+
If the player is already in a conversation with another character, or is alone with a single character, it will execute any 'ask' topic that matches the subject %text%.
 +
</td></table>
 +
 
 +
<table border=0><td bgcolor="#000000" width=200>
 +
<FONT COLOR=#FF0000>
 +
> ask <FONT COLOR=#00C0FF>%character%</FONT> about <FONT COLOR=#00C0FF>%text%</FONT>
 +
</FONT></td><td>
 +
%character% will execute any 'ask' topic that matches the subject %text%.
 +
</td></table>
 +
 
 +
<table border=0><td bgcolor="#000000" width=200>
 +
<FONT COLOR=#FF0000>
 +
> tell <FONT COLOR=#00C0FF>%character%</FONT> about <FONT COLOR=#00C0FF>%text%</FONT>
 +
</FONT></td><td>
 +
%character% will execute any 'tell' topic that matches the subject %text%.
 +
</td></table>
 +
 
 +
<table border=0><td bgcolor="#000000" width=200>
 +
<FONT COLOR=#FF0000>
 +
> say <FONT COLOR=#00C0FF>%text%</FONT>
 +
</FONT></td><td>
 +
If the player is already in a conversation with another character, or is alone with a single character, it will execute any topic that matches the subject %text%.
 +
</td></table>
 +
 
 +
<table border=0><td bgcolor="#000000" width=200>
 +
<FONT COLOR=#FF0000>
 +
> say <FONT COLOR=#00C0FF>%text%</FONT> to <FONT COLOR=#00C0FF>%character%</FONT>
 +
</FONT></td><td>
 +
%character% will execute any topic that matches the subject %text%.
 
</td></table>
 
</td></table>
  

Revision as of 10:25, 26 December 2011

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.

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
> i

Lists what the player is currently wearing & holding.
Every character has an inventory of objects that they are carrying or wearing, but the player can only inspect their own inventory.

> get %objects%
> pick up %objects%
> pick %objects% up
> take %objects%

Pick up a dynamic object from the players current location.

> drop %objects%
> put down %objects%
> put %objects% down

The named object, which must be in the players inventory, is put on the ground.

> get %objects% from %object%
> pick up %objects% from %object%
> pick %objects% up from %object%
> remove %objects% from %object%
> take %objects% from %object%

Take an object that is inside or on top of another object.

> give %objects% to %character%
> give %character% %objects%
> offer %objects% to %character%
> offer %character% %objects%

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%
> sit in %object%
> sit on %object%
> sit up in %object%
> sit down on %object%

The player sits on the indicated object.
If they are already laying on the object, they sit up..
NOTE: The command "get on %object%" will only cause you to sit on an object that you cant stand on.

> sit up
> sit down

The player sits down on the floor or ground.
If they are already standing or laying on an object, they sit on that object.

> get on %object%
> lie on %object%
> lie in %object%
> lie down on %object%
> lie down in %object%
> lay on %object%
> lay in %object%
> lay down on %object%
> lay down in %object%

The player lays on the indicated object.
If they are already laying on the object, they sit up.
NOTE: The command "get on %object%" will only cause you to lay on an object that you cant stand or sit on.

> lie down
> lay down

The player lays down on the floor or ground.
If they are already standing or sitting on an object, they lay down on that object.

> stand out of %object%
> stand off of %object%
> get out %object%
> get off %object%
> move out %object%
> move off %object%
> exit %object%
> leave %object%

The player gets off of the indicated object.

> stand up
> get up
> move up
> exit
> get off
> leave

The player gets off of the object that they are currently on top of and stand up.

> get on %object%
> stand on %object%
> stand in %object%

The player stands on top of the indicated object.

> stand
> stand up

The player stands up if they are sitting or laying down.
If they are already laying or sitting on an object, they stand on that object.

Pushing and Pulling

> push %object%
> shove %object%
> press %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%
> pull %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

> ask about %text%

If the player is already in a conversation with another character, or is alone with a single character, it will execute any 'ask' topic that matches the subject %text%.

> ask %character% about %text%

%character% will execute any 'ask' topic that matches the subject %text%.

> tell %character% about %text%

%character% will execute any 'tell' topic that matches the subject %text%.

> say %text%

If the player is already in a conversation with another character, or is alone with a single character, it will execute any topic that matches the subject %text%.

> say %text% to %character%

%character% will execute any topic that matches the subject %text%.

Open and Close

> %objects%
> %objects%
> %objects% up
> %objects%

TBD.

Look and Examine

> %objects%
> %objects%
> %objects% up
> %objects%

TBD.

Clothing

> %objects%
> %objects%
> %objects% up
> %objects%

TBD.

Food and Drink

> %objects%
> %objects%
> %objects% up
> %objects%

TBD.

Player Movement

> %objects%
> %objects%
> %objects% up
> %objects%

TBD.

Attack!

> %objects%
> %objects%
> %objects% up
> %objects%

TBD.