Module m_gettable
Documentation for the modules-m_gettable module in /std/modules/m_gettable.c.
Functions
-
void set_getmsg(string s)
Sets the error message that one gets when one tries to take an object.
-
string query_getmsg()
Returns the error message that one gets when one tries to take an object.
-
void set_gettable(mixed g)
g == 1 makes an object gettable, while g == 0 makes it not gettable. If a function or string is passed, this has the same effect as calling set_getmsg().
-
mixed get()
Do some checks before getting an object. Returns 1 if successful, otherwise 0 or a string error message.
-
void set_dropmsg(string s)
Set the error message that one gets when one tries to drop an object
-
string query_dropmsg()
returns the error message one gets when one tries to drop an object.
-
void set_droppable(int g)
g == 1 makes an object droppable, while g == 0 makes it not droppable. If a function or string is passed, this has the same effect as calling set_dropmsg().
-
mixed drop()
Do some checks before dropping an object. Returns 1 if successful, otherwise 0 or a string error message.
-
int is_gettable()
return one if an object can be taken.
File generated by Lima 1.1a4 reStructured Text daemon.