Server objects file
Objects are things that players can pick up or otherwise interact
with, such as books, computers or switches. Every object has a unique name,
a description and a position (either at some node, or in some
persons inventory). The format of the objects file is :
object name {
attribute value(s)
attribute value(s)
...
}
object name {
attribute value(s)
...
}
...
Every object must have a unique name to identify it. There should also be
a shape of the same name, positioned at the node at which the object
is located.
Valid attributes for an object are :
- desc string
A description of this object, for the benefit of those with
text-only clients.
- pos node
If this attribute is given, then the object is located at the
named node in the map. If not, then this object should
have an inv attribute to specify who's inventory it is in.
- inv person
The name of a person carrying this object. If this
attribute isn't given, then a pos attribute should be.
- weight number
The weight of this object in kilograms. This isn't really used
yet.
- ungettable / gettable
Objects with the ungettable attribute cannot be picked
up by users, while objects with gettable (or with neither)
can. The ungettable attribute is useful for fixed objects
(like switches or paintings) and objects that you don't want users
to steal.
Objects can have 0 or more data files associated with them. To give an object
a data file, create a directory called object_data in the map data
directory for your server, and a subdirectory under object_data with
the same name as the object. Any files placed in the subdirectory (.gif image
files, postscript, etc..) will be associated with the object and transferred
to other servers if the object is carried from one to another.
If an action is associated with an object, then one of the methods
of that action can send data associated with the object to a user's client.
See the actions file guide for more details.
Return to the [server guide]
or to the [final report]