Skip to main content

test_remove

Discworld object help

test_remove

Name

test_remove - Is this object allowed out?

Syntax

int test_remove(object ob, int flag, mixed dest);

Description

This function tests to see whether the object `ob' is allowed to be removed from the container it is in and put in `dest'. If it returns 1, then leaving is possible else it is blocked. The `flag' is the value of the move flag as set by set_get and reset_get. This is 1 if reset_drop is called. `dest' is either the filename of the destination or the actual destination.

Examples:

/* This is a very simple test */
int test_remove(object ob, int flag, mixed dest) {
return !flag;
} /* test_remove() */

See also

test_add, move, set_drop, reset_drop