Chest Object Functions for Mocha


integer obj.chest_size;
void set_chest_size (object obj, integer size);
Determine or set the size of a chest. The size of a chest dictates how much the chest can hold and must fall in the range 0 to 1000.

boolean obj.chest_is_closable;
void set_chest_closable (object obj, boolean flag);
Determine or set whether or not the chest can be closed.

boolean obj.chest_is_pickable;
void set_chest_pickable (object obj, boolean flag);
Determine or set whether or not the chest can be picked (or knocked).

boolean obj.chest_is_closed;
void set_chest_closed (object obj, boolean flag);
Determine or set whether or not the chest is closed.

boolean obj.chest_is_locked;
void set_chest_locked (object obj, boolean flag);
Determine or set whether or not the chest is locked.

integer obj.chest_key;
void set_chest_key (object obj, integer key);
Determine or set the virtual number of the key to a chest. A value of nothing indicates that the chest has no key.


Return to Mocha Object Functions Page

Return to Mocha's Main Page