<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Object on StompyMUX Documentation</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/</link><description>Recent content in Object on StompyMUX Documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://stompymux.com/docs/scripting/packages/mux/world/type-object/index.xml" rel="self" type="application/rss+xml"/><item><title>affiliation</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/affiliation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/affiliation/</guid><description>&lt;p&gt;Returns an object&amp;rsquo;s assigned affiliation.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; affiliation &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:affiliation()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver is the live database object to inspect.&lt;/p&gt;
&lt;h2 id="returns"&gt;Returns&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;Object|nil affiliation&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A handle for the assigned object, or &lt;code&gt;nil&lt;/code&gt; when the object has no
affiliation or its affiliate is being destroyed.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;Affiliations are persistent object references only. They do not affect command
matching, events, permissions, or other server behavior.&lt;/p&gt;
&lt;h2 id="errors-and-availability"&gt;Errors and availability&lt;/h2&gt;
&lt;p&gt;Raises &lt;code&gt;mux.object.invalid&lt;/code&gt; for an invalid receiver or an invalid affiliation
stored on the object. This method is unavailable during
&lt;code&gt;@lua/check&lt;/code&gt; and raises &lt;code&gt;mux.unavailable.checking&lt;/code&gt; there.&lt;/p&gt;</description></item><item><title>contents</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/contents/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/contents/</guid><description>&lt;p&gt;Returns objects directly contained by or attached to this object.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;h3 id="synopsis"&gt;Synopsis&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:contents( options&lt;span style="color:#960050;background-color:#1e0010"&gt;?&lt;/span&gt; )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;table or nil options&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional filters.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="filter-table-keys-and-values"&gt;Filter table keys and values&lt;/h3&gt;
&lt;p&gt;With no argument, &lt;code&gt;nil&lt;/code&gt;, or &lt;code&gt;{}&lt;/code&gt; as the options table, the method returns all
ordinary contents and attached exits.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;ObjectType[] options.types&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Include only objects whose types appear in this array. Values must be typed
constants from &lt;a href="../../types/"&gt;&lt;code&gt;mux.world.types&lt;/code&gt;&lt;/a&gt;. An empty array matches
nothing.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number or Object options.visible_to&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Include only objects visible to the provided viewer under native look rules.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;table contents&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;An array of matching &lt;code&gt;Object&lt;/code&gt; handles. Ordinary contents precede attached
exits, with native database order preserved within each group.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; visible_exits &lt;span style="color:#f92672"&gt;=&lt;/span&gt; room:contents({
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; types &lt;span style="color:#f92672"&gt;=&lt;/span&gt; { mux.world.types.EXIT },
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; visible_to &lt;span style="color:#f92672"&gt;=&lt;/span&gt; ctx.enactor,
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;})
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;The receiver must be capable of holding contents or exits.
This method is unavailable during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>dbref</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/dbref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/dbref/</guid><description>&lt;p&gt;Returns this object&amp;rsquo;s native database reference.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;h3 id="synopsis"&gt;Synopsis&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:dbref( )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments"&gt;Arguments&lt;/h3&gt;
&lt;p&gt;None.&lt;/p&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number dbref&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The object&amp;rsquo;s native database reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;The returned number identifies the object but cannot be used to change its
identity. A stale Object raises &lt;code&gt;mux.object.invalid&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../../"&gt;&lt;code&gt;mux&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../../object/"&gt;&lt;code&gt;mux.world.object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>description</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/description/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/description/</guid><description>&lt;p&gt;Returns this object&amp;rsquo;s styled description, or &lt;code&gt;nil&lt;/code&gt; when unset.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:description( )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="returns"&gt;Returns&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string or nil description&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The stored styled-text markup, or &lt;code&gt;nil&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../set-description/"&gt;&lt;code&gt;Object:set_description&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../internal-description/"&gt;&lt;code&gt;Object:internal_description&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>destination</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/destination/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/destination/</guid><description>&lt;p&gt;Returns an exit&amp;rsquo;s destination.&lt;/p&gt;
&lt;h2 id="method"&gt;Method&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; destination &lt;span style="color:#f92672"&gt;=&lt;/span&gt; exit:destination()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver must be an exit. The method returns an &lt;a href="../"&gt;Object&lt;/a&gt; handle for a
concrete destination, or &lt;code&gt;nil&lt;/code&gt; when the exit is unlinked or its destination is
being destroyed. An invalid stored destination raises &lt;code&gt;mux.object.invalid&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This method also raises &lt;code&gt;mux.object.invalid&lt;/code&gt; when called on a room, thing, or
player, and &lt;code&gt;mux.unavailable.checking&lt;/code&gt; during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="example"&gt;Example&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; destination &lt;span style="color:#f92672"&gt;=&lt;/span&gt; exit:destination()
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; destination &lt;span style="color:#66d9ef"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; mux.log(&lt;span style="color:#e6db74"&gt;&amp;#34;lua&amp;#34;&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;Exit leads to &amp;#34;&lt;/span&gt; &lt;span style="color:#f92672"&gt;..&lt;/span&gt; tostring(destination))
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;end&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>flags</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/flags/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/flags/</guid><description>&lt;p&gt;Creates a typed flag collection for this object.&lt;/p&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; flags &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:flags()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Returns a &lt;a href="../../type-flags/"&gt;&lt;code&gt;Flags&lt;/code&gt;&lt;/a&gt; handle. The object must be live, and the
method is unavailable during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../flags/"&gt;&lt;code&gt;mux.world.flags&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../powers/"&gt;&lt;code&gt;Object:powers&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>home</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/home/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/home/</guid><description>&lt;p&gt;Returns a thing or player&amp;rsquo;s assigned home.&lt;/p&gt;
&lt;h2 id="method"&gt;Method&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; home &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:home()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver must be a thing or player. The method returns an &lt;a href="../"&gt;Object&lt;/a&gt;
handle for its home, or &lt;code&gt;nil&lt;/code&gt; when no home is assigned or the home is being
destroyed.&lt;/p&gt;
&lt;p&gt;It raises &lt;code&gt;mux.object.invalid&lt;/code&gt; for other receiver types or an invalid stored
home, and &lt;code&gt;mux.unavailable.checking&lt;/code&gt; during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="example"&gt;Example&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; home &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:home()
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; home &lt;span style="color:#66d9ef"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; mux.log(&lt;span style="color:#e6db74"&gt;&amp;#34;lua&amp;#34;&lt;/span&gt;, tostring(object) &lt;span style="color:#f92672"&gt;..&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34; is homed to &amp;#34;&lt;/span&gt; &lt;span style="color:#f92672"&gt;..&lt;/span&gt; tostring(home))
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;end&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>internal_description</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/internal-description/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/internal-description/</guid><description>&lt;p&gt;Returns this object&amp;rsquo;s styled internal description, or &lt;code&gt;nil&lt;/code&gt; when unset.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:internal_description( )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="returns"&gt;Returns&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string or nil description&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The stored styled-text markup, or &lt;code&gt;nil&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../set-internal-description/"&gt;&lt;code&gt;Object:set_internal_description&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../description/"&gt;&lt;code&gt;Object:description&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>location</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/location/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/location/</guid><description>&lt;p&gt;Returns a thing or player&amp;rsquo;s current location.&lt;/p&gt;
&lt;h2 id="method"&gt;Method&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; location &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:location()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver must be a thing or player. The method returns an &lt;a href="../"&gt;Object&lt;/a&gt;
handle for its location, or &lt;code&gt;nil&lt;/code&gt; when it has no location or the location is
being destroyed. Use &lt;a href="../destination/"&gt;&lt;code&gt;Object:destination&lt;/code&gt;&lt;/a&gt; for an exit; room
droptos are not exposed by this method.&lt;/p&gt;
&lt;p&gt;It raises &lt;code&gt;mux.object.invalid&lt;/code&gt; for other receiver types or an invalid stored
location, and &lt;code&gt;mux.unavailable.checking&lt;/code&gt; during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="example"&gt;Example&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; location &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:location()
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; location &lt;span style="color:#66d9ef"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; mux.log(&lt;span style="color:#e6db74"&gt;&amp;#34;lua&amp;#34;&lt;/span&gt;, tostring(object) &lt;span style="color:#f92672"&gt;..&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34; is in &amp;#34;&lt;/span&gt; &lt;span style="color:#f92672"&gt;..&lt;/span&gt; tostring(location))
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;end&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>lua_parent</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/lua-parent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/lua-parent/</guid><description>&lt;p&gt;Returns an object&amp;rsquo;s directly assigned Lua parent path.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; parent &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:lua_parent()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver is the live database object to inspect.&lt;/p&gt;
&lt;h2 id="returns"&gt;Returns&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string|nil parent&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The path relative to &lt;code&gt;game/lua/object_logic&lt;/code&gt;, or &lt;code&gt;nil&lt;/code&gt; when the object has no
Lua parent. The returned path does not include the &lt;code&gt;object_logic/&lt;/code&gt; prefix.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;This reports only the object&amp;rsquo;s direct assignment. Object-logic modules are not
inherited through zones, locations, or other objects.&lt;/p&gt;
&lt;h2 id="errors-and-availability"&gt;Errors and availability&lt;/h2&gt;
&lt;p&gt;Raises &lt;code&gt;mux.object.invalid&lt;/code&gt; for an invalid receiver. This method is
unavailable during &lt;code&gt;@lua/check&lt;/code&gt; and raises &lt;code&gt;mux.unavailable.checking&lt;/code&gt; there.&lt;/p&gt;</description></item><item><title>name</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/name/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/name/</guid><description>&lt;p&gt;Returns this object&amp;rsquo;s current stored name.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;h3 id="synopsis"&gt;Synopsis&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:name( )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments"&gt;Arguments&lt;/h3&gt;
&lt;p&gt;None.&lt;/p&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The object&amp;rsquo;s current name, including any stored styled-text markup.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; object &lt;span style="color:#f92672"&gt;=&lt;/span&gt; mux.world.object(ctx.object)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mux.world.pemit(ctx.enactor, object:name())
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../set-name/"&gt;&lt;code&gt;Object:set_name&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>powers</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/powers/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/powers/</guid><description>&lt;p&gt;Creates a typed power collection for this object.&lt;/p&gt;
&lt;h2 id="synopsis"&gt;Synopsis&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; powers &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:powers()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Returns a &lt;a href="../../type-powers/"&gt;&lt;code&gt;Powers&lt;/code&gt;&lt;/a&gt; handle. The object must be live, and
the method is unavailable during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../powers/"&gt;&lt;code&gt;mux.world.powers&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../flags/"&gt;&lt;code&gt;Object:flags&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>set_affiliation</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-affiliation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-affiliation/</guid><description>&lt;p&gt;Assigns an object&amp;rsquo;s affiliation or clears its affiliation assignment.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_affiliation(affiliation)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_affiliation(&lt;span style="color:#66d9ef"&gt;nil&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="parameters"&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number|Object|nil affiliation&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Any live room, thing, exit, or player to assign. Pass &lt;code&gt;nil&lt;/code&gt; to clear the
current assignment. An object may be affiliated with itself.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;The receiver is the live database object to update. The affiliation argument
is required even when clearing an assignment. These are trusted world
mutations: the method does not perform player-control checks. Affiliations are
persistent object references only and do not affect command matching, events,
permissions, or other server behavior.&lt;/p&gt;</description></item><item><title>set_description</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-description/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-description/</guid><description>&lt;p&gt;Sets or clears this object&amp;rsquo;s styled description.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_description(description)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_description(&lt;span style="color:#66d9ef"&gt;nil&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="arguments"&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string or nil description&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Valid styled-text markup. &lt;code&gt;nil&lt;/code&gt; or an empty string clears the description.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="errors"&gt;Errors&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;mux.unavailable.checking&lt;/code&gt; during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.arg.invalid&lt;/code&gt; for invalid text or markup.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.object.invalid&lt;/code&gt; if the handle is stale.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.object.unavailable&lt;/code&gt; if the object is being destroyed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../description/"&gt;&lt;code&gt;Object:description&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>set_destination</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-destination/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-destination/</guid><description>&lt;p&gt;Sets an attached exit&amp;rsquo;s destination or clears its destination without changing
the exit&amp;rsquo;s source.&lt;/p&gt;
&lt;h2 id="method"&gt;Method&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;exit:set_destination(destination)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;exit:set_destination(&lt;span style="color:#66d9ef"&gt;nil&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver must be a live exit. Calling this method on any other object type
raises &lt;code&gt;mux.object.invalid&lt;/code&gt;. A non-&lt;code&gt;nil&lt;/code&gt; destination may be a dbref or
&lt;a href="../"&gt;Object&lt;/a&gt; handle for a live object capable of containing objects. Pass
&lt;code&gt;nil&lt;/code&gt; explicitly to clear the destination; an omitted destination is rejected.&lt;/p&gt;
&lt;p&gt;This is a trusted world mutation and does not perform the permission or lock
checks used by &lt;code&gt;@link&lt;/code&gt;. Setting or clearing only changes the exit&amp;rsquo;s destination.
The exit remains attached to its existing source.&lt;/p&gt;</description></item><item><title>set_home</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-home/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-home/</guid><description>&lt;p&gt;Sets a thing or player&amp;rsquo;s home.&lt;/p&gt;
&lt;h2 id="method"&gt;Method&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_home(new_home)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver must be a live thing or player. &lt;code&gt;new_home&lt;/code&gt; is a dbref or
&lt;a href="../"&gt;Object&lt;/a&gt; handle for a live room, thing, or player capable of containing
objects. The receiver cannot be its own home.&lt;/p&gt;
&lt;p&gt;This trusted world mutation validates the same object relationships used when
assigning a home with &lt;code&gt;@link&lt;/code&gt;, but it does not perform ownership or &lt;code&gt;SET_HOME&lt;/code&gt;
lock checks. The method returns no values.&lt;/p&gt;</description></item><item><title>set_internal_description</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-internal-description/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-internal-description/</guid><description>&lt;p&gt;Sets or clears this object&amp;rsquo;s styled internal description.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_internal_description(description)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_internal_description(&lt;span style="color:#66d9ef"&gt;nil&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="arguments"&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string or nil description&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Valid styled-text markup. &lt;code&gt;nil&lt;/code&gt; or an empty string clears the description.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="errors"&gt;Errors&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;mux.unavailable.checking&lt;/code&gt; during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.arg.invalid&lt;/code&gt; for invalid text or markup.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.object.invalid&lt;/code&gt; if the handle is stale.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.object.unavailable&lt;/code&gt; if the object is being destroyed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../internal-description/"&gt;&lt;code&gt;Object:internal_description&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>set_lua_parent</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-lua-parent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-lua-parent/</guid><description>&lt;p&gt;Assigns an object&amp;rsquo;s direct Lua parent or clears the assignment.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_lua_parent(&lt;span style="color:#e6db74"&gt;&amp;#34;events/enter_notice.lua&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_lua_parent(&lt;span style="color:#66d9ef"&gt;nil&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="parameters"&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string|nil parent&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;An existing &lt;code&gt;.lua&lt;/code&gt; file relative to &lt;code&gt;game/lua/object_logic&lt;/code&gt;, or &lt;code&gt;nil&lt;/code&gt; to
clear the current assignment. Do not include an &lt;code&gt;object_logic/&lt;/code&gt;,
&lt;code&gt;global_logic/&lt;/code&gt;, or &lt;code&gt;packages/&lt;/code&gt; prefix.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;The receiver is the live database object to update. The parent argument is
required even when clearing an assignment. The path is resolved with the same
validation as &lt;code&gt;@lua/parent&lt;/code&gt;: it must remain inside the object-logic root and
the file must exist. This trusted world mutation does not perform the command&amp;rsquo;s
player-control checks.&lt;/p&gt;</description></item><item><title>set_name</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-name/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-name/</guid><description>&lt;p&gt;Changes this object&amp;rsquo;s name using the native object-name rules. Player names
must also be available, allowed by the bad-name list, and valid player names.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;h3 id="synopsis"&gt;Synopsis&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_name( name )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The new UTF-8 name. It may contain valid styled-text markup.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;p&gt;No values.&lt;/p&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; object &lt;span style="color:#f92672"&gt;=&lt;/span&gt; mux.world.object(ctx.object)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_name(&lt;span style="color:#e6db74"&gt;&amp;#34;New Name&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="errors"&gt;Errors&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;mux.unavailable.checking&lt;/code&gt; during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.arg.invalid&lt;/code&gt; if the name is missing, malformed, invalid for the object
type, forbidden, or already used by another player.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.object.invalid&lt;/code&gt; if the &lt;code&gt;Object&lt;/code&gt; handle is stale.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;mux.object.unavailable&lt;/code&gt; if the object is being destroyed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../name/"&gt;&lt;code&gt;Object:name&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>set_zone</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-zone/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/set-zone/</guid><description>&lt;p&gt;Assigns an object&amp;rsquo;s zone or clears its zone assignment.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_zone(zone)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:set_zone(&lt;span style="color:#66d9ef"&gt;nil&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="parameters"&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number|Object|nil zone&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A live thing or room to assign as the zone. Pass &lt;code&gt;nil&lt;/code&gt; to clear the current
assignment. When the zone is a room, the object being updated must also be a
room.&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;The receiver is the live database object to update. The zone argument is
required even when clearing an assignment. These are trusted world mutations:
unlike &lt;code&gt;@chzone&lt;/code&gt;, the method does not perform player-control checks.&lt;/p&gt;</description></item><item><title>state</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/state/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/state/</guid><description>&lt;p&gt;Creates a persistent-state handle for one namespace on this object.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;h3 id="synopsis"&gt;Synopsis&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:state( namespace )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string namespace&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A valid, exact, case-sensitive state namespace.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;State state&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A handle for the namespace.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; state &lt;span style="color:#f92672"&gt;=&lt;/span&gt; mux.world.object(ctx.object):state(&lt;span style="color:#e6db74"&gt;&amp;#34;counter&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; count &lt;span style="color:#f92672"&gt;=&lt;/span&gt; state:get(&lt;span style="color:#e6db74"&gt;&amp;#34;count&amp;#34;&lt;/span&gt;, &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt;) &lt;span style="color:#f92672"&gt;+&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;state:set(&lt;span style="color:#e6db74"&gt;&amp;#34;count&amp;#34;&lt;/span&gt;, count)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;The namespace must begin with an ASCII letter and may contain letters, digits, &lt;code&gt;_&lt;/code&gt;, &lt;code&gt;-&lt;/code&gt;, &lt;code&gt;.&lt;/code&gt;, and &lt;code&gt;/&lt;/code&gt;. This method is unavailable during &lt;code&gt;@lua/check&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../../"&gt;&lt;code&gt;mux&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../../type-state/"&gt;&lt;code&gt;State&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>type</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/type/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/type/</guid><description>&lt;p&gt;Returns this object&amp;rsquo;s native object type.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;h3 id="synopsis"&gt;Synopsis&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;object:type( )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments"&gt;Arguments&lt;/h3&gt;
&lt;p&gt;None.&lt;/p&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;ObjectType or nil type&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The corresponding typed constant from &lt;a href="../../types/"&gt;&lt;code&gt;mux.world.types&lt;/code&gt;&lt;/a&gt;, or
&lt;code&gt;nil&lt;/code&gt; for an unrecognized native type.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;if&lt;/span&gt; object:type() &lt;span style="color:#f92672"&gt;==&lt;/span&gt; mux.world.types.PLAYER &lt;span style="color:#66d9ef"&gt;then&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; mux.world.pemit(object, &lt;span style="color:#e6db74"&gt;&amp;#34;You are a player.&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;end&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;The returned value cannot be used to change the object&amp;rsquo;s type. A stale Object
raises &lt;code&gt;mux.object.invalid&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../../"&gt;&lt;code&gt;mux&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;Object&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../../types/"&gt;&lt;code&gt;mux.world.types&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>zone</title><link>https://stompymux.com/docs/scripting/packages/mux/world/type-object/zone/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/mux/world/type-object/zone/</guid><description>&lt;p&gt;Returns an object&amp;rsquo;s assigned zone.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-lua" data-lang="lua"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;local&lt;/span&gt; zone &lt;span style="color:#f92672"&gt;=&lt;/span&gt; object:zone()
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The receiver is the live database object to inspect.&lt;/p&gt;
&lt;h2 id="returns"&gt;Returns&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;Object|nil zone&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A handle for the assigned zone, or &lt;code&gt;nil&lt;/code&gt; when the object has no zone or its
zone is being destroyed.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="errors-and-availability"&gt;Errors and availability&lt;/h2&gt;
&lt;p&gt;Raises &lt;code&gt;mux.object.invalid&lt;/code&gt; for an invalid receiver or an invalid zone stored
on the object. This method is unavailable during &lt;code&gt;@lua/check&lt;/code&gt; and
raises &lt;code&gt;mux.unavailable.checking&lt;/code&gt; there.&lt;/p&gt;</description></item></channel></rss>