<p>Evennia supports <em>guest logins</em> out of the box. A guest login is an anonymous, low-access account and can be useful if you want users to have a chance to try out your game without committing to creating a real account.</p>
<p>Guest accounts are turned off by default. To activate, add this to your <codeclass="docutils literal notranslate"><spanclass="pre">game/settings.py</span></code> file:</p>
<p>Henceforth users can use <codeclass="docutils literal notranslate"><spanclass="pre">connect</span><spanclass="pre">guest</span></code> (in the default command set) to login with a guest account. You may need to change your <spanclass="xref myst">Connection Screen</span> to inform them of this possibility. Guest accounts work differently from normal accounts - they are automatically <em>deleted</em> whenever the user logs off or the server resets (but not during a reload). They are literally re- usable throw-away accounts.</p>
<p>You can add a few more variables to your <codeclass="docutils literal notranslate"><spanclass="pre">settings.py</span></code> file to customize your guests:</p>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">BASE_GUEST_TYPECLASS</span></code> - the python-path to the default <aclass="reference internal"href="../Components/Typeclasses.html"><spanclass="doc std std-doc">typeclass</span></a> for guests. Defaults to <codeclass="docutils literal notranslate"><spanclass="pre">"typeclasses.accounts.Guest"</span></code>.</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">PERMISSION_GUEST_DEFAULT</span></code> - <aclass="reference internal"href="../Components/Locks.html"><spanclass="doc std std-doc">permission level</span></a> for guest accounts. Defaults to <codeclass="docutils literal notranslate"><spanclass="pre">"Guest"</span></code>, which is the lowest permission level in the hierarchy (below <codeclass="docutils literal notranslate"><spanclass="pre">Player</span></code>).</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">GUEST_START_LOCATION</span></code> - the <codeclass="docutils literal notranslate"><spanclass="pre">#dbref</span></code> to the starting location newly logged-in guests should appear at. Defaults to <codeclass="docutils literal notranslate"><spanclass="pre">"#2</span></code> (Limbo).</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">GUEST_LIST</span></code> - this is a list holding the possible guest names to use when entering the game. The length of this list also sets how many guests may log in at the same time. By default this is a list of nine names from <codeclass="docutils literal notranslate"><spanclass="pre">"Guest1"</span></code> to <codeclass="docutils literal notranslate"><spanclass="pre">"Guest9"</span></code>.</p></li>