RPG Npc Chat "AI"

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

RPG Npc Chat "AI"

Post by Slartibartfast »

Ok, I recently acquired a good old original copy of Neverwinter Night, and I must say I am impressed about the level some Persistent Worlds are. But something that I don't like much is how hollow the NPCs always are, unless they're a quest-giver or some other plot character, and even then all they ever do is stand still somewhere waiting for a player to ask him questions.

So I'm trying to come up with an interesting "banter" (?) script that allows NPCs (even generic ones) to have simulated lives of their own - that is, mostly just go from X to Y and chat to somebody (also an NPC), either because they bumped with each other or because NPC A had the intent to talk to NPC B.

I think a fairly decent method would be to adapt the "The Sims" method of relationships, needs, personality & interests, albeit in a very simplified way. Mostly just "does A like B?" and "is B interested in politics?" and "does A feel the need to socialize right now?" etc. So they just meet and one says something and the other might like or not like the conversation.

Each topic would have a list of common topics, some "wildcards" allowing them to replace "hey did you hear about the new <device>" with "did you hear about the new ox-cart model x 200", and a set of possible replies. Also allowing for different speech patterns, etc. In paper it doesn't sound so complicated, but I'm sure it's going to be a bitch to program.

I got this idea from some old Revolution games that featured the overhyped "Virtual Theatre" system, where NPCs would walk around the map and talk when they bump with each other about something silly.

Any thoughts?
Image
User avatar
Ace Pace
Hardware Lover
Posts: 8456
Joined: 2002-07-07 03:04am
Location: Wasting time instead of money
Contact:

Post by Ace Pace »

AFAIK morrowind does a preety good job, with some modders developing huge scripts *multi megabyte* that give alot of the NPC's full lives.

exept for that, Gothic II
Brotherhood of the Bear | HAB | Mess | SDnet archivist |
User avatar
TrailerParkJawa
Sith Acolyte
Posts: 5850
Joined: 2002-07-04 11:49pm
Location: San Jose, California

Post by TrailerParkJawa »

I like the idea of the world being "alive" so to speak. For me, my first experience with this was Ultima V where the NPC's had routines. No more could you go to a shop at 12 midnight and expect service unless that shopkeeper specifically kept those hours.

It does make things tougher on the Player Character if quest giving NPC's move around. It is entirely possible to miss them all together.

How would you plan to present the dialog of non quest giving NPC's. Would it be the floating text ala Fallout or something else?
MEMBER of the Anti-PETA Anti-Facist LEAGUE
User avatar
Ace Pace
Hardware Lover
Posts: 8456
Joined: 2002-07-07 03:04am
Location: Wasting time instead of money
Contact:

Post by Ace Pace »

standerd chat, floating text in large cantinas would be horrible
Brotherhood of the Bear | HAB | Mess | SDnet archivist |
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

There's already a lot of standard chat, floating text when players are around. The trick would be to make NPCs talk with a slow pace, and avoid having many talk at the same time. Like, have somebody say something once a round or two.

When there are players around, the whole thing is a mess of text.
Image
User avatar
Hamel
Sith Marauder
Posts: 3842
Joined: 2003-02-06 10:34am
Contact:

Post by Hamel »

Don't you need to know some form of C to get all you can out of being a game master in NWN?
"Right now we can tell you a report was filed by the family of a 12 year old boy yesterday afternoon alleging Mr. Michael Jackson of criminal activity. A search warrant has been filed and that search is currently taking place. Mr. Jackson has not been charged with any crime. We cannot specifically address the content of the police report as it is confidential information at the present time, however, we can confirm that Mr. Jackson forced the boy to listen to the Howard Stern show and watch the movie Private Parts over and over again."
User avatar
Ace Pace
Hardware Lover
Posts: 8456
Joined: 2002-07-07 03:04am
Location: Wasting time instead of money
Contact:

Post by Ace Pace »

Hamel wrote:Don't you need to know some form of C to get all you can out of being a game master in NWN?
no you have to learn a scripting language that makes morrowinds look easy, and that makes Ureal engine scripts look a like a childs play
Brotherhood of the Bear | HAB | Mess | SDnet archivist |
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

NW script IS a form of C. In fact it's a lot closer to C than JAVA is (there are actually data types and stuff, but only the high-level stuff).

But to DM a game you only need your magic DM wand and a ready-made module.
Image
User avatar
TrailerParkJawa
Sith Acolyte
Posts: 5850
Joined: 2002-07-04 11:49pm
Location: San Jose, California

Post by TrailerParkJawa »

Slartibartfast wrote:There's already a lot of standard chat, floating text when players are around. The trick would be to make NPCs talk with a slow pace, and avoid having many talk at the same time. Like, have somebody say something once a round or two.

When there are players around, the whole thing is a mess of text.
Yes, that makes good sense. Everytime I entered San Francisco in Fallout 3 they text of my party would all mess into one big pile that I could not read.
MEMBER of the Anti-PETA Anti-Facist LEAGUE
User avatar
Hotfoot
Avatar of Confusion
Posts: 5835
Joined: 2002-10-12 04:38pm
Location: Peace River: Badlands, Terra Nova Winter 1936
Contact:

Post by Hotfoot »

TrailerParkJawa wrote:Yes, that makes good sense. Everytime I entered San Francisco in Fallout 3 they text of my party would all mess into one big pile that I could not read.
You holding out something on us, buddy? :x

Get him! He has Fallout 3!!! *starts assembling a lynch mob*
Do not meddle in the affairs of insomniacs, for they are cranky and can do things to you while you sleep.
Image
The Realm of Confusion
"Every time you talk about Teal'c, I keep imagining Thor's ass. Thank you very much for that, you fucking fucker." -Marcao
SG-14: Because in some cases, "Recon" means "Blow up a fucking planet or die trying."
SilCore Wiki! Come take a look!
User avatar
TrailerParkJawa
Sith Acolyte
Posts: 5850
Joined: 2002-07-04 11:49pm
Location: San Jose, California

Post by TrailerParkJawa »

Hotfoot wrote:
TrailerParkJawa wrote:Yes, that makes good sense. Everytime I entered San Francisco in Fallout 3 they text of my party would all mess into one big pile that I could not read.
You holding out something on us, buddy? :x

Get him! He has Fallout 3!!! *starts assembling a lynch mob*
Did I say Fallout 3 ? .....hides box behind back....no I meant Fallout 2. Yes, thats it, Fallout 2. You know I really think Sadam Hussein was the Master. Oh look.....points to sky.....( sound of my feet running from mob. )
MEMBER of the Anti-PETA Anti-Facist LEAGUE
User avatar
The Yosemite Bear
Mostly Harmless Nutcase (Requiescat in Pace)
Posts: 35211
Joined: 2002-07-21 02:38am
Location: Dave's Not Here Man

Post by The Yosemite Bear »

First level PC walks into tavern

Half-orc glowers at him.
Friend of Half orc: My friend doesn't like you.
Image

The scariest folk song lyrics are "My Boy Grew up to be just like me" from cats in the cradle by Harry Chapin
User avatar
SPOOFE
Sith Devotee
Posts: 3174
Joined: 2002-07-03 07:34pm
Location: Woodland Hills, CA
Contact:

Post by SPOOFE »

I've always wanted to combine a very advanced Chatbot (some of them are pretty good at simulating intelligence) with an improved voice synthesizer to create an RPG with potentially thousands (or, if you're patient enough, millions) of hours worth of conversation, far more than you'd ever get around to actually participating in, and far more than you could get on a disc if you recorded it. I think that would significantly help the immersiveness of an RPG...
The Great and Malignant
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

The problem with that, if you managed to pull it off, would be that the players would end up hopelessly hooked up with the conversations and would completely forget about doing questy stuff :P

Not that it is a bad idea, but you end up making a totally different kind of game :)

I was thinking more along the lines of having NPCs initiate conversations just like a player would, perhaps using the same kind of "multiple-choice", only a bit more random, and mostly idle chit-chat. (they don't really get the same set of choices as a player - like quest-relevant stuff - instead, they get some randomly chosen one)
Image
User avatar
SPOOFE
Sith Devotee
Posts: 3174
Joined: 2002-07-03 07:34pm
Location: Woodland Hills, CA
Contact:

Post by SPOOFE »

The problem with that, if you managed to pull it off, would be that the players would end up hopelessly hooked up with the conversations and would completely forget about doing questy stuff
Nah, not at all. It'd probably be the number one thing they do for the first few hours, but after that they'll start to notice the limitations in the convo engine and it'll stop seeming so amazing anymore.

Similar thing happened when I first got Ultima 6, way back when. I'd spend hours hunting out all the different possible text strings you can make, at first, but pretty soon, it stopped seeming so special.
The Great and Malignant
Post Reply