Object
An Object is a validated handle for a native database object. Create one with
mux.world.object. Handles become invalid if their object is destroyed
or its database slot is reused. Two handles for the same live object compare
equal, and tostring(object) produces a value such as object(#123).
Sub-handlers
The following methods return nested handlers for managing more complex aspects of the object.
| Method | Description |
|---|---|
Object:flags | Opens the object’s flag collection. |
Object:powers | Opens the object’s power collection. |
Object:state | Opens a persistent state namespace. |
Methods
| Method | Description |
|---|---|
Object:affiliation | Returns the object’s assigned affiliation. |
Object:set_affiliation | Assigns or clears the object’s affiliation. |
Object:contents | Lists and filters directly contained objects and attached exits. |
Object:dbref | Returns the object’s native database reference. |
Object:destination | Returns an exit’s destination. |
Object:description | Returns the object’s description. |
Object:set_destination | Sets or clears an exit’s destination. |
Object:home | Returns a thing or player’s home. |
Object:set_home | Sets a thing or player’s home. |
Object:location | Returns a thing or player’s location. |
Object:internal_description | Returns the object’s internal description. |
Object:name | Returns the object’s current name. |
Object:set_name | Changes the object’s name. |
Object:set_description | Sets or clears the object’s description. |
Object:set_internal_description | Sets or clears the object’s internal description. |
Object:lua_parent | Returns the object’s direct Lua parent path. |
Object:set_lua_parent | Assigns or clears the object’s Lua parent. |
Object:type | Returns the object’s native object type. |
Object:zone | Returns the object’s assigned zone. |
Object:set_zone | Assigns or clears the object’s zone. |