<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=Manual%3ALua_Functions%2Fit</id>
	<title>Manual:Lua Functions/it - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mudlet.org/index.php?action=history&amp;feed=atom&amp;title=Manual%3ALua_Functions%2Fit"/>
	<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Manual:Lua_Functions/it&amp;action=history"/>
	<updated>2026-06-04T16:39:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.mudlet.org/index.php?title=Manual:Lua_Functions/it&amp;diff=14051&amp;oldid=prev</id>
		<title>WikiSysop: Updating translation from gettext import</title>
		<link rel="alternate" type="text/html" href="https://wiki.mudlet.org/index.php?title=Manual:Lua_Functions/it&amp;diff=14051&amp;oldid=prev"/>
		<updated>2020-07-03T06:28:24Z</updated>

		<summary type="html">&lt;p&gt;Updating translation from gettext import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
{{TOC right}}&lt;br /&gt;
Here you can find a long list of all possible Lua functions and programming interfaces (API) that Mudlet offers. Due to the integrated Lua, you can also use all regular Lua functions. In the following page, we will explain the usage, expected behaviour and examples for the functions added in Mudlet.&lt;br /&gt;
&lt;br /&gt;
= Global variables =&lt;br /&gt;
Mudlet defines several global Lua variables that are accessible from anywhere.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;2&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot; | Built-in Lua Variables&lt;br /&gt;
|-&lt;br /&gt;
!colspan=&amp;quot;2&amp;quot; | Variable Name 	&lt;br /&gt;
!colspan=&amp;quot;4&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;command&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | This variable holds the current user command, i.e. unchanged by any aliases or triggers. This is typically used in alias scripts.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;line&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | This variable holds the content of the current line as being processed by the trigger engine. The engine runs all triggers on each line as it arrives from the MUD.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;matches[n]&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | This Lua table is being used by Mudlet in the context of triggers that use Perl regular expressions. &lt;br /&gt;
matches[1] holds the entire match, matches[2] holds the first capture group, matches[n] holds the nth-1 capture group.&lt;br /&gt;
If the Perl trigger indicated &amp;#039;match all&amp;#039; (same effect as the Perl /g switch) to evaluate all possible matches of the given regex within the current line, matches[n+1] will hold the second entire match, matches[n+2] the first capture group of the second match and matches[n+m] &lt;br /&gt;
the m-th capture group of the second match.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;multimatches[n][m]&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | This table is being used by Mudlet in the context of multiline triggers that use Perl regular expression. It holds the table matches[n] as described above for each Perl regular expression based condition of the multiline trigger. multimatches[5][4] may hold the 3rd capture group of the 5th regex in the multiline trigger. This way you can examine and process all relevant data within a single script.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;mudlet.translations&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | Contains translations of some common texts (right now, exit directions only) that are helpful to you in Lua scripting, as well as the current language selected for the user interface.  - See [[Special:MyLanguage/Manual:Miscellaneous_Functions#translateTable|translateTable()]]&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;mudlet.key&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | Makes your life easier when creating new keybindings via Lua by translating the key name into the number needed - see [[Special:MyLanguage/Manual:Mudlet_Object_Functions#tempKey|tempKey()]].&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;mudlet.keymodifier&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | Same as &amp;lt;code&amp;gt;mudlet.key&amp;lt;/code&amp;gt;, but for keyboard modifiers - Ctrl, Alt, etc.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;mudlet.supports&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | Lists special functionality that the users Mudlet supports - right now, just &amp;lt;code&amp;gt;mudlet.supports.coroutines&amp;lt;/code&amp;gt; is listed. Use &amp;lt;code&amp;gt;mudlet.supports&amp;lt;/code&amp;gt; to conditionally enable functionality as it&amp;#039;s available on the users Mudlet.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=&amp;quot;2&amp;quot; | &amp;lt;code&amp;gt;color_table&amp;lt;/code&amp;gt;&lt;br /&gt;
|colspan=&amp;quot;4&amp;quot; | Color definitions used by Geyser, cecho, and many other functions - see [[Special:MyLanguage/Manual:UI_Functions#showColors|showColors()]]. The profile&amp;#039;s color preferences are also accessible under the &amp;lt;code&amp;gt;ansi_&amp;lt;/code&amp;gt; keys.&lt;br /&gt;
|}&lt;br /&gt;
 &lt;br /&gt;
There are other variables that hold MUD-protocol data that are global as well - see [[Special:MyLanguage/Manual:Technical_Manual#Supported_Protocols|Supported Protocols]].&lt;br /&gt;
&lt;br /&gt;
= Function Categories =&lt;br /&gt;
[[Special:MyLanguage/#basic-essentials | Basic Essential Functions]]: These functions are generic functions used in normal scripting. These deal with mainly everyday things, like sending stuff and echoing to the screen.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#database-functions | Database Functions]]: A collection of functions for helping deal with the database.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#date/time-functions | Date/Time Functions]]: A collection of functions for handling Date &amp;amp; Time.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#file-system functions | File System Functions]]: A collection of functions for interacting with the file system.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#mapper-functions | Mapper Functions]]: A collection of functions that manipulate the mapper and its related features.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#miscellaneous-functions | Miscellaneous Functions]]: Miscellaneous functions.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#mudlet-object functions | Scripting Object Functions]]: A collection of arrows that manipulate Mudlets scripting objects - triggers, aliases, and so forth.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#networking-functions | Networking Functions]]: A collection of functions for managing networking.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#string-functions | String Functions]]: These functions are used to manipulate strings.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#text-functions| Text Functions]]: These functions are used to access a selected Mudlet/System provided dictionary and a user dictionary that can be specific to a profile or shared between those that chose the shared option.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#table-functions | Table Functions]]: These functions are used to manipulate tables. Through them you can add to tables, remove values, check if a value is present in the table, check the size of a table, and more.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#text-to speech functions | Text to Speech Functions]]: These functions are used to create sound from written words. Check out our [[Special:MyLanguage/Manual:Text-to-Speech|Text-To-Speech Manual]] for more detail on how this all works together.&lt;br /&gt;
&lt;br /&gt;
[[Special:MyLanguage/#ui-functions | UI Functions]]: These functions are used to construct custom user GUIs. They deal mainly with miniconsole/label/gauge creation and manipulation as well as displaying or formatting information on the screen.&lt;br /&gt;
&lt;br /&gt;
{{Manual:Basic Essentials}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Database Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Date/Time Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:File System Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Mapper Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Miscellaneous Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Mudlet Object Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Networking Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:String Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Text Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Table Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Text to Speech Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:UI Functions}}&lt;br /&gt;
&lt;br /&gt;
{{Manual:Discord Functions}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Mudlet Manual]]&lt;br /&gt;
[[Category: Mudlet API]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>