<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Mes</title><link>https://sourceforge.net/p/hercules/wiki/Mes/</link><description>Recent changes to Mes</description><atom:link href="https://sourceforge.net/p/hercules/wiki/Mes/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 20 Feb 2023 05:02:08 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hercules/wiki/Mes/feed" rel="self" type="application/rss+xml"/><item><title>Mes modified by Brynner</title><link>https://sourceforge.net/p/hercules/wiki/Mes/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;{{outdated}}&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[Category:Script_Command]&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="syntax"&gt;Syntax&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="alink" href="/p/hercules/wiki/Mes/"&gt;[Mes]&lt;/a&gt; "&amp;lt;message&amp;gt;"; &lt;/li&gt;
&lt;li&gt;&lt;a class="alink" href="/p/hercules/wiki/Mes/"&gt;[Mes]&lt;/a&gt; "&amp;lt;Line 1&amp;gt;","&amp;lt;Line 2&amp;gt;","&amp;lt;Line 3&amp;gt;"; &lt;/li&gt;
&lt;li&gt;&lt;a class="alink" href="/p/hercules/wiki/Mes/"&gt;[Mes]&lt;/a&gt; "&amp;lt;message&amp;gt;"+&amp;lt;variable&amp;gt; or command +"&amp;lt;message&amp;gt;"; &lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;The most basic scripting command.&lt;br/&gt;
Displays a window with &lt;strong&gt;&amp;lt; message&amp;gt;&lt;/strong&gt; in it to the invoking character, if the&lt;br/&gt;
window already exists, it will just display the given message.&lt;br/&gt;
Notice that mes does not create a &lt;em&gt;next&lt;/em&gt; or &lt;em&gt;close&lt;/em&gt; button, so you have to&lt;br/&gt;
create one using the &lt;span&gt;[Next]&lt;/span&gt; or &lt;a class="alink" href="/p/hercules/wiki/Close/"&gt;[Close]&lt;/a&gt; command, otherwise the player will&lt;br/&gt;
be stuck in your script.  &lt;/p&gt;
&lt;p&gt;Use the + operator to give out multiple messages combined with variables or&lt;br/&gt;
some commands(for example &lt;a class="alink" href="/p/hercules/wiki/Countitem/"&gt;[Countitem]&lt;/a&gt;, &lt;a class="alink" href="/p/hercules/wiki/Getitemname/"&gt;[Getitemname]&lt;/a&gt; or &lt;span&gt;[Strcharinfo]&lt;/span&gt;)in&lt;br/&gt;
one mes.  &lt;/p&gt;
&lt;p&gt;Use "^&amp;lt;Red&amp;gt;&amp;lt;Green&amp;gt;&amp;lt;Blue&amp;gt; " in front of the message to give &lt;strong&gt;&amp;lt; message&amp;gt;&lt;/strong&gt; a&lt;br/&gt;
color.&lt;br/&gt;
&amp;lt;Red&amp;gt;&amp;lt;Green&amp;gt;&amp;lt;Blue&amp;gt; stand for three hexadecimal numbers, representing the color&lt;br/&gt;
components of Red Green and Blue in the wanted colour, like a html-code(see&lt;br/&gt;
examples).&lt;br/&gt;
Do not forget to set the color to black again, by putting "^000000" after your&lt;br/&gt;
message, exept you want to color your whole text...  &lt;/p&gt;
&lt;p&gt;Be careful: Magenta (ff00ff) is considered as transparent in the client, using&lt;br/&gt;
it in a Dialogue will result in a weird (or funny) effect.&lt;/p&gt;
&lt;h2 id="examples"&gt;Examples&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;mes "Hello World";
//Will open up a text box with:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Hello World&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;mes "Hello 1","Hello 2","Hello 3";
// This will Generate 3 lines
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Hello 1&lt;br/&gt;
Hello 2&lt;br/&gt;
Hello 3&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;mes "Hello"+strcharinfo(0)+", how are you?";
// Will upon up a textbox printing:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Hello Charname, how are you?&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;mes "^FF0000 Hello World^000000";
//Will open up a text box with
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Hello World&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;mes&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"\'Hello!\'"&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;use&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;\&lt;span class="nv"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;prefix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;to&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;include&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Symbols&lt;/span&gt;:
&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;will&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;print&lt;/span&gt;:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;'Hello!'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brynner</dc:creator><pubDate>Mon, 20 Feb 2023 05:02:08 -0000</pubDate><guid>https://sourceforge.net9f17e1188eb69184dd2ffa587666b39a76dd12cb</guid></item></channel></rss>