Changes between Initial Version and Version 1 of pd


Ignore:
Timestamp:
Jul 6, 2011 3:48:30 PM (13 years ago)
Author:
xwang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pd

    v1 v1  
     1This command tells the agent to put down the specified quantity of an item.
     2
     3'''Parameters:'''
     4 * 1: int item, the item to put down.
     5  * 0 = treasure
     6  * 1 = map
     7  * 2 = apple
     8  * 3 = money
     9  * 4 = food
     10 * 2: int quantity, how much of the item to put down. If the quantity is greater than the current amount in the inventory, the quantity is rounded down to the current amount.
     11
     12'''Reports:'''
     13 * ''done'' when the task is complete.
     14 * ''invalid_item'' if the first argument is not 0-4.
     15 * ''none_in_inventory'' if the agent does not have any of the specified item.
     16 * ''invalid_quantity'' if the second argument is not positive.
     17 * ''popped'' if popped by [[po]].
     18 * ''forgotten'' if deleted by [[fa]] or [[fm]].
     19 * ''replaced'' if replaced by a command scheduled with 'r'.
     20
     21'''Example:'''
     22 * User sends: "n pd 512 0 20"
     23 * Bot replies "cp pd 512 done"
     24 * Bot drops 20 treasure.