mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 14:26:30 +01:00
172 lines
No EOL
11 KiB
HTML
172 lines
No EOL
11 KiB
HTML
|
||
<!DOCTYPE html>
|
||
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<title>Tutorial World Introduction — Evennia 1.0-dev documentation</title>
|
||
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
|
||
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
||
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
|
||
<script src="_static/jquery.js"></script>
|
||
<script src="_static/underscore.js"></script>
|
||
<script src="_static/doctools.js"></script>
|
||
<script src="_static/language_data.js"></script>
|
||
<link rel="index" title="Index" href="genindex.html" />
|
||
<link rel="search" title="Search" href="search.html" />
|
||
|
||
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
|
||
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
|
||
|
||
</head><body>
|
||
|
||
|
||
<div class="document">
|
||
<div class="documentwrapper">
|
||
<div class="bodywrapper">
|
||
|
||
|
||
<div class="body" role="main">
|
||
|
||
<div class="section" id="tutorial-world-introduction">
|
||
<h1>Tutorial World Introduction<a class="headerlink" href="#tutorial-world-introduction" title="Permalink to this headline">¶</a></h1>
|
||
<p>The <em>Tutorial World</em> is a small and functioning MUD-style game world. It is intended to be deconstructed and used as a way to learn Evennia. The game consists of a single-player quest and has some 20 rooms that you can explore as you seek to discover the whereabouts of a mythical weapon.</p>
|
||
<p>The source code is fully documented. You can find the whole thing in <code class="docutils literal notranslate"><span class="pre">evennia/contrib/tutorial_world/</span></code>.</p>
|
||
<p>Some features exemplified by the tutorial world:</p>
|
||
<ul class="simple">
|
||
<li><p>Tutorial command, giving “behind-the-scenes” help for every room and some of the special objects</p></li>
|
||
<li><p>Rooms with custom <code class="docutils literal notranslate"><span class="pre">return_appearance</span></code> to show details.</p></li>
|
||
<li><p>Hidden exits</p></li>
|
||
<li><p>Objects with multiple custom interactions</p></li>
|
||
<li><p>Large-area rooms</p></li>
|
||
<li><p>Outdoor weather rooms</p></li>
|
||
<li><p>Dark room, needing light source</p></li>
|
||
<li><p>Puzzle object</p></li>
|
||
<li><p>Multi-room puzzle</p></li>
|
||
<li><p>Aggressive mobile with roam, pursue and battle state-engine AI</p></li>
|
||
<li><p>Weapons, also used by mobs</p></li>
|
||
<li><p>Simple combat system with attack/defend commands</p></li>
|
||
<li><p>Object spawning</p></li>
|
||
<li><p>Teleporter trap rooms</p></li>
|
||
</ul>
|
||
<div class="section" id="install">
|
||
<h2>Install<a class="headerlink" href="#install" title="Permalink to this headline">¶</a></h2>
|
||
<p>The tutorial world consists of a few modules in <code class="docutils literal notranslate"><span class="pre">evennia/contrib/tutorial_world/</span></code> containing custom <a class="reference internal" href="Typeclasses.html"><span class="doc">Typeclasses</span></a> for <a class="reference internal" href="Objects.html"><span class="doc">rooms and objects</span></a> and associated <a class="reference internal" href="Commands.html"><span class="doc">Commands</span></a>.</p>
|
||
<p>These reusable bits and pieces are then put together into a functioning game area (“world” is maybe too big a word for such a small zone) using a <a class="reference internal" href="Batch-Processors.html"><span class="doc">batch script</span></a> called <code class="docutils literal notranslate"><span class="pre">build.ev</span></code>. To install, log into the server as the superuser (user #1) and run:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="nd">@batchcommand</span> <span class="n">tutorial_world</span><span class="o">.</span><span class="n">build</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>The world will be built (this might take a while, so don’t rerun the command even if it seems the system has frozen). After finishing you will end up back in Limbo with a new exit called <code class="docutils literal notranslate"><span class="pre">tutorial</span></code>.</p>
|
||
<p>An alternative is</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="nd">@batchcommand</span><span class="o">/</span><span class="n">interactive</span> <span class="n">tutorial_world</span><span class="o">.</span><span class="n">build</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>with the /interactive switch you are able to step through the building process at your own pace to see what happens in detail.</p>
|
||
<p>To play the tutorial “correctly”, you should <em>not</em> do so as superuser. The reason for this is that many game systems ignore the presence of a superuser and will thus not work as normal. Use the <code class="docutils literal notranslate"><span class="pre">@quell</span></code> command to limit your powers or log out and reconnect as a different user. As superuser you can of course examine things “under the hood” later if you want.</p>
|
||
</div>
|
||
<div class="section" id="gameplay">
|
||
<h2>Gameplay<a class="headerlink" href="#gameplay" title="Permalink to this headline">¶</a></h2>
|
||
<p><img alt="the castle off the moor" src="https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/22916c25-6299-453d-a221-446ec839f567/da2pmzu-46d63c6d-9cdc-41dd-87d6-1106db5a5e1a.jpg/v1/fill/w_600,h_849,q_75,strp/the_castle_off_the_moor_by_griatch_art_da2pmzu-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOiIsImlzcyI6InVybjphcHA6Iiwib2JqIjpbW3siaGVpZ2h0IjoiPD04NDkiLCJwYXRoIjoiXC9mXC8yMjkxNmMyNS02Mjk5LTQ1M2QtYTIyMS00NDZlYzgzOWY1NjdcL2RhMnBtenUtNDZkNjNjNmQtOWNkYy00MWRkLTg3ZDYtMTEwNmRiNWE1ZTFhLmpwZyIsIndpZHRoIjoiPD02MDAifV1dLCJhdWQiOlsidXJuOnNlcnZpY2U6aW1hZ2Uub3BlcmF0aW9ucyJdfQ.omuS3D1RmFiZCy9OSXiIita-HxVGrBok3_7asq0rflw" /></p>
|
||
<p><em>To get into the mood of this miniature quest, imagine you are an adventurer out to find fame and fortune. You have heard rumours of an old castle ruin by the coast. In its depth a warrior princess was buried together with her powerful magical weapon - a valuable prize, if it’s true. Of course this is a chance to adventure that you cannot turn down!</em></p>
|
||
<p><em>You reach the ocean in the midst of a raging thunderstorm. With wind and rain screaming in your face you stand where the moor meets the sea along a high, rocky coast …</em></p>
|
||
<ul class="simple">
|
||
<li><p>Look at everything.</p></li>
|
||
<li><p>Some objects are interactive in more than one way. Use the normal <code class="docutils literal notranslate"><span class="pre">help</span></code> command to get a feel for which commands are available at any given time. (use the command <code class="docutils literal notranslate"><span class="pre">tutorial</span></code> to get insight behind the scenes of the tutorial).</p></li>
|
||
<li><p>In order to fight, you need to first find some type of weapon.</p></li>
|
||
<li><p><em>slash</em> is a normal attack</p></li>
|
||
<li><p><em>stab</em> launches an attack that makes more damage but has a lower chance to hit.</p></li>
|
||
<li><p><em>defend</em> will lower the chance to taking damage on your enemy’s next attack.</p></li>
|
||
<li><p>You <em>can</em> run from a fight that feels too deadly. Expect to be chased though.</p></li>
|
||
<li><p>Being defeated is a part of the experience …</p></li>
|
||
</ul>
|
||
</div>
|
||
<div class="section" id="uninstall">
|
||
<h2>Uninstall<a class="headerlink" href="#uninstall" title="Permalink to this headline">¶</a></h2>
|
||
<p>Uninstalling the tutorial world basically means deleting all the rooms and objects it consists of. First, move out of the tutorial area.</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span> <span class="nd">@find</span> <span class="n">tut</span><span class="c1">#01</span>
|
||
<span class="nd">@find</span> <span class="n">tut</span><span class="c1">#16</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>This should locate the first and last rooms created by <code class="docutils literal notranslate"><span class="pre">build.ev</span></code> - <em>Intro</em> and <em>Outro</em>. If you installed normally, everything created between these two numbers should be part of the tutorial. Note their dbref numbers, for example 5 and 80. Next we just delete all objects in that range:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span> <span class="nd">@del</span> <span class="mi">5</span><span class="o">-</span><span class="mi">80</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>You will see some errors since some objects are auto-deleted and so cannot be found when the delete mechanism gets to them. That’s fine. You should have removed the tutorial completely once the command finishes.</p>
|
||
</div>
|
||
<div class="section" id="notes">
|
||
<h2>Notes<a class="headerlink" href="#notes" title="Permalink to this headline">¶</a></h2>
|
||
<p>When reading and learning from the code, keep in mind that <em>Tutorial World</em> was created with a very specific goal: to install easily and to not permanently modify the rest of the server. It therefore goes to some length to use only temporary solutions and to clean up after
|
||
itself.</p>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
||
<div class="sphinxsidebarwrapper">
|
||
<div id="searchbox" style="display: none" role="search">
|
||
<h3 id="searchlabel">Quick search</h3>
|
||
<div class="searchformwrapper">
|
||
<form class="search" action="search.html" method="get">
|
||
<input type="text" name="q" aria-labelledby="searchlabel" />
|
||
<input type="submit" value="Go" />
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<script>$('#searchbox').show(0);</script>
|
||
<p><h3><a href="index.html">Table of Contents</a></h3>
|
||
<ul>
|
||
<li><a class="reference internal" href="#">Tutorial World Introduction</a><ul>
|
||
<li><a class="reference internal" href="#install">Install</a></li>
|
||
<li><a class="reference internal" href="#gameplay">Gameplay</a></li>
|
||
<li><a class="reference internal" href="#uninstall">Uninstall</a></li>
|
||
<li><a class="reference internal" href="#notes">Notes</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<div class="relations">
|
||
<h3>Related Topics</h3>
|
||
<ul>
|
||
<li><a href="index.html">Documentation overview</a><ul>
|
||
</ul></li>
|
||
</ul>
|
||
</div>
|
||
<div role="note" aria-label="source link">
|
||
<!--h3>This Page</h3-->
|
||
<ul class="this-page-menu">
|
||
<li><a href="_sources/Tutorial-World-Introduction.md.txt"
|
||
rel="nofollow">Show Page Source</a></li>
|
||
</ul>
|
||
</div>
|
||
<h3>Versions</h3>
|
||
<ul>
|
||
<li><a href="Tutorial-World-Introduction.html">1.0-dev (develop branch)</a></li>
|
||
<li><a href="../0.9.1/index.html">0.9.1 (master branch)</a></li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="clearer"></div>
|
||
</div>
|
||
<div class="footer">
|
||
©2020, The Evennia developer community.
|
||
|
||
|
|
||
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.4</a>
|
||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
|
||
|
||
|
|
||
<a href="_sources/Tutorial-World-Introduction.md.txt"
|
||
rel="nofollow">Page source</a>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
</body>
|
||
</html> |