<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>btech package on StompyMUX Documentation</title><link>http://stompymux.com/docs/scripting/packages/btech/</link><description>Recent content in btech package on StompyMUX Documentation</description><generator>Hugo</generator><language>en</language><atom:link href="http://stompymux.com/docs/scripting/packages/btech/index.xml" rel="self" type="application/rss+xml"/><item><title>btech.add_stores</title><link>http://stompymux.com/docs/scripting/packages/btech/add-stores/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/add-stores/</guid><description>&lt;p&gt;Adds a quantity of a part to an object&amp;rsquo;s stores.&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;btech.add_stores( target, part_name, quantity )
&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;number target&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The dbref of the stores-bearing object.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized part name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number quantity&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The quantity to add, capped by the server limit.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets,
invalid arguments, and legacy error results raise a Lua error. The underlying
quantity is capped at the server&amp;rsquo;s per-call maximum. A part name that does not
match returns the legacy false result, but mutation-result normalization still
returns &lt;code&gt;true&lt;/code&gt;; callers should resolve user input with &lt;a href="../part-match/"&gt;&lt;code&gt;btech.part_match&lt;/code&gt;&lt;/a&gt;
before mutating stores.&lt;/p&gt;</description></item><item><title>btech.armor_status</title><link>http://stompymux.com/docs/scripting/packages/btech/armor-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/armor-status/</guid><description>&lt;p&gt;Returns serialized armor values for one section of a live unit.&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;btech.armor_status( unit, section )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../armor-status-ref/"&gt;&lt;code&gt;btech.armor_status_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.armor_status_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/armor-status-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/armor-status-ref/</guid><description>&lt;p&gt;Returns serialized armor values for one section of a unit template.&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;btech.armor_status_ref( reference, section )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../armor-status/"&gt;&lt;code&gt;btech.armor_status&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.battle_value</title><link>http://stompymux.com/docs/scripting/packages/btech/battle-value/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/battle-value/</guid><description>&lt;p&gt;Calculates the battle value of a live unit.&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;btech.battle_value( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../battle-value-ref/"&gt;&lt;code&gt;btech.battle_value_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.battle_value_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/battle-value-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/battle-value-ref/</guid><description>&lt;p&gt;Calculates the battle value of a unit template.&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;btech.battle_value_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../battle-value/"&gt;&lt;code&gt;btech.battle_value&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.battle_value2_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/battle-value2-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/battle-value2-ref/</guid><description>&lt;p&gt;Calculates the second-generation battle value of a unit template.&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;btech.battle_value2_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.blast_zones</title><link>http://stompymux.com/docs/scripting/packages/btech/blast-zones/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/blast-zones/</guid><description>&lt;p&gt;Lists blast-zone coordinates and radii on a map.&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;btech.blast_zones( map )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of repeating &lt;code&gt;x&lt;/code&gt;, &lt;code&gt;y&lt;/code&gt;, and radius numbers.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.char_list</title><link>http://stompymux.com/docs/scripting/packages/btech/char-list/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/char-list/</guid><description>&lt;p&gt;Lists character value names in a requested category.&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;btech.char_list( kind, [character] )
&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 kind&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;&amp;quot;skills&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;advantages&amp;quot;&lt;/code&gt;, or &lt;code&gt;&amp;quot;attributes&amp;quot;&lt;/code&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number or string character&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional character dbref or player name used to filter learned values.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.char_value</title><link>http://stompymux.com/docs/scripting/packages/btech/char-value/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/char-value/</guid><description>&lt;p&gt;Gets a character attribute, skill level, target, experience, or experience threshold.&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;btech.char_value( character, value, mode )
&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;number or string character&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The character dbref or player name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number or string value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The character-value code or name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number mode&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;0&lt;/code&gt; for value, &lt;code&gt;1&lt;/code&gt; for skill target, &lt;code&gt;2&lt;/code&gt; for XP, &lt;code&gt;3&lt;/code&gt; for raw skill value, or &lt;code&gt;4&lt;/code&gt; for XP to next level.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.crit_slot</title><link>http://stompymux.com/docs/scripting/packages/btech/crit-slot/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/crit-slot/</guid><description>&lt;p&gt;Describes one critical slot on a live unit.&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;btech.crit_slot( unit, section, slot, [name_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;dl&gt;
&lt;dt&gt;&lt;code&gt;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number slot&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The critical-slot number.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number name_type&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional naming mode: &lt;code&gt;0&lt;/code&gt; for template names or &lt;code&gt;1&lt;/code&gt; for repair-part names.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.crit_slot_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/crit-slot-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/crit-slot-ref/</guid><description>&lt;p&gt;Describes one critical slot in a unit template.&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;btech.crit_slot_ref( reference, section, slot, [name_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;dl&gt;
&lt;dt&gt;&lt;code&gt;string reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number slot&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The critical-slot number.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number name_type&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional naming mode: &lt;code&gt;0&lt;/code&gt; for template names or &lt;code&gt;1&lt;/code&gt; for repair-part names.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;</description></item><item><title>btech.crit_status</title><link>http://stompymux.com/docs/scripting/packages/btech/crit-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/crit-status/</guid><description>&lt;p&gt;Returns serialized critical-slot status for one section of a live unit.&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;btech.crit_status( unit, section )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../crit-status-ref/"&gt;&lt;code&gt;btech.crit_status_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.crit_status_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/crit-status-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/crit-status-ref/</guid><description>&lt;p&gt;Returns serialized critical-slot status for one section of a unit template.&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;btech.crit_status_ref( reference, section )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../crit-status/"&gt;&lt;code&gt;btech.crit_status&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.damage_mech</title><link>http://stompymux.com/docs/scripting/packages/btech/damage-mech/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/damage-mech/</guid><description>&lt;p&gt;Applies clustered damage to a live unit.&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;btech.damage_mech( unit, damage, cluster_size, direction, force_critical, unit_message, los_message )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number damage&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Total damage, from 1 through 1000.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number cluster_size&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Damage applied per cluster; at least 1.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number direction&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The attack direction code.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;boolean or number force_critical&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether to try to force a critical hit.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string unit_message&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Message sent to the damaged unit.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string los_message&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Message broadcast to units with line of sight.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.damages</title><link>http://stompymux.com/docs/scripting/packages/btech/damages/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/damages/</guid><description>&lt;p&gt;Returns the formatted repair-job description for a live unit.&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;btech.damages( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.defensive_battle_value_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/defensive-battle-value-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/defensive-battle-value-ref/</guid><description>&lt;p&gt;Calculates the defensive battle-value component of a unit template.&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;btech.defensive_battle_value_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.design_exists</title><link>http://stompymux.com/docs/scripting/packages/btech/design-exists/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/design-exists/</guid><description>&lt;p&gt;Tests whether a unit template exists.&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;btech.design_exists( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether the condition is true.&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; btech &lt;span style="color:#f92672"&gt;=&lt;/span&gt; require(&lt;span style="color:#e6db74"&gt;&amp;#34;btech&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&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; btech.design_exists(&lt;span style="color:#e6db74"&gt;&amp;#34;AS7-D&amp;#34;&lt;/span&gt;) &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.notify(ctx.enactor, &lt;span style="color:#e6db74"&gt;&amp;#34;The design is available.&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;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.engine_rating</title><link>http://stompymux.com/docs/scripting/packages/btech/engine-rating/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/engine-rating/</guid><description>&lt;p&gt;Returns the engine rating of a live unit.&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;btech.engine_rating( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The legacy handler also emits a suspension factor after the rating; numeric conversion returns only the leading engine rating.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../engine-rating-ref/"&gt;&lt;code&gt;btech.engine_rating_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.engine_rating_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/engine-rating-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/engine-rating-ref/</guid><description>&lt;p&gt;Returns the engine rating of a unit template.&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;btech.engine_rating_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database. The legacy handler also emits a suspension factor after the rating; numeric conversion returns only the leading engine rating.&lt;/p&gt;</description></item><item><title>btech.fasa_base_cost_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/fasa-base-cost-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/fasa-base-cost-ref/</guid><description>&lt;p&gt;Calculates the FASA base cost of a unit template.&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;btech.fasa_base_cost_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database. This operation requires a build with advanced economy support.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.get_weight</title><link>http://stompymux.com/docs/scripting/packages/btech/get-weight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/get-weight/</guid><description>&lt;p&gt;Returns a part&amp;rsquo;s weight in tons.&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;btech.get_weight( part_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 part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized long or very-long part name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.hex_emit</title><link>http://stompymux.com/docs/scripting/packages/btech/hex-emit/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/hex-emit/</guid><description>&lt;p&gt;Broadcasts a message from one map hex.&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;btech.hex_emit( map, x, y, message )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex X coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex Y coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string message&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A non-empty message.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.hex_in_blast_zone</title><link>http://stompymux.com/docs/scripting/packages/btech/hex-in-blast-zone/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/hex-in-blast-zone/</guid><description>&lt;p&gt;Tests whether a map hex lies in a configured blast zone.&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;btech.hex_in_blast_zone( map, x, y )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex X coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex Y coordinate.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether the condition is true.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.hex_line_of_sight</title><link>http://stompymux.com/docs/scripting/packages/btech/hex-line-of-sight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/hex-line-of-sight/</guid><description>&lt;p&gt;Tests whether a live unit has unobstructed line of sight to a map hex.&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;btech.hex_line_of_sight( unit, x, y )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The observing unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The target hex X coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The target hex Y coordinate.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether the condition is true.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.id_to_dbref</title><link>http://stompymux.com/docs/scripting/packages/btech/id-to-dbref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/id-to-dbref/</guid><description>&lt;p&gt;Resolves a two-character tactical ID on a unit&amp;rsquo;s map.&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;btech.id_to_dbref( unit_or_map, id )
&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;number unit_or_map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The observing unit or map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string id&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The two-character tactical ID.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The legacy handler formats a successful dbref with a leading &lt;code&gt;#&lt;/code&gt;; the numeric Lua adapter currently converts that format to &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>btech.lag</title><link>http://stompymux.com/docs/scripting/packages/btech/lag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/lag/</guid><description>&lt;p&gt;Returns the current BattleTech event lag.&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;btech.lag( )
&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 value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.load_map</title><link>http://stompymux.com/docs/scripting/packages/btech/load-map/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/load-map/</guid><description>&lt;p&gt;Loads a map file into a map object and clears its units and map objects.&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;btech.load_map( map, name, [clear] )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map-object dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map file name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;boolean clear&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional compatibility argument; currently ignored.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The optional &lt;code&gt;clear&lt;/code&gt; argument is retained for compatibility; the current handler always clears units and map objects.&lt;/p&gt;</description></item><item><title>btech.load_mech</title><link>http://stompymux.com/docs/scripting/packages/btech/load-mech/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/load-mech/</guid><description>&lt;p&gt;Loads a unit template into a live unit 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;btech.load_mech( unit, reference )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.make_pilot_roll</title><link>http://stompymux.com/docs/scripting/packages/btech/make-pilot-roll/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/make-pilot-roll/</guid><description>&lt;p&gt;Makes a piloting roll and causes a fall when it fails.&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;btech.make_pilot_roll( unit, roll_modifier, damage_modifier )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number roll_modifier&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Modifier applied to the piloting roll.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number damage_modifier&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Modifier passed to falling damage.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether the condition is true.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.map_elevation</title><link>http://stompymux.com/docs/scripting/packages/btech/map-elevation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/map-elevation/</guid><description>&lt;p&gt;Returns the elevation of a map hex.&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;btech.map_elevation( map, x, y )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex X coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex Y coordinate.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.map_emit</title><link>http://stompymux.com/docs/scripting/packages/btech/map-emit/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/map-emit/</guid><description>&lt;p&gt;Broadcasts a message to all or nearby units on a map.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;p&gt;Broadcasts to every unit on a map.&lt;/p&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;btech.map_emit( map, message )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string message&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A non-empty message.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-1"&gt;Function&lt;/h2&gt;
&lt;p&gt;Broadcasts to units within a two-dimensional range of a map coordinate.&lt;/p&gt;
&lt;h3 id="synopsis-1"&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;btech.map_emit( map, x, y, range, message )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments-1"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x, y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The origin hex coordinates.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number range&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A non-negative range.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string message&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A non-empty message.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns-1"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-2"&gt;Function&lt;/h2&gt;
&lt;p&gt;Broadcasts to units within a three-dimensional range of a map coordinate.&lt;/p&gt;</description></item><item><title>btech.map_terrain</title><link>http://stompymux.com/docs/scripting/packages/btech/map-terrain/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/map-terrain/</guid><description>&lt;p&gt;Returns the terrain code of a map hex.&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;btech.map_terrain( map, x, y )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex X coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex Y coordinate.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.map_units</title><link>http://stompymux.com/docs/scripting/packages/btech/map-units/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/map-units/</guid><description>&lt;p&gt;Lists all units on a map or those within a 2D or 3D range.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;p&gt;Lists every live unit on a map.&lt;/p&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;btech.map_units( map )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&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 units&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;An array of unit dbrefs.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-1"&gt;Function&lt;/h2&gt;
&lt;p&gt;Lists units within a two-dimensional range of a map coordinate.&lt;/p&gt;
&lt;h3 id="synopsis-1"&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;btech.map_units( map, x, y, range )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments-1"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x, y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The origin hex coordinates.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number range&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A non-negative range.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns-1"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;table units&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;An array of unit dbrefs.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-2"&gt;Function&lt;/h2&gt;
&lt;p&gt;Lists units within a three-dimensional range of a map coordinate.&lt;/p&gt;</description></item><item><title>btech.mech_frequencies</title><link>http://stompymux.com/docs/scripting/packages/btech/mech-frequencies/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/mech-frequencies/</guid><description>&lt;p&gt;Lists the configured radio channels of a live unit.&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;btech.mech_frequencies( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The flattened array reflects the legacy channel serialization rather than structured channel records.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.mech_line_of_sight</title><link>http://stompymux.com/docs/scripting/packages/btech/mech-line-of-sight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/mech-line-of-sight/</guid><description>&lt;p&gt;Tests line of sight between two live units.&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;btech.mech_line_of_sight( unit, target )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The observing unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number target&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The target unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean visible&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; when the legacy line-of-sight result is nonzero.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets,
invalid arguments, and legacy error results raise a Lua error. The underlying
handler distinguishes clear line of sight (&lt;code&gt;1&lt;/code&gt;) from blocked line of sight
(&lt;code&gt;2&lt;/code&gt;), but the boolean Lua conversion maps both nonzero results to &lt;code&gt;true&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>btech.offensive_battle_value_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/offensive-battle-value-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/offensive-battle-value-ref/</guid><description>&lt;p&gt;Calculates the offensive battle-value component of a unit template.&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;btech.offensive_battle_value_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.part_categories</title><link>http://stompymux.com/docs/scripting/packages/btech/part-categories/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/part-categories/</guid><description>&lt;p&gt;Lists the canonical categories accepted by &lt;code&gt;btech.parts&lt;/code&gt;.&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;btech.part_categories( )
&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;table values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../parts/"&gt;&lt;code&gt;btech.parts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.part_cost</title><link>http://stompymux.com/docs/scripting/packages/btech/part-cost/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/part-cost/</guid><description>&lt;p&gt;Returns the configured cost of a part.&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;btech.part_cost( part_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 part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized long or very-long part name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. This operation requires a build with advanced economy support.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../set-part-cost/"&gt;&lt;code&gt;btech.set_part_cost&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.part_match</title><link>http://stompymux.com/docs/scripting/packages/btech/part-match/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/part-match/</guid><description>&lt;p&gt;Finds packed part IDs whose names match a string.&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;btech.part_match( query )
&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 query&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The part-name text to match.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.part_name</title><link>http://stompymux.com/docs/scripting/packages/btech/part-name/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/part-name/</guid><description>&lt;p&gt;Returns a name for a packed part ID.&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;btech.part_name( part, size )
&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;number part&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The packed part ID.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string size&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;&amp;quot;short&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;long&amp;quot;&lt;/code&gt;, or &lt;code&gt;&amp;quot;vlong&amp;quot;&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.part_type</title><link>http://stompymux.com/docs/scripting/packages/btech/part-type/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/part-type/</guid><description>&lt;p&gt;Returns the broad category of a part.&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;btech.part_type( part_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 part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized long or very-long part name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.part_weight</title><link>http://stompymux.com/docs/scripting/packages/btech/part-weight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/part-weight/</guid><description>&lt;p&gt;Returns a part&amp;rsquo;s weight in tons.&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;btech.part_weight( part_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 part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized long or very-long part name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.parts</title><link>http://stompymux.com/docs/scripting/packages/btech/parts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/parts/</guid><description>&lt;p&gt;Lists canonical long part names in one category.&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;btech.parts( category )
&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 category&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;&amp;quot;ammo&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;weapon&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;bomb&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;special&amp;quot;&lt;/code&gt;, or &lt;code&gt;&amp;quot;cargo&amp;quot;&lt;/code&gt;. The aliases
&lt;code&gt;&amp;quot;weapons&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;weap&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;bombs&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;specials&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;part&amp;quot;&lt;/code&gt;, &lt;code&gt;&amp;quot;parts&amp;quot;&lt;/code&gt;, and
&lt;code&gt;&amp;quot;carg&amp;quot;&lt;/code&gt; are also accepted.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&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; btech &lt;span style="color:#f92672"&gt;=&lt;/span&gt; require(&lt;span style="color:#e6db74"&gt;&amp;#34;btech&amp;#34;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; _, name &lt;span style="color:#66d9ef"&gt;in&lt;/span&gt; ipairs(btech.parts(&lt;span style="color:#e6db74"&gt;&amp;#34;weapon&amp;#34;&lt;/span&gt;)) &lt;span style="color:#66d9ef"&gt;do&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; mux.notify(ctx.enactor, name)
&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;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.payload_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/payload-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/payload-ref/</guid><description>&lt;p&gt;Returns the weapon and ammunition payload of a unit template.&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;btech.payload_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.range</title><link>http://stompymux.com/docs/scripting/packages/btech/range/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/range/</guid><description>&lt;p&gt;Calculates distance between units or map coordinates.&lt;/p&gt;
&lt;h2 id="function"&gt;Function&lt;/h2&gt;
&lt;p&gt;Calculates the range between two live units on the map.&lt;/p&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;btech.range( map, unit_a, unit_b )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number unit_a&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The first unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number unit_b&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The second unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number range&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The three-dimensional range between the units.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-1"&gt;Function&lt;/h2&gt;
&lt;p&gt;Calculates the range between a live unit and a map hex, using the hex&amp;rsquo;s
elevation.&lt;/p&gt;
&lt;h3 id="synopsis-1"&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;btech.range( map, unit, x, y )
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;btech.range( map, x, y, unit )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments-1"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A unit dbref on the map.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex X coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The hex Y coordinate.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns-1"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number range&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The three-dimensional range from the unit to the hex.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-2"&gt;Function&lt;/h2&gt;
&lt;p&gt;Calculates the range between a live unit and a coordinate with an explicit
altitude.&lt;/p&gt;</description></item><item><title>btech.real_max_speed</title><link>http://stompymux.com/docs/scripting/packages/btech/real-max-speed/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/real-max-speed/</guid><description>&lt;p&gt;Returns a live unit&amp;rsquo;s effective maximum speed.&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;btech.real_max_speed( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.remove_stores</title><link>http://stompymux.com/docs/scripting/packages/btech/remove-stores/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/remove-stores/</guid><description>&lt;p&gt;Removes a quantity of a part from an object&amp;rsquo;s stores.&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;btech.remove_stores( target, part_name, quantity )
&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;number target&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The stores-bearing object dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized part name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number quantity&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The quantity to remove.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.repair_job_count</title><link>http://stompymux.com/docs/scripting/packages/btech/repair-job-count/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/repair-job-count/</guid><description>&lt;p&gt;Returns the number of pending repair jobs on a live unit.&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;btech.repair_job_count( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.section_status</title><link>http://stompymux.com/docs/scripting/packages/btech/section-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/section-status/</guid><description>&lt;p&gt;Returns serialized status for one section of a live unit.&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;btech.section_status( unit, section )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.set_armor_status</title><link>http://stompymux.com/docs/scripting/packages/btech/set-armor-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/set-armor-status/</guid><description>&lt;p&gt;Sets one armor-status field on a live unit section.&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;btech.set_armor_status( unit, section, field, value )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string field&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The armor field to change.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The new value.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.set_char_value</title><link>http://stompymux.com/docs/scripting/packages/btech/set-char-value/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/set-char-value/</guid><description>&lt;p&gt;Sets a character value or adjusts skill experience.&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;btech.set_char_value( character, value, amount, mode )
&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;number or string character&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The character dbref or player name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number or string value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The character-value code or name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number amount&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The value or experience amount.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number mode&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;0&lt;/code&gt; sets level/value, &lt;code&gt;1&lt;/code&gt; sets skill target, &lt;code&gt;3&lt;/code&gt; sets XP, and other nonzero values add XP.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.set_max_speed</title><link>http://stompymux.com/docs/scripting/packages/btech/set-max-speed/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/set-max-speed/</guid><description>&lt;p&gt;Sets a live unit&amp;rsquo;s maximum speed and corrects its current speed.&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;btech.set_max_speed( unit, speed )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number speed&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The new maximum speed.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.set_part_cost</title><link>http://stompymux.com/docs/scripting/packages/btech/set-part-cost/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/set-part-cost/</guid><description>&lt;p&gt;Sets the configured cost of a part.&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;btech.set_part_cost( part_name, cost )
&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 part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized long or very-long part name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number cost&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The non-negative cost.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. This operation requires a build with advanced economy support.&lt;/p&gt;</description></item><item><title>btech.set_tons</title><link>http://stompymux.com/docs/scripting/packages/btech/set-tons/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/set-tons/</guid><description>&lt;p&gt;Sets a live unit&amp;rsquo;s tonnage and original weight.&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;btech.set_tons( unit, tons )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number tons&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The new tonnage.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.set_xcode_value</title><link>http://stompymux.com/docs/scripting/packages/btech/set-xcode-value/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/set-xcode-value/</guid><description>&lt;p&gt;Writes a script-writable native field on a live special 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;btech.set_xcode_value( object, name, value )
&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;number object&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The special-object dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The writable field name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string or number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The new value, converted according to the field type.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.set_xy</title><link>http://stompymux.com/docs/scripting/packages/btech/set-xy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/set-xy/</guid><description>&lt;p&gt;Places a live unit on a map at specified coordinates.&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;btech.set_xy( unit, map, x, y, [z] )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The destination map dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number x&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The destination X coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number y&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The destination Y coordinate.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number z&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional altitude, defaulting to &lt;code&gt;0&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.show_crit_status_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/show-crit-status-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/show-crit-status-ref/</guid><description>&lt;p&gt;Sends a template&amp;rsquo;s critical-status display to a player.&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;btech.show_crit_status_ref( reference, player, section )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number player&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The recipient player dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The section passed to the critical-status renderer.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;</description></item><item><title>btech.show_status_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/show-status-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/show-status-ref/</guid><description>&lt;p&gt;Sends a unit template&amp;rsquo;s status display to a player.&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;btech.show_status_ref( reference, player )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number player&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The recipient player dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.show_weapon_specs_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/show-weapon-specs-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/show-weapon-specs-ref/</guid><description>&lt;p&gt;Sends a unit template&amp;rsquo;s weapon-specification display to a player.&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;btech.show_weapon_specs_ref( reference, player )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number player&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The recipient player dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.stores</title><link>http://stompymux.com/docs/scripting/packages/btech/stores/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/stores/</guid><description>&lt;p&gt;Returns a part quantity or lists an object&amp;rsquo;s stored parts.&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;btech.stores( target, part_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;number target&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The stores-bearing object dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized part name.&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 result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A one-element array containing the numeric quantity.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-1"&gt;Function&lt;/h2&gt;
&lt;p&gt;Lists every nonempty part stack on the object.&lt;/p&gt;
&lt;h3 id="synopsis-1"&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;btech.stores( target )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments-1"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number target&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The stores-bearing object dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns-1"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;table stores&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of serialized &lt;code&gt;name:quantity&lt;/code&gt; strings.&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; btech &lt;span style="color:#f92672"&gt;=&lt;/span&gt; require(&lt;span style="color:#e6db74"&gt;&amp;#34;btech&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; quantity &lt;span style="color:#f92672"&gt;=&lt;/span&gt; btech.stores(bay_dbref, &lt;span style="color:#e6db74"&gt;&amp;#34;IS.AC/10&amp;#34;&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;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mux.notify(ctx.enactor, &lt;span style="color:#e6db74"&gt;&amp;#34;Available: &amp;#34;&lt;/span&gt; &lt;span style="color:#f92672"&gt;..&lt;/span&gt; quantity)
&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;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.stores_short</title><link>http://stompymux.com/docs/scripting/packages/btech/stores-short/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/stores-short/</guid><description>&lt;p&gt;Returns a part quantity or lists stored parts using short 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;btech.stores_short( target, part_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;number target&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The stores-bearing object dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string part_name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized part name.&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 result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A one-element array containing the numeric quantity.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="function-1"&gt;Function&lt;/h2&gt;
&lt;p&gt;Lists every nonempty part stack using short part names.&lt;/p&gt;
&lt;h3 id="synopsis-1"&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;btech.stores_short( target )
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="arguments-1"&gt;Arguments&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number target&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The stores-bearing object dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns-1"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;table stores&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of serialized &lt;code&gt;name:quantity&lt;/code&gt; strings using short part names.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;</description></item><item><title>btech.tech_list</title><link>http://stompymux.com/docs/scripting/packages/btech/tech-list/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/tech-list/</guid><description>&lt;p&gt;Lists the parts needed to repair a live unit.&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;btech.tech_list( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../tech-list-ref/"&gt;&lt;code&gt;btech.tech_list_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.tech_list_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/tech-list-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/tech-list-ref/</guid><description>&lt;p&gt;Lists the parts needed to repair a unit template.&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;btech.tech_list_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../tech-list/"&gt;&lt;code&gt;btech.tech_list&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.tech_status</title><link>http://stompymux.com/docs/scripting/packages/btech/tech-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/tech-status/</guid><description>&lt;p&gt;Returns formatted repair status for a live unit.&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;btech.tech_status( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.tech_time</title><link>http://stompymux.com/docs/scripting/packages/btech/tech-time/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/tech-time/</guid><description>&lt;p&gt;Runs the legacy technician-time query.&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;btech.tech_time( )
&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 value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The legacy handler sends a formatted time directly to its invocation player and does not write a return value; through the Lua adapter the numeric result is therefore &lt;code&gt;0&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="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.threshold</title><link>http://stompymux.com/docs/scripting/packages/btech/threshold/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/threshold/</guid><description>&lt;p&gt;Returns the configured experience threshold for a skill.&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;btech.threshold( skill )
&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 skill&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The skill name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;number value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The numeric result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.tic_weapons</title><link>http://stompymux.com/docs/scripting/packages/btech/tic-weapons/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/tic-weapons/</guid><description>&lt;p&gt;Lists the weapons assigned to a unit&amp;rsquo;s target-interlock circuit.&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;btech.tic_weapons( unit, tic )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;number tic&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The zero-based TIC number.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.under_repair</title><link>http://stompymux.com/docs/scripting/packages/btech/under-repair/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/under-repair/</guid><description>&lt;p&gt;Tests whether a live unit has an active repair event.&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;btech.under_repair( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether the condition is true.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.unit_fixable</title><link>http://stompymux.com/docs/scripting/packages/btech/unit-fixable/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/unit-fixable/</guid><description>&lt;p&gt;Tests whether a live unit can be repaired.&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;btech.unit_fixable( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether the condition is true.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.unit_parts</title><link>http://stompymux.com/docs/scripting/packages/btech/unit-parts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/unit-parts/</guid><description>&lt;p&gt;Lists the parts installed on a live unit.&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;btech.unit_parts( unit )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../unit-parts-ref/"&gt;&lt;code&gt;btech.unit_parts_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.unit_parts_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/unit-parts-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/unit-parts-ref/</guid><description>&lt;p&gt;Lists the parts installed in a unit template.&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;btech.unit_parts_ref( reference )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../unit-parts/"&gt;&lt;code&gt;btech.unit_parts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.update_links</title><link>http://stompymux.com/docs/scripting/packages/btech/update-links/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/update-links/</guid><description>&lt;p&gt;Recursively updates links associated with a map.&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;btech.update_links( map )
&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;number map&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The map dbref.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;boolean success&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;code&gt;true&lt;/code&gt; after the operation completes without a legacy error.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.weapon_stat</title><link>http://stompymux.com/docs/scripting/packages/btech/weapon-stat/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/weapon-stat/</guid><description>&lt;p&gt;Returns one numeric weapon-catalog statistic as text.&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;btech.weapon_stat( weapon, stat )
&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 weapon&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A recognized weapon part name.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string stat&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;One of &lt;code&gt;VRT&lt;/code&gt;, &lt;code&gt;TYPE&lt;/code&gt;, &lt;code&gt;HEAT&lt;/code&gt;, &lt;code&gt;DAMAGE&lt;/code&gt;, &lt;code&gt;MIN&lt;/code&gt;, &lt;code&gt;SR&lt;/code&gt;, &lt;code&gt;MR&lt;/code&gt;, &lt;code&gt;LR&lt;/code&gt;, &lt;code&gt;CRIT&lt;/code&gt;, &lt;code&gt;AMMO&lt;/code&gt;, &lt;code&gt;WEIGHT&lt;/code&gt;, or &lt;code&gt;BV&lt;/code&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. Although the selected statistic is numeric, this binding is registered as a text result.&lt;/p&gt;</description></item><item><title>btech.weapon_status</title><link>http://stompymux.com/docs/scripting/packages/btech/weapon-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/weapon-status/</guid><description>&lt;p&gt;Returns serialized weapon status for a live unit or one section.&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;btech.weapon_status( unit, [section] )
&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;number unit&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional section name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../weapon-status-ref/"&gt;&lt;code&gt;btech.weapon_status_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.weapon_status_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/weapon-status-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/weapon-status-ref/</guid><description>&lt;p&gt;Returns serialized weapon status for a unit template or one section.&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;btech.weapon_status_ref( reference, [section] )
&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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Optional section name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../weapon-status/"&gt;&lt;code&gt;btech.weapon_status&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.xcode_value</title><link>http://stompymux.com/docs/scripting/packages/btech/xcode-value/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/xcode-value/</guid><description>&lt;p&gt;Reads a script-visible native field from a live special 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;btech.xcode_value( 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;dl&gt;
&lt;dt&gt;&lt;code&gt;number object&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The special-object dbref.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The field name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&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; btech &lt;span style="color:#f92672"&gt;=&lt;/span&gt; require(&lt;span style="color:#e6db74"&gt;&amp;#34;btech&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; unit_id &lt;span style="color:#f92672"&gt;=&lt;/span&gt; btech.xcode_value(unit_dbref, &lt;span style="color:#e6db74"&gt;&amp;#34;id&amp;#34;&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;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../set-xcode-value/"&gt;&lt;code&gt;btech.set_xcode_value&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../xcode-value-ref/"&gt;&lt;code&gt;btech.xcode_value_ref&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.xcode_value_ref</title><link>http://stompymux.com/docs/scripting/packages/btech/xcode-value-ref/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/xcode-value-ref/</guid><description>&lt;p&gt;Reads a script-visible native field from a unit template.&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;btech.xcode_value_ref( reference, 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 reference&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The unit template reference.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;string name&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The field name.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;string result&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The handler&amp;rsquo;s serialized text result.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error. The reference is resolved from the configured unit-template database.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../xcode-value/"&gt;&lt;code&gt;btech.xcode_value&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>btech.zone_mechs</title><link>http://stompymux.com/docs/scripting/packages/btech/zone-mechs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://stompymux.com/docs/scripting/packages/btech/zone-mechs/</guid><description>&lt;p&gt;Lists live unit objects assigned to a zone.&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;btech.zone_mechs( zone )
&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;number zone&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The zone dbref.&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 values&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A flat array of converted legacy result tokens.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;This function is available only in a running Lua callback. Invalid targets, invalid arguments, and legacy error results raise a Lua error.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://stompymux.com/docs/scripting/packages/"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>