Skip to main content

objecttype

Discworld expression help

objecttype

Name

objecttype - the type of the objects

Syntax

string objecttype(array object obs)

Description

This method returns the type of the passed in objects. The type is one of: weapon, armour, clothing, misc, mixed.

If there is more than one type of item then the type of 'mixed' will be returned.

The type of 'misc' is for any object that is not a weapon, armour or clothing.

Examples

objecttype(objects) = 'armour'

See also