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 : 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]