Difference between revisions of "Verbs and commands"
From ADRIFT 5 Manual Wiki
m |
(Simplified by moving extra detail to Standard Library page) |
||
Line 3: | Line 3: | ||
The words between % symbols in the left colomb are called [[Tasks#References|references]], and are replaced by the name of an actual object in the game. | The words between % symbols in the left colomb are called [[Tasks#References|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 plural then you can also use "All". | + | :%object% is the name of any static or dynamic object, eg. 'pen' or 'large red ball'. If it is in plural form (%objects%) then you can also 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'. | :%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. | :%direction% can only be a compass direction, up, down, in or out. | ||
Line 11: | Line 11: | ||
The other words between % symbols in the right colomb are [[Functions]] which print the names of the objects and characters being referenced. | The other words between % symbols in the right colomb are [[Functions]] which print the names of the objects and characters being referenced. | ||
− | [[File:IconWarning.png]] UNDER CONSTRUCTION - THIS | + | [[File:IconWarning.png]] UNDER CONSTRUCTION - THIS SECTION IS INCOMPLETE. |
+ | |||
+ | == Inventory Commands == | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Command | ! Command | ||
! Action | ! Action | ||
− | |||
|- | |- | ||
| drop %objects% | | drop %objects% | ||
| object in inventory is put on the ground | | object in inventory is put on the ground | ||
− | |||
|- | |- | ||
| get %objects% | | get %objects% | ||
| pick up a dynamic object from current location | | pick up a dynamic object from current location | ||
− | |||
|- | |- | ||
| get %objects% from %object% | | get %objects% from %object% | ||
| Take an object that is inside or on top of another object | | Take an object that is inside or on top of another object | ||
− | |||
|- | |- | ||
| give %objects% to %character%<br>give %character% %objects% | | give %objects% to %character%<br>give %character% %objects% | ||
| object in inventory goes to another characters inventory | | object in inventory goes to another characters inventory | ||
− | |||
|- | |- | ||
| Inventory | | Inventory | ||
| Lists what the player is currently wearing & holding | | Lists what the player is currently wearing & holding | ||
− | |||
|- | |- | ||
| offer %objects% to %character%<br>offer %character% %objects% | | offer %objects% to %character%<br>offer %character% %objects% | ||
| object in inventory goes to another characters inventory | | object in inventory goes to another characters inventory | ||
− | |||
|- | |- | ||
| pick up %objects%<br>pick %objects% up | | pick up %objects%<br>pick %objects% up | ||
| pick up a dynamic object from current location | | pick up a dynamic object from current location | ||
− | |||
|- | |- | ||
| pick up %objects% from %object%<br>pick %objects% up from %object% | | pick up %objects% from %object%<br>pick %objects% up from %object% | ||
| Take an object that is inside or on top of another object | | Take an object that is inside or on top of another object | ||
− | |||
|- | |- | ||
| put down %objects%<br>put %objects% down | | put down %objects%<br>put %objects% down | ||
| object in inventory is put on the ground | | object in inventory is put on the ground | ||
− | |||
|- | |- | ||
| put %objects% in %object% | | put %objects% in %object% | ||
| object in inventory is put into a container | | object in inventory is put into a container | ||
− | |||
|- | |- | ||
| put %objects% on %object% | | put %objects% on %object% | ||
| object in inventory is put onto a surface | | object in inventory is put onto a surface | ||
− | |||
|- | |- | ||
| remove %objects% from %object% | | remove %objects% from %object% | ||
| Take an object that is inside or on top of another object | | Take an object that is inside or on top of another object | ||
− | |||
|- | |- | ||
| take %objects% | | take %objects% | ||
| pick up a dynamic object from current location | | pick up a dynamic object from current location | ||
− | |||
|- | |- | ||
| take %objects% from %object% | | take %objects% from %object% | ||
| Take an object that is inside or on top of another object | | Take an object that is inside or on top of another object | ||
− | |||
|} | |} |
Revision as of 04:35, 21 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. This is a summary of the standard commands. For more detailed information, command abreviations and alternate wording, go to The Standard Library page.
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 plural form (%objects%) then you can also 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.
The other words between % symbols in the right colomb are Functions which print the names of the objects and characters being referenced.
UNDER CONSTRUCTION - THIS SECTION IS INCOMPLETE.
Inventory Commands
Command | Action |
---|---|
drop %objects% | object in inventory is put on the ground |
get %objects% | pick up a dynamic object from current location |
get %objects% from %object% | Take an object that is inside or on top of another object |
give %objects% to %character% give %character% %objects% |
object in inventory goes to another characters inventory |
Inventory | Lists what the player is currently wearing & holding |
offer %objects% to %character% offer %character% %objects% |
object in inventory goes to another characters inventory |
pick up %objects% pick %objects% up |
pick up a dynamic object from current location |
pick up %objects% from %object% pick %objects% up from %object% |
Take an object that is inside or on top of another object |
put down %objects% put %objects% down |
object in inventory is put on the ground |
put %objects% in %object% | object in inventory is put into a container |
put %objects% on %object% | object in inventory is put onto a surface |
remove %objects% from %object% | Take an object that is inside or on top of another object |
take %objects% | pick up a dynamic object from current location |
take %objects% from %object% | Take an object that is inside or on top of another object |