View previous topic :: View next topic |
Author |
Message |
Primogenitor
Joined: 08 Jan 2005 Posts: 88
|
Posted: Fri Apr 29, 2005 16:20 Post subject: Applying Chat Bot AI to NWN |
|
|
I found this on the web the other day http://www.alicebot.org/ and I got to thinking how this could be used in NWN to give conversations with NPCs a more RP feel. Try the web version of alice by pressing "Chat to A.L.I.C.E" on the left.
The basic way it works is by matching each sentance of the human input to a database of input/responce strings. Then it also has two extra steps, firstly the input strings can be converted to other strings (e.g. "Hello", "Hi", & "Howdy" all point to the "Hello" entry) The second step is to replace the output string before it is spoken. This is either token based (e.g. <MyName> would be replced by the name of the bot) or random repacement ( e.g. "that is" might have a 25% chance of being replaced by "that's"). You could probably add other steps as well.
For NWN, this could be done using a database and the LIKE SQL command. You could have different tables and specify which ones the NPC uses via local strings (so they are instered into the FROM part of the SQL). Also, the responces from the NPC could include actions. I.e. [spell25] to cast Cone of Cold, [openTAG] to open a store or door, etc.
How much lag would a system like this produce? What about if it was just for henchmen? And civilians? One major way to reduce lag would be to only lookup strings where the speaker is part of a conversation with the NPC, i.e. the speaker said the NPCs name shortly before.
So, any ideas/suggestions/comments? |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Fri Apr 29, 2005 19:18 Post subject: |
|
|
I am not sure what you are trying to do: Do you want to interface chatbots like the alicebot with NWN, or do you want to create something similar with NWScript and database tables ?
I thought about the former myself, but abandoned the idea due to a severe lack of extra spare time. But the idea of having more lifelike NPCs is sexy, indeed. _________________ Papillon |
|
Back to top |
|
|
Primogenitor
Joined: 08 Jan 2005 Posts: 88
|
Posted: Sat Apr 30, 2005 10:22 Post subject: |
|
|
Personally, Id have to do the second option because I dont know and languages other than NWScript But the first would probably be quicker and more efficient. |
|
Back to top |
|
|
Jantima
Joined: 11 Feb 2005 Posts: 6 Location: Italy
|
Posted: Sun May 01, 2005 3:55 Post subject: |
|
|
lauren.vhost.pandorabots.com/pandora/talk?botid=f6d4afd83e34564d
She is my favourite...[just the image i suppose] eh the idea to port something like this into nwn is exceptional.
If you import this, keep in mind to fix this bug :F [joking]
Quote: |
You: my name is alice
LaurenBot: ALICE is my name too!
You: what's your name?
LaurenBot: My name is Lauren. |
_________________ Antiworld Arena |
|
Back to top |
|
|
Lanthar D'Alton
Joined: 10 Feb 2005 Posts: 100
|
Posted: Sun May 01, 2005 5:07 Post subject: Talus Speech System |
|
|
You should consider using this:
http://www.nwnx.org/phpBB2/viewtopic.php?t=57&start=45
Talus Speech System v3.02b is linked there. It provides a non-npc based interface... then again, you might want it npc based for turing test handling...
-Lanthar |
|
Back to top |
|
|
|