Author Topic: NPC dialogue and chatterbots  (Read 4148 times)

saladasalad

  • Hydlaa Resident
  • *
  • Posts: 96
    • View Profile
    • Vivada - Band / Blog / Good People
NPC dialogue and chatterbots
« on: July 30, 2007, 05:15:30 am »
I would like to propose the use of chatterbots to improve NPC dialog. Chatterbots could completely eliminate NPCs non-recognition of simple phrases. For example, if I approached a random NPC and ask "about quest" they will respond. If I ask an NPC "Do you have a quest?" they will respond, but if I ask an NPC "Do you have any quests?" they will not know what I am talking about. All the NPC really needs to know is that you are asking a question about quests/tasks/jobs, a chatterbot could be easily taught to respond to just about any different way of asking "Do you have a quest?".


Chatterbots can be taught by asking them a question and if you are unhappy with the response then you correct them, the next time they are asked that question they will give the corrected answer. Leaving the bots open to be taught by players would probably lead to pollution of the NPCs dialog so it should be closed to the settings team or players who have been given permission to teach NPCs. Either way, players chat logs should be logged by the server (are they already?) so that the most common questions (and methods of delivery) can be entered into a template bot that could then be used for all NPCs. This method has the added advantage of allowing the settings team to test the dialog as they are programming it.

Another place where I think this could be very beneficial is in a virtual adviser, a very knowledgeable NPC (Jayose perhaps) could act as an adviser on OOC issues. Instead of GMs and advisers having to repeat answers to common questions over and over, such as, "What do glyphs do?", etc. Again, the answers could be based on questions logged questions from players.


I think the best way to go about assessing this idea would be to weigh up the positives and negatives:


Pros
------
- Much more realistic interaction with NPCs.
- Innovative; could attract new developers and players.
- Decrease workload on GMs and Advisers.
- It would be a good way to introduce new information about Yliakum or rumours, etc.
- Could make PS a personalised experience via NPCs "getting to know" the player.
- Quite a few actively developed open source chatterbots are already available, see:
   * Program D (Java, J2EE)
   * RebeccaAIML (C++)
   * ChatterBean (Java)
   * Program R (Ruby)
   * Program Q (C++, Qt)
   * AIMLbot (Program #) (.NET/C#)
   * Program W (Java)


Cons
-------
- Difficult/time-consuming to implement. (?)
- If it is open to players to teach NPCs then they might teach them spoilers or OOCness. (Solution: Let only team members teach NPCs.)



Could I please get some opinions on this?
« Last Edit: August 03, 2007, 05:09:57 am by saladasalad »
Artisian Hooke  -  Guild Elder in The Organisation.
Alumolo Genare.
Divire Dighur.
--------------------------------------------------------------------
Vivada - Band / Blog / Good People

Jeraphon

  • Hydlaa Notable
  • *
  • Posts: 717
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #1 on: July 30, 2007, 05:33:57 am »
Settings has been recently given a tool to log things that players ask NPCs (or rather, things that players ask NPCs that are not understood.) We are in the midst of making NPCs smarter by using these answers.

Problem: not many players talk to NPCs, thinking it's not worth it because their dialogue is flawed, therefore very little gets logged. Believe me, I've gone around and checked. Most NPCs have zero misunderstood things, and high-traffic NPCs like harnquist usually have a handful (almost all of which are based around quests.)

Solution: Talk to NPCs and PM me directly as to what they're not understanding. I've even made my own thread about it for more information:

http://hydlaa.com/smf/index.php?topic=29353.0

Thanks for your concern and support.

I do realize that you have less than 10 messages; I am often available on IRC so you may attempt to PM me there as well, or hang on to your logs until you have 10 messages..

Entevir

  • Hydlaa Resident
  • *
  • Posts: 168
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #2 on: July 30, 2007, 11:39:30 am »
Actualy i was playing with a public chat bot a few months ago.Their realy interesting.I even managed to teach it lithuanian.It knew the basics and the secondary word meanings.Its quite fun that they at first reffer to you as "User #" but after a quick type she learned my name.That would be fun to see that at first NPC's dont know your name and reffer to you as "stranger" but once you introduce yourself they will call you by name.
Also before i forget id like to Jeraphon for his idea on fixing NPC's and saladasalad for beeing so constructive.
If I stand on the axis of the world will you mind if I say that the world revolves around me ?

Xillix Queen of Fools

  • Veteran
  • *
  • Posts: 1876
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #3 on: July 30, 2007, 03:15:00 pm »
Help in this way and you will have what you have complained of not having.

If you do not you lose credibility for all complaints related to npcs forever :)

saladasalad

  • Hydlaa Resident
  • *
  • Posts: 96
    • View Profile
    • Vivada - Band / Blog / Good People
Re: NPC dialogue and chatterbots
« Reply #4 on: July 31, 2007, 07:42:24 am »
Settings has been recently given a tool to log things that players ask NPCs (or rather, things that players ask NPCs that are not understood.) We are in the midst of making NPCs smarter by using these answers.

<snip>

I do realize that you have less than 10 messages; I am often available on IRC so you may attempt to PM me there as well, or hang on to your logs until you have 10 messages..

If you already log un-understood (???) questions should I still PM you all my questions or just the ones that were misunderstood?

And just out of curiosity, what sort of system does PS use for NPC AI (language and behaviour)? Aren't you already basically creating simplified chatterbots? Is there an AI team?
Artisian Hooke  -  Guild Elder in The Organisation.
Alumolo Genare.
Divire Dighur.
--------------------------------------------------------------------
Vivada - Band / Blog / Good People

neko kyouran

  • Guest
Re: NPC dialogue and chatterbots
« Reply #5 on: July 31, 2007, 09:04:01 am »
And just out of curiosity, what sort of system does PS use for NPC AI (language and behaviour)? Aren't you already basically creating simplified chatterbots? Is there an AI team?

BAM!

Jeraphon

  • Hydlaa Notable
  • *
  • Posts: 717
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #6 on: July 31, 2007, 03:41:19 pm »
Quote
If you already log un-understood (Huh) questions should I still PM you all my questions or just the ones that were misunderstood?

You can do either. Some people give me the understood ones as well, and comment on the answer. For example, "I wasn't expecting him to know that" or "That's pretty good, but maybe you can add this..."

I only get logs based from the most recent restart, so you can understand why I'd like them PMed right now. I can't exactly go around to all 100+ NPCs and check the logs, hoping someone's done a top ten since the last restart. Furthermore, some NPCs do "understand" things but still respond they don't know. Example, "I know where many things are, but not that." might be an answer if you ask an NPC where something is. It's taken as understood, but is still not helpful. Make sense?

Zan

  • Veteran
  • *
  • Posts: 1944
  • Just a regular guy, with an irregular soul
    • View Profile
    • Photography
Re: NPC dialogue and chatterbots
« Reply #7 on: July 31, 2007, 03:50:55 pm »
Does this count for quest-related NPC conversations and your every day chatter alike?
Zan Drithor, Member of the Vaalnor Council
Tyrnal Relhorn, Captain of the Vaalguard
Thromdir Shoake, Merchant
Giorn Kleaver, Miner.

Grayne Dholm, Follower of Dakkru

Jeraphon

  • Hydlaa Notable
  • *
  • Posts: 717
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #8 on: July 31, 2007, 04:05:39 pm »
Does this count for quest-related NPC conversations and your every day chatter alike?

The logs, yes.

But quests and everyday chatter are handled two different ways. Right now I'm looking to improve everyday chatter. Improving quests will come after that. And yes, I'm fully aware that most people don't want to talk to NPCs at all unless it's quest-related, but that's part of the reason we're doing this - to make NPCs feel more like characters and less like quest automata.

arkuis

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #9 on: August 02, 2007, 08:22:49 pm »
I am in favor of a much simpler NPC chat interface.  I think that every one interacts with an NPC it should be done through a list of possible responses.  Just like how it is done in the Elder Scrolls or the vast majority of other RPG and MORPG games out there.

The current system makes very user unfriendly and really disincentives people, mostly noobs, from playing the game. 

Thats what I think anyway. 

Karyuu

  • Forum Legend
  • *
  • Posts: 9341
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #10 on: August 02, 2007, 08:30:14 pm »
arkuis: That suggestion has been brought up many times before, and we have argued against it for various reasons. Our goal is to make the NPCs feel like real people - a lofty ambition, but one that is possible if we keep at it.
Judge: Are you trying to show contempt for this court, Mr Smith?
Smith: No, My Lord. I am attempting to conceal it.

arkuis

  • Wayfarer
  • *
  • Posts: 2
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #11 on: August 02, 2007, 08:34:48 pm »
I am sure you have but it has a very negative effect on game play for a first time gamer.  It is no fun trying to guess what the NPC wants to hear you say the whole time is very boring.  I suppose you could put a list of coming commands and talking points for first times gamers, that would help things a bit. 

Seytra

  • Forum Addict
  • *
  • Posts: 2052
  • No system can compensate lack of common sense.
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #12 on: August 02, 2007, 08:47:03 pm »
I am sure you have but it has a very negative effect on game play for a first time gamer.  It is no fun trying to guess what the NPC wants to hear you say the whole time is very boring.  I suppose you could put a list of coming commands and talking points for first times gamers, that would help things a bit. 
That's precisely what the thread Jeraphon linked to is about. In this respect, it is particularly vital that not only "experienced" players, but also new players to do that, because the phrases of each will differ.

saladasalad

  • Hydlaa Resident
  • *
  • Posts: 96
    • View Profile
    • Vivada - Band / Blog / Good People
Re: NPC dialogue and chatterbots
« Reply #13 on: August 03, 2007, 02:36:47 am »
And yes, I'm fully aware that most people don't want to talk to NPCs at all unless it's quest-related, but that's part of the reason we're doing this - to make NPCs feel more like characters and less like quest automata.

Sorry to keep harping on about it but this is why I think that powering NPCs with chatbots would be a sensible action. Your goals are the same as that of the chatbot developers, you're basically creating a chatbot from scratch when there are already some very advanced, open source, alternatives available.

Quote from: arkuis
I am sure you have but it has a very negative effect on game play for a first time gamer.  It is no fun trying to guess what the NPC wants to hear you say the whole time is very boring.  I suppose you could put a list of coming commands and talking points for first times gamers, that would help things a bit.

I don't understand this perspective. If you can't hold a RL conversation then PS probably isn't the game for you anyway.
Artisian Hooke  -  Guild Elder in The Organisation.
Alumolo Genare.
Divire Dighur.
--------------------------------------------------------------------
Vivada - Band / Blog / Good People

Anarid

  • Wayfarer
  • *
  • Posts: 3
    • View Profile
Re: NPC dialogue and chatterbots
« Reply #14 on: August 03, 2007, 05:03:14 am »
ok well I posted a topic on this subject and it got deleted.

I posted that topic because it applied to the Wishlist rules. "A NEw Twist on an old subject" Maybe nxt time the moderators can add my good ideas to this thread before just flat out deleting my post.

Anyway something needs to be done about this.

For instance the NPC simply sayin I'm sorry did you mean "And then provide a list of possible subjects that are associated with the text you typed in." would solve this problem.

*edit*
Quote
Quote from: arkuis
I am sure you have but it has a very negative effect on game play for a first time gamer.  It is no fun trying to guess what the NPC wants to hear you say the whole time is very boring.  I suppose you could put a list of coming commands and talking points for first times gamers, that would help things a bit.

I don't understand this perspective. If you can't hold a RL conversation then PS probably isn't the game for you anyway.

U don't understand?

In Real Life if I came to you and asked you Kran Poetry would u not correct me? If I came to you asking about the application of a linux honey pot on a network and i didn't seem to know what i was talking about, Would you stand there and tell me "you sound like a mumbling dirt dobber" if so Then "you" obviously can't hold a "RL conversation" then can you? Man if you don't understand this prespective then you need to crawl out from under that rock you are living under and talk with some RL people, Or better yet take a break from this game and get some fresh air your social skills are starting to fade.
« Last Edit: August 03, 2007, 05:32:42 am by neko kyouran »