From the NannyMUD documentation
2005-07-29
properties - About the NannyMUD property system.
add_property
set_property
query_property
remove_property
Properties is a very convenient way of giving rooms and other
objects more information and functions. There are two main
types of properties, internal and external, used in the lib.
Some of the external properties are incremental, see below.
The internal properties are used by objects to govern their
own behaviour, while external properties influence how other
objects react.
The external properties are stored in a database, while the
internal properties are documented in the documentation for
the objects that define them. The documentation for both kinds
of properties can be accessed from the xmanmod.
The external properties are grouped into classes. The classes
are:
Players
Monsters
Livings
Rooms
Objects
Some of the external properties are incremental, i.e. when
you add the property, the value is increased by one and when
you remove it, the value is decreased by one. The exact list
of those properties are hardcoded into /obj/property.
The property "plain" is an external property
The property "nightvision" is an incremental external property
The property "__remote" is an internal property
xmanmod in xdoc/xmanmod
temp_ in std/basic/basic
NAME
add_property - Adds or changes a property in an objectSYNTAX
add_property(str, val)DESCRIPTION
Adds or changes a property in an object, if val is not specified, it is set to 1.
FUNCTION
NAME
set_property - Sets a property in an objectSYNTAX
set_property(str, val)DESCRIPTION
Same as add_property, but ALL old properties are removed from the object.
FUNCTION
NAME
query_property - Returns the value of the propertySYNTAX
query_property(str)DESCRIPTION
Returns the value of the property str. (Or just 1 if the property has no 'value').
FUNCTION
NAME
remove_property - Remove a propertySYNTAX
remove_property(str)DESCRIPTION
Tries to remove the property str. If no arg, all properties will be removed.