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.

MethodDescription
Object:flagsOpens the object’s flag collection.
Object:powersOpens the object’s power collection.
Object:stateOpens a persistent state namespace.

Methods

MethodDescription
Object:affiliationReturns the object’s assigned affiliation.
Object:set_affiliationAssigns or clears the object’s affiliation.
Object:contentsLists and filters directly contained objects and attached exits.
Object:dbrefReturns the object’s native database reference.
Object:destinationReturns an exit’s destination.
Object:descriptionReturns the object’s description.
Object:set_destinationSets or clears an exit’s destination.
Object:homeReturns a thing or player’s home.
Object:set_homeSets a thing or player’s home.
Object:locationReturns a thing or player’s location.
Object:internal_descriptionReturns the object’s internal description.
Object:nameReturns the object’s current name.
Object:set_nameChanges the object’s name.
Object:set_descriptionSets or clears the object’s description.
Object:set_internal_descriptionSets or clears the object’s internal description.
Object:lua_parentReturns the object’s direct Lua parent path.
Object:set_lua_parentAssigns or clears the object’s Lua parent.
Object:typeReturns the object’s native object type.
Object:zoneReturns the object’s assigned zone.
Object:set_zoneAssigns or clears the object’s zone.

See Also