mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 21:36:30 +01:00
27 lines
915 B
Markdown
27 lines
915 B
Markdown
# Talkative NPC example
|
|
|
|
Contribution by Griatch 2011. Updated by grungies1138, 2016
|
|
|
|
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.
|
|
|
|
## Installation
|
|
|
|
Create the NPC by creating an object of typeclass `contrib.tutorials.talking_npc.TalkingNPC`,
|
|
For example:
|
|
|
|
create/drop John : contrib.tutorials.talking_npc.TalkingNPC
|
|
|
|
Use `talk` in the same room as the NPC to start a conversation.
|
|
|
|
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).
|
|
|
|
This use of EvMenu is very simplistic; See EvMenu for a lot more complex
|
|
possibilities.
|
|
|
|
|
|
----
|
|
|
|
<small>This document page is generated from `evennia/contrib/tutorials/talking_npc/README.md`. Changes to this
|
|
file will be overwritten, so edit that file rather than this one.</small>
|