[Package Index | Mudlib Index | Effect Index]
Written by Pinkfish
Started Wed Feb 2 15:38:10 PST 2000
.
int held_this_item(int held, object holder, mixed arg)This method is called by the inheritable when the object is change from being held to unheld, or vica versa. This should be used to turn on and off light sources and so on. The method will also be called with a 2 if the object was held and we are doing an initialisation sequence.
varargs int * hold_item(object who, int pos)Attempts to free up enough limbs for this_object to be held. If items are dropped to make this possible, who is notified. If enough limbs are freed, attempts to hold this_object. If the position is undefined (ie: not specified) then it will try and choose a limb by itself.
The return numbers are the limb numbers that were used by holding the item.
hold_item: As designed by Tannah!
int move(mixed ob)This method should be called by the upper level moves. The result needs to be check, if it is not MOVE_OK then the move should be stopped.
object query_holder()This method returns the person who is holding the object.
int query_my_limb()This method returns the current limb the object is being held in.
int query_no_limbs()This method returns the number of limbs that the object uses.
int set_holder(object ob, int limb)This method is called from the living object when we are held or unheld.
void set_no_limbs(int num)This method sets the number of limbs the object uses when held.