<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Package Reference on StompyMUX Documentation</title><link>https://gtaylor.github.io/stompymux/docs/scripting/packages/</link><description>Recent content in Package Reference on StompyMUX Documentation</description><generator>Hugo</generator><language>en</language><atom:link href="https://gtaylor.github.io/stompymux/docs/scripting/packages/index.xml" rel="self" type="application/rss+xml"/><item><title>mux package</title><link>https://gtaylor.github.io/stompymux/docs/scripting/packages/mux/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://gtaylor.github.io/stompymux/docs/scripting/packages/mux/</guid><description>&lt;h1 id="mux"&gt;&lt;code&gt;mux&lt;/code&gt;&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;mux&lt;/code&gt; is the built-in table available to every Lua module. It is supplied by
the game server rather than loaded with &lt;code&gt;require&lt;/code&gt;. Lua callbacks and commands
run with the server&amp;rsquo;s &lt;code&gt;#1&lt;/code&gt; authority model; scripts should still use the
callback context to identify the object and enactor that triggered them.&lt;/p&gt;
&lt;h2 id="muxobjectdbref"&gt;&lt;code&gt;mux.object(dbref)&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;Returns an object handle. Handles validate the referenced dbref whenever they
are used. Two handles for the same object compare equal; use the &lt;code&gt;dbref&lt;/code&gt;
property when passing an object to an API outside &lt;code&gt;mux&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>btech package</title><link>https://gtaylor.github.io/stompymux/docs/scripting/packages/btech/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://gtaylor.github.io/stompymux/docs/scripting/packages/btech/</guid><description>&lt;h1 id="btech"&gt;&lt;code&gt;btech&lt;/code&gt;&lt;/h1&gt;
&lt;p&gt;&lt;code&gt;require(&amp;quot;btech&amp;quot;)&lt;/code&gt; returns the built-in BattleTech API. It is available to
running Lua callbacks (not &lt;code&gt;@lua/check&lt;/code&gt;) and replaces the former MUX expression
functions. Arguments use Lua strings, numbers, booleans, and dbrefs; results
are returned as Lua numbers, booleans, strings, or arrays. Mutation-only
operations return &lt;code&gt;true&lt;/code&gt;. Invalid objects and arguments raise Lua errors.&lt;/p&gt;
&lt;p&gt;The package exports these operations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Unit data: &lt;code&gt;armor_status&lt;/code&gt;, &lt;code&gt;armor_status_ref&lt;/code&gt;, &lt;code&gt;crit_slot&lt;/code&gt;,
&lt;code&gt;crit_slot_ref&lt;/code&gt;, &lt;code&gt;section_status&lt;/code&gt;, &lt;code&gt;crit_status&lt;/code&gt;, &lt;code&gt;crit_status_ref&lt;/code&gt;,
&lt;code&gt;damage_mech&lt;/code&gt;, &lt;code&gt;damages&lt;/code&gt;, &lt;code&gt;engine_rating&lt;/code&gt;, &lt;code&gt;engine_rating_ref&lt;/code&gt;,
&lt;code&gt;real_max_speed&lt;/code&gt;, &lt;code&gt;get_weight&lt;/code&gt;, &lt;code&gt;threshold&lt;/code&gt;, &lt;code&gt;weapon_status&lt;/code&gt;,
&lt;code&gt;weapon_status_ref&lt;/code&gt;, &lt;code&gt;weapon_stat&lt;/code&gt;, &lt;code&gt;tic_weapons&lt;/code&gt;, &lt;code&gt;payload_ref&lt;/code&gt;,
&lt;code&gt;show_crit_status_ref&lt;/code&gt;, &lt;code&gt;show_status_ref&lt;/code&gt;, and &lt;code&gt;show_weapon_specs_ref&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Unit mutation and loading: &lt;code&gt;load_mech&lt;/code&gt;, &lt;code&gt;set_armor_status&lt;/code&gt;, &lt;code&gt;set_max_speed&lt;/code&gt;,
&lt;code&gt;set_tons&lt;/code&gt;, &lt;code&gt;set_xy&lt;/code&gt;, &lt;code&gt;update_links&lt;/code&gt;, &lt;code&gt;xcode_value&lt;/code&gt;, &lt;code&gt;xcode_value_ref&lt;/code&gt;, and
&lt;code&gt;set_xcode_value&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Maps and geometry: &lt;code&gt;range&lt;/code&gt;, &lt;code&gt;hex_emit&lt;/code&gt;, &lt;code&gt;hex_in_blast_zone&lt;/code&gt;,
&lt;code&gt;hex_line_of_sight&lt;/code&gt;, &lt;code&gt;mech_line_of_sight&lt;/code&gt;, &lt;code&gt;map_elevation&lt;/code&gt;, &lt;code&gt;map_emit&lt;/code&gt;,
&lt;code&gt;map_terrain&lt;/code&gt;, &lt;code&gt;map_units&lt;/code&gt;, &lt;code&gt;load_map&lt;/code&gt;, &lt;code&gt;blast_zones&lt;/code&gt;, and &lt;code&gt;zone_mechs&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Parts, stores, and economy: &lt;code&gt;add_stores&lt;/code&gt;, &lt;code&gt;remove_stores&lt;/code&gt;, &lt;code&gt;stores&lt;/code&gt;,
&lt;code&gt;stores_short&lt;/code&gt;, &lt;code&gt;part_type&lt;/code&gt;, &lt;code&gt;part_match&lt;/code&gt;, &lt;code&gt;part_name&lt;/code&gt;, &lt;code&gt;part_categories&lt;/code&gt;,
&lt;code&gt;parts&lt;/code&gt;, &lt;code&gt;part_weight&lt;/code&gt;, &lt;code&gt;part_cost&lt;/code&gt;, &lt;code&gt;set_part_cost&lt;/code&gt;, &lt;code&gt;unit_parts&lt;/code&gt;,
&lt;code&gt;unit_parts_ref&lt;/code&gt;, &lt;code&gt;unit_fixable&lt;/code&gt;, &lt;code&gt;fasa_base_cost_ref&lt;/code&gt;, &lt;code&gt;battle_value&lt;/code&gt;,
&lt;code&gt;battle_value_ref&lt;/code&gt;, &lt;code&gt;battle_value2_ref&lt;/code&gt;, &lt;code&gt;defensive_battle_value_ref&lt;/code&gt;, and
&lt;code&gt;offensive_battle_value_ref&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Characters and repair: &lt;code&gt;char_list&lt;/code&gt;, &lt;code&gt;char_value&lt;/code&gt;, &lt;code&gt;set_char_value&lt;/code&gt;,
&lt;code&gt;make_pilot_roll&lt;/code&gt;, &lt;code&gt;repair_job_count&lt;/code&gt;, &lt;code&gt;tech_list&lt;/code&gt;, &lt;code&gt;tech_list_ref&lt;/code&gt;,
&lt;code&gt;tech_status&lt;/code&gt;, &lt;code&gt;tech_time&lt;/code&gt;, and &lt;code&gt;under_repair&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Utilities: &lt;code&gt;design_exists&lt;/code&gt;, &lt;code&gt;id_to_dbref&lt;/code&gt;, &lt;code&gt;lag&lt;/code&gt;, and &lt;code&gt;mech_frequencies&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>