Object Commands

Object Commands are used by statistics to determine the sort of object something is and display the appropriate statistic. For example the statistics for a human are different from an object like a chair:

files/objectcommands.jpg

files/objectcommands2.jpg

The object element has an 'objectcommand' attribute which links to the 'objectcommand' in statsection. Thus if the clicked object has the attribute 'object' then the selecteds with the objectcommand 'object' will be displayed.

Object commands are also used by the clicklist. The objectcommands element holds a reference to a rawlist that is the list of items of the clicklist. For example if a chair has the object command 'object' it might have the following OBJECTCOMMAND:

<OBJECTCOMMAND name="object" list="object"/>

The 'list' links to rawlist of name 'object'. clicklists can also inherit preceding objectcommands using the 'copyof' attribute. For example the following object command 'card' will have the rawlist 'card' and also those of 'object'.

<OBJECTCOMMAND name="card" list="card" copyof="object"/>

Objectcommands can be overriden by the mud. For example {odog,khuman} means that the dog no longer uses the 'kill' object command instead will use the 'human' object command. The dog will then have the statisics of a human.