<h1>Basic Map<aclass="headerlink"href="#basic-map"title="Permalink to this headline">¶</a></h1>
<p>Contribution - helpme 2022</p>
<p>This adds an ascii <codeclass="docutils literal notranslate"><spanclass="pre">map</span></code> to a given room which can be viewed with the <codeclass="docutils literal notranslate"><spanclass="pre">map</span></code> command.
You can easily alter it to add special characters, room colors etc. The map shown is
dynamically generated on use, and supports all compass directions and up/down. Other
directions are ignored.</p>
<p>If you don’t expect the map to be updated frequently, you could choose to save the
calculated map as a .ndb value on the room and render that instead of running mapping
calculations anew each time.</p>
<sectionid="installation">
<h2>Installation:<aclass="headerlink"href="#installation"title="Permalink to this headline">¶</a></h2>
<p>Adding the <codeclass="docutils literal notranslate"><spanclass="pre">MapDisplayCmdSet</span></code> to the default character cmdset will add the <codeclass="docutils literal notranslate"><spanclass="pre">map</span></code> command.</p>
<p>Specifically, in <codeclass="docutils literal notranslate"><spanclass="pre">mygame/commands/default_cmdsets.py</span></code>:</p>
<p>Then <codeclass="docutils literal notranslate"><spanclass="pre">reload</span></code> to make the new commands available.</p>
</section>
<sectionid="settings">
<h2>Settings:<aclass="headerlink"href="#settings"title="Permalink to this headline">¶</a></h2>
<p>In order to change your default map size, you can add to <codeclass="docutils literal notranslate"><spanclass="pre">mygame/server/settings.py</span></code>:</p>
<divclass="highlight-python notranslate"><divclass="highlight"><pre><span></span><spanclass="n">BASIC_MAP_SIZE</span><spanclass="o">=</span><spanclass="mi">5</span><spanclass="c1"># This changes the default map width/height.</span>
</pre></div>
</div>
</section>
<sectionid="features">
<h2>Features:<aclass="headerlink"href="#features"title="Permalink to this headline">¶</a></h2>
<h3>ASCII map (and evennia supports UTF-8 characters and even emojis)<aclass="headerlink"href="#ascii-map-and-evennia-supports-utf-8-characters-and-even-emojis"title="Permalink to this headline">¶</a></h3>
<p>This produces an ASCII map for players of configurable size.</p>
</section>
<sectionid="new-command">
<h3>New command<aclass="headerlink"href="#new-command"title="Permalink to this headline">¶</a></h3>
<ulclass="simple">
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">CmdMap</span></code> - view the map</p></li>
</ul>
<hrclass="docutils"/>
<p><small>This document page is generated from <codeclass="docutils literal notranslate"><spanclass="pre">evennia/contrib/grid/ingame_map_display/README.md</span></code>. Changes to this
file will be overwritten, so edit that file rather than this one.</small></p>