<h1>SimpleDoor<aclass="headerlink"href="#simpledoor"title="Permalink to this headline">¶</a></h1>
<p>Contribution by Griatch, 2016</p>
<p>A simple two-way exit that represents a door that can be opened and
closed from both sides. Can easily be expanded to make it lockable,
destroyable etc.</p>
<p>Note that the simpledoor is based on Evennia locks, so it will
not work for a superuser (which bypasses all locks). The superuser
will always appear to be able to close/open the door over and over
without the locks stopping you. To use the door, use <codeclass="docutils literal notranslate"><spanclass="pre">quell</span></code> or a
non-superuser account.</p>
<sectionid="installation">
<h2>Installation:<aclass="headerlink"href="#installation"title="Permalink to this headline">¶</a></h2>
<p>Import <codeclass="docutils literal notranslate"><spanclass="pre">SimpleDoorCmdSet</span></code> from this module into <codeclass="docutils literal notranslate"><spanclass="pre">mygame/commands/default_cmdsets</span></code>
and add it to your <codeclass="docutils literal notranslate"><spanclass="pre">CharacterCmdSet</span></code>:</p>
<divclass="highlight-python notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># in mygame/commands/default_cmdsets.py</span>
<h2>Usage:<aclass="headerlink"href="#usage"title="Permalink to this headline">¶</a></h2>
<p>To try it out, <codeclass="docutils literal notranslate"><spanclass="pre">dig</span></code> a new room and then use the (overloaded) <codeclass="docutils literal notranslate"><spanclass="pre">@open</span></code>
commmand to open a new doorway to it like this:</p>
<p>Note: This uses locks, so if you are a superuser you will not be blocked by
a locked door - <codeclass="docutils literal notranslate"><spanclass="pre">quell</span></code> yourself, if so. Normal users will find that they
cannot pass through either side of the door once it’s closed from the other
side.</p>
<hrclass="docutils"/>
<p><small>This document page is generated from <codeclass="docutils literal notranslate"><spanclass="pre">evennia/contrib/grid/simpledoor/README.md</span></code>. Changes to this
file will be overwritten, so edit that file rather than this one.</small></p>