<pclass="last">You are reading an old version of the Evennia documentation. <ahref="https://www.evennia.com/docs/latest/index.html">The latest version is here</a></p>.
<h1>Talkative NPC example<aclass="headerlink"href="#talkative-npc-example"title="Permalink to this headline">¶</a></h1>
<p>Contribution by Griatch 2011. Updated by grungies1138, 2016</p>
<p>This is an example of a static NPC object capable of holding a simple menu-driven
conversation. Suitable for example as a quest giver or merchant.</p>
<sectionid="installation">
<h2>Installation<aclass="headerlink"href="#installation"title="Permalink to this headline">¶</a></h2>
<p>Create the NPC by creating an object of typeclass <codeclass="docutils literal notranslate"><spanclass="pre">contrib.tutorials.talking_npc.TalkingNPC</span></code>,
For example:</p>
<divclass="highlight-none notranslate"><divclass="highlight"><pre><span></span>create/drop John : contrib.tutorials.talking_npc.TalkingNPC
</pre></div>
</div>
<p>Use <codeclass="docutils literal notranslate"><spanclass="pre">talk</span></code> in the same room as the NPC to start a conversation.</p>
<p>If there are many talkative npcs in the same room you will get to choose which
one’s talk command to call (Evennia handles this automatically).</p>
<p>This use of EvMenu is very simplistic; See EvMenu for a lot more complex
possibilities.</p>
<hrclass="docutils"/>
<p><small>This document page is generated from <codeclass="docutils literal notranslate"><spanclass="pre">evennia/contrib/tutorials/talking_npc/README.md</span></code>. Changes to this
file will be overwritten, so edit that file rather than this one.</small></p>
<pclass="last">You are reading an old version of the Evennia documentation. <ahref="https://www.evennia.com/docs/latest/index.html">The latest version is here</a></p>.
</div>
<divclass="footer"role="contentinfo">
© Copyright 2023, The Evennia developer community.
Created using <ahref="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.