<p>Evennia allows for clickable links in text for clients that supports it. This marks certain text so it can be clicked by a mouse and either trigger a given Evennia command, or open a URL in an external web browser. To see clickable links, the player must use the Evennia webclient or a third-party telnet client with <aclass="reference external"href="http://www.zuggsoft.com/zmud/mxp.htm">MXP</a> support (<em>Note: Evennia only supports clickable links, no other MXP features</em>).</p>
<p>Users with clients lacking MXP support will only see the link as normal text.</p>
<divclass="admonition important">
<pclass="admonition-title">Important</p>
<p>By default, clickable links can <em>not</em> be added from in-game. Trying to do so will have the link come back as normal text. This is a security measure. See <aclass="reference internal"href="#settings"><spanclass="std std-doc">Settings</span></a> for more information.</p>
</div>
<sectionid="click-to-run-a-command">
<h2>Click to run a command<aclass="headerlink"href="#click-to-run-a-command"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="s2">"If you go |lcnorth|ltto the north|le you will find a cottage."</span>
<p>This will display as “If you go <strong>to the north</strong> you will find a cottage.” where clicking the link will execute the command <codeclass="docutils literal notranslate"><spanclass="pre">north</span></code>.</p>
<h2>Click to open an url in a web browser<aclass="headerlink"href="#click-to-open-an-url-in-a-web-browser"title="Permalink to this headline">¶</a></h2>
<divclass="highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="s2">"Omnious |luhttps://mycoolsounds.com/chanting|ltchanting sounds|le are coming from beyond the door."</span>
</pre></div>
</div>
<p>This will show as “Omnious <strong>chanting sounds</strong> are coming from beyond the door”, where clicking the link will open the url in a browser if the client supports doing so.</p>
</section>
<sectionid="settings">
<h2>Settings<aclass="headerlink"href="#settings"title="Permalink to this headline">¶</a></h2>
<p>Enable / disable MXP overall (enabled by default).</p>
<p>By default clickable links are only available <em>from strings provided in code</em> (or via a <aclass="reference internal"href="../Components/Batch-Processors.html"><spanclass="doc std std-doc">batch script</span></a>). You <em>cannot</em> create clickable links from inside the game - the result will not come out as clickable.</p>
<p>This is a security measure. Consider if a user were able to enter clickable links in their description, like this:</p>
<divclass="highlight-default notranslate"><divclass="highlight"><pre><span></span>|lc give 1000 gold to Bandit |ltClick here to read my backstory!|le
</pre></div>
</div>
<p>This would be executed by the poor player clicking the link, resulting in them paying 1000 gold to the bandit.</p>
<p>This is controlled by the following default setting:</p>