<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>btech.template on StompyMUX Documentation</title><link>https://stompymux.com/docs/scripting/packages/btech/template/</link><description>Recent content in btech.template on StompyMUX Documentation</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://stompymux.com/docs/scripting/packages/btech/template/index.xml" rel="self" type="application/rss+xml"/><item><title>armor</title><link>https://stompymux.com/docs/scripting/packages/btech/template/armor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/armor/</guid><description>&lt;p&gt;Returns a template&amp;rsquo;s armor and internal values.&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.template.armor( 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;BtechSection|nil section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;An optional typed constant from &lt;a href="../../unit/sections/"&gt;&lt;code&gt;btech.unit.sections&lt;/code&gt;&lt;/a&gt;
that is valid for the template.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;BtechArmorStatus status&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The requested armor status.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;When &lt;code&gt;section&lt;/code&gt; is omitted, the returned armor, internal-structure, and rear-
armor values are totals across all sections, and the record has no &lt;code&gt;section&lt;/code&gt;
field.
When present, the returned &lt;code&gt;section&lt;/code&gt; is the same typed constant and can be used
with live-unit section functions.&lt;/p&gt;</description></item><item><title>base_cost</title><link>https://stompymux.com/docs/scripting/packages/btech/template/base-cost/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/base-cost/</guid><description>&lt;p&gt;Calculates a template&amp;rsquo;s FASA base cost.&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.template.base_cost( 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;integer cost&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The base cost.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;The result must not exceed Lua&amp;rsquo;s maximum safe integer,
9,007,199,254,740,991 (&lt;code&gt;2^53 - 1&lt;/code&gt;). A larger calculated cost raises
&lt;code&gt;mux.internal&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>battle_value</title><link>https://stompymux.com/docs/scripting/packages/btech/template/battle-value/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/battle-value/</guid><description>&lt;p&gt;Calculates a template&amp;rsquo;s battle value.&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.template.battle_value( 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;BtechBattleValue value&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The total, offensive, and defensive values.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>critical_slots</title><link>https://stompymux.com/docs/scripting/packages/btech/template/critical-slots/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/critical-slots/</guid><description>&lt;p&gt;Lists a template section&amp;rsquo;s critical slots.&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.template.critical_slots( 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;BtechSection section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A typed constant from &lt;a href="../../unit/sections/"&gt;&lt;code&gt;btech.unit.sections&lt;/code&gt;&lt;/a&gt; that is
valid for the template.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;BtechCriticalSlot[] slots&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The critical-slot records. Each record&amp;rsquo;s &lt;code&gt;section&lt;/code&gt;, &lt;code&gt;fire_modes&lt;/code&gt;, and
&lt;code&gt;ammunition_modes&lt;/code&gt; fields contain typed constants from the corresponding
&lt;code&gt;btech.unit&lt;/code&gt; namespaces and can be reused as live-unit inputs.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>engine</title><link>https://stompymux.com/docs/scripting/packages/btech/template/engine/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/engine/</guid><description>&lt;p&gt;Returns a template&amp;rsquo;s engine configuration.&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.template.engine( 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;BtechEngine engine&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The rating and suspension factor.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>exists</title><link>https://stompymux.com/docs/scripting/packages/btech/template/exists/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/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.template.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 exists&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Whether the template exists.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;An empty reference or one containing &lt;code&gt;..&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt;, or &lt;code&gt;\&lt;/code&gt; raises
&lt;code&gt;mux.arg.invalid&lt;/code&gt;. A well-formed missing reference returns &lt;code&gt;false&lt;/code&gt;. When the
referenced file exists but is not a valid template, the function raises
&lt;code&gt;btech.template.invalid&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>installed_parts</title><link>https://stompymux.com/docs/scripting/packages/btech/template/installed-parts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/installed-parts/</guid><description>&lt;p&gt;Lists parts installed in a unit template&amp;rsquo;s non-destroyed critical slots.&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.template.installed_parts( 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;BtechPartStack[] parts&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The installed parts and quantities. Parts represented only by critical slots
marked with the &lt;code&gt;Destroyed&lt;/code&gt; fire mode are omitted.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;Consecutive weapon slots in the same section with the same part and brand are
grouped as one weapon installation. Consequently, separate identical one-slot
weapons installed in adjacent slots are reported with a combined quantity of
one.&lt;/p&gt;</description></item><item><title>payload</title><link>https://stompymux.com/docs/scripting/packages/btech/template/payload/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/payload/</guid><description>&lt;p&gt;Lists a template&amp;rsquo;s weapons and ammunition.&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.template.payload( 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;BtechPartStack[] parts&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The payload parts and quantities. Parts represented only by critical slots
marked with the &lt;code&gt;Destroyed&lt;/code&gt; fire mode are omitted.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;p&gt;Consecutive weapon slots in the same section with the same part and brand are
grouped as one weapon installation. Consequently, separate identical one-slot
weapons installed in adjacent slots are reported with a combined quantity of
one.&lt;/p&gt;</description></item><item><title>show_critical_status</title><link>https://stompymux.com/docs/scripting/packages/btech/template/show-critical-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/show-critical-status/</guid><description>&lt;p&gt;Sends a template&amp;rsquo;s critical-status report 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.template.show_critical_status( 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;DbRef|Object player&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The report recipient.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;BtechSection section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;A typed constant from &lt;a href="../../unit/sections/"&gt;&lt;code&gt;btech.unit.sections&lt;/code&gt;&lt;/a&gt; that is
valid for the template.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;p&gt;None.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>show_status</title><link>https://stompymux.com/docs/scripting/packages/btech/template/show-status/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/show-status/</guid><description>&lt;p&gt;Sends a template&amp;rsquo;s status report 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.template.show_status( 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;DbRef|Object player&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The report recipient.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;p&gt;None.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>show_weapon_specs</title><link>https://stompymux.com/docs/scripting/packages/btech/template/show-weapon-specs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/show-weapon-specs/</guid><description>&lt;p&gt;Sends a template&amp;rsquo;s weapon-specification report 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.template.show_weapon_specs( 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;DbRef|Object player&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The report recipient.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;p&gt;None.&lt;/p&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>technologies</title><link>https://stompymux.com/docs/scripting/packages/btech/template/technologies/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/technologies/</guid><description>&lt;p&gt;Lists a template&amp;rsquo;s configured and inferred technologies.&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.template.technologies( 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;BtechTechnology[] technologies&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The technology records. &lt;code&gt;code&lt;/code&gt; is a typed constant from
&lt;a href="../../unit/technology/"&gt;&lt;code&gt;btech.unit.technology&lt;/code&gt;&lt;/a&gt;, &lt;code&gt;group&lt;/code&gt; is one of the
literal strings &lt;code&gt;primary&lt;/code&gt;, &lt;code&gt;secondary&lt;/code&gt;, or &lt;code&gt;infantry&lt;/code&gt;,
and &lt;code&gt;name&lt;/code&gt; remains a human-readable string. Codes can be supplied directly
to live-unit technology mutators. The descriptive &lt;code&gt;group&lt;/code&gt; is not a
&lt;code&gt;btech.unit.technology_groups&lt;/code&gt; clear-operation constant.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>weapons</title><link>https://stompymux.com/docs/scripting/packages/btech/template/weapons/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://stompymux.com/docs/scripting/packages/btech/template/weapons/</guid><description>&lt;p&gt;Lists the weapons mounted on 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.template.weapons( 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;BtechSection|nil section&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;An optional typed constant from &lt;a href="../../unit/sections/"&gt;&lt;code&gt;btech.unit.sections&lt;/code&gt;&lt;/a&gt;
that is valid for the template.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h3 id="returns"&gt;Returns&lt;/h3&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;BtechMountedWeapon[] weapons&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The mounted weapons. Each &lt;code&gt;section&lt;/code&gt; field is a typed &lt;code&gt;BtechSection&lt;/code&gt; constant
and can be reused with live-unit functions.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id="see-also"&gt;See Also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="../../"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../"&gt;&lt;code&gt;btech.template&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>