| |
- chk_can_manip(ch, cmd)
- cmd_close(ch, cmd, arg)
- Usage: close <direction | door | container>
Attempts to close the specified door, direction, or container.
- cmd_drop(ch, cmd, arg)
- Usage: drop <item>
Attempts to move an object from your inventory to the ground.
- cmd_get(ch, cmd, arg)
- Usage: get [the] <item> [[from] <other item>]
Attempts to move an object from the room to your inventory. If an
addition argument is supplied, the command assumes it is a container and
instead tries to move an object from the container to your inventory.
- cmd_give(ch, cmd, arg)
- Usage: give <object> [to] <person>
Attempts to transfer an object from your inventory to the specified
person. You can give multiple objects at a time by using the all.
prefix. For example:
> give all.cookie george
Would give all of the cookies in your inventory to George. If you only
want to give him the raisin cookie, which also happens to be the third
cookie in your inventory, you can use a numeric prefix instead of
the all prefix. For example:
> give 3.cookie george
- cmd_lock(ch, cmd, arg)
- Usage: lock <direction | door | container>
Attempts to lock a specified door, direction, or container.
- cmd_open(ch, cmd, arg)
- Usage: open [the] <direction | door | container>
Attempts to open the speficied door, direction, or container.
- cmd_put(ch, cmd, arg)
- Usage: put [the] <item> [in the] <container>
Attempts to move an object from your inventory into a specified
container. The container must be in the room, in your inventory, or
worn.
- cmd_remove(ch, cmd, arg)
- Usage: remove <item | all>
Attempts to remove an item you have equipped. If you would like to
remove everything you are wearing, you may instead specify 'all'
instead of a specific item. If you would like to remove all of a certain
type of object (for instance, rings) you can use an all. prefix. For
example:
> remove all.ring
This command will remove everything you are wearing with the 'ring'
keyword. If you would instead like to remove, say, the second thing you
are wearing with the 'ring' keyword, you can supply a numeric prefix.
For example:
> remove 2.ring
- cmd_unlock(ch, cmd, arg)
- Usage: unlock <door | direction | container>
Attempts to unlock the specified door, direction, or container.
- cmd_wear(ch, cmd, arg)
- Usage: wear <item> [where]
Attempts to equip an item from your inventory. If you would like to
equip it to a non-default location, you can supply where on your body
you would like to wear it. For example, if you would like to equip a
torch, but in your offhand instead of your mainhand:
> wear torch offhand
If an item covers multiple locations on your body, you can specify where
all you would like to equip the item as a comma-separated list:
> wear gloves left hand, right hand
- do_drop(ch, obj)
- handles object dropping
- do_get(ch, obj, cont)
- transfers an item from the ground to the character
- do_give(ch, recv, obj)
- does the handling of the give command
- do_put(ch, obj, cont)
- handles the putting of objects
- do_remove(ch, obj)
- handles equipment removing
- do_wear(ch, obj, where)
- handles object wearing
- try_get_from(ch, cont, arg)
- tries to get one item from inside another
- try_manip_other_exit(room, ex, closed, locked)
- used by open, close, lock, and unlock. When an exit is manipulated on one
side, it is the case that we'll want to do an identical manipulation on
the other side. That's what we do here. Note: Can only do close OR lock
with one call to this function. Cannot handle both at the same time!
|