NAME simple_container.c - a simple container object INHERITS basic_thing.c (see basic_thing.doc for more info) SETUP FUNCTIONS set_max_weight SPECIAL PROPERTIES waterproof - prevents things inside the container to become wet when container becomes wet is_where - if set, the positional description 'in' in the message given from prevent_insert() will be replaced by the value of the property. contain_msg - replaces the 'contains' in the desc when you examine the container, and there are things in it. __remote REMOTE FUNCTIONS remote_prevent_insert remote_handle_insert ======================================================================= NAME set_max_weight - set how much this object can contain SYNTAX set_max_weight(int max_weight) DESCRIPTION Sets how much this container can contain, the total weight of the objects in the container may not be larger than this value. Default is 7. ======================================================================= NAME remote_prevent_insert - prevent players to insert some things SYNTAX int remote_prevent_insert(object container, object what) DESCRIPTION If this function returns 1, it will prevent 'what' from being inserted into 'container' a suitable error message should be displayed. It is not certain that it will be inserted in the container if this function returns zero, becuase it still may not fit. ======================================================================= NAME remote_handle_insert - do side effects when inserting things SYNTAX void remote_handle_insert(object container, object what) DESCRIPTION This function is called when 'what' has been inserted into 'container' successfully. It may be used to make trash cans, and other objects that has side effects when you put things in them. =======================================================================
Help topics available:
board.doc | box.doc | door.doc | hidden_door.doc | lib.doc |
remote | sequence.doc | simple_armour.doc | simple_container.doc | simple_weapon.doc |
You are guest number 101 since November 2019.
This file was last modified: June 2000.