• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

drtremmie

'intelligent' conversations with npc's

9 posts in this topic

Well, I havent done much work like this before, but you could check the input string for defining combinations of letters, e.g.
check string for 'have' and 'candle' would be good, but it would not solve all cases, because the user could put
'do I have a candle in my ear?'

but hopefully you could find a way around the problem...

0

Share this post


Link to post
Share on other sites
I can't offer any advice, just a word of warning -

NLP routines, even at their best, are FAR from perfect.

I wouldn't be concerned so much with the execution speed of NLPs (presumeably there's nothing else going on in the game when the player's talking to an NPC?)... I'd be more concerned with the *development* speed of the routines.

Off the top of my head this doesn't sound like it'd be worth the cost. I'd seriously reconsider using NLP... there's far better things to spend time developing.

Just MHO.

Mason McCuskey
Spin Studios
www.spin-studios.com

0

Share this post


Link to post
Share on other sites
i am hoping to use the intelligent conversation routines to create depth to the game. i really feel that this is of the utmost importance.

good thing that not much else will be hitting the processor when these routines are taking place

did i forget to mention that i want each npc to also have a pluggable personality module? this personality module could (and will) effect the NLP routines (someone who hates people will certainly be less wordy).

im investigating doing this the "right way" in the hope that in that process i will find middle point that will offer enough functionality to make it into a version one with the plan being to improve upon this part in a version 2 release. with so many parts to a game, it is hard to get all of it up to par (in reference to the original design) in one release. some parts will have to suffer a featurectomy...this maybe (hopefully) will be one of those parts that gets flagged as an "improve in version 2".

i would love to see the following:

PC: "Good morning. I was hoping to ask you a question."

NPC: "Morning?! It is 11:28pm, but anyhow, what did you want to ask me?"

PC: "Do you have any candles for sale?"

NPC: "Yes, but we are closed, it is 11:30 at night afterall. Try coming back again tommorrow morning between 8:00 and 5:00."

long way to that...idea of context within conversation and humour. version 2 maybe

this brings up another question:
when working on a game with so many components, how does one prioritise and organise so as to keep from getting drowned in all of the details? project plan, aye...but that will not make approaching the game any easier. so far ive been able to decide that the graphics engine will come near the end. that leaves quite a bit of things between.

cheers,
drtremmie

0

Share this post


Link to post
Share on other sites
Okay, ignore people who say it can't be done or isn't worth doing.
Always aim to take games to the next step, progression is more important than the possibility of failure.

Okay, pep-talk over.

Personally I see the problem being more in the NL generation than the parsing. With parsing you can get the gist of the conversation from selected words and without full grammar. Bascially I think you have to because otherwise you'd have to deal with all the different grammatical systems everyone in the English speaking world(and beyond)uses.
If someone asks about the status of a banana in their ear then, unless they're playing sim-fetish, they're not taking it seriously.

So, language generation, well you can have a series of templates, fairly generic, to express different facts. Describing objects or their costs or their current actions (if an object was, say, an attacking orc) limited by your willingness to type in endless(ish) sentence templates.
Then you could have sets of templates for different NPC groups. Representing the grammar of different social groups.

So what was the method you were considering?

0

Share this post


Link to post
Share on other sites
I love the idea, and would love to make one myself, but I do not have the drive to go quite that far.

Here is a way that will work very well I believe, unluckly it is very extensive on the programming end.

Basicly we learn how to structure sentences by following a bunch of rules, I believe that most grammar checkers will destructure sentences based on these rules. If I am not incorrect you could program an algorithm to detructure a sentence into the primary noun/s, the primary verb/s and the adj, adv, and prepositions. Then take these, and connect them with the item they describe as you go. This may allow you to deal with more complex sentence structures.

I want to buy a hat.

is changed to

Subject:player
Action: wants
What: hat
Which: unknown
How: buy

change to "I want to buy your hat.", and the which: would be NPC's

( I'd advise talking to someone that programs grammar checkers or such about this type of algorithm, because presently I believe this is the furthest area of computer science in the idea of identifing what someone is trying to say.)

I hope this helps with the first part.

As to putting in different styles of talking, and reactions to what is said. It may be possible to do this to some degree, but beyond having a few types of plugins I believe it would be far too much coding and that it would slow the game down tremendously to be sending every variable in all the talking through an improperly designed plugin.

Sorry but I believe that part is completely beyond me.

------------------
Tell the truth and you will never fear someone will figure out you lied.
<<I'm sure I'm quoting someone out there, wish I knew who!>>
David Abresch

0

Share this post


Link to post
Share on other sites
My preferred way of doing this would be an inversed parser, there is a good article on it from Chris Crawford here:

http://www.erasmatazz.com/library/JCGD_Volume_6/Inverse_Parser.html

(Actually, this article is really just a good overview for the topic, but implementation would be heavily dependent on your goals and interface anyway)

Good luck.

-Geoff

[This message has been edited by ghowland (edited September 23, 1999).]

0

Share this post


Link to post
Share on other sites
I was thinking about this.

Couldn't you do some kind of matching system, where the NPCs are loaded up with strings and responses:

q:
"Someone would like to buy a candle"
a:
'Here is your candle'

The npc text parser would pack this down into some code you would include, but essentially it would only pack

q:"someone buy N candle"
a:"Here [is/are] your candle[s]"

Then when someone types in

"I would like to buy your candle"
"I would like to buy 2 candles"
"I would like to buy a candle from you"
"I would like to buy the candle"

You parse out the 'unimportant' words:

I buy a/your/the/N candle[s]

further parsing would equate a/your/the to 1, and strip off the [s] from candles.

Then you look for

I buy N candle

do a reverse lookup so you first match for candle, then N, then buy, and you filter out

"A would like to have a candle buy my ear"
"Buy a candle from me"
"buy a candle from the man" // its a conversation, not a text adventure game
"Put the candle buy from you in my ear"

and such.

anyways.. symbol tables etc.

Some of the scripting tutorials might give you a good idea on implementing symbol tables.

[This message has been edited by Sphet (edited September 23, 1999).]

0

Share this post


Link to post
Share on other sites
An inversed parser would actually remove all these problems because you are feeding the user their choices. If you dont want them to use the candle with their ear, you just dont give them that as an option.

It eliminates players having to try to guess proper commands as well, as they can all be laid out in front of them through a list (or icons).

-Geoff

0

Share this post


Link to post
Share on other sites
i am working on a game which will require that players be able to have conversations with computer controller players via text.

i am looking to make this portion of the game rather powerful (in other words, i would like to allow the input to be simple: "Have Candle" and as complex: "Do you have any candles for sale?").

should i be looking at NLP or something else?
i am afraid that NLP routines in the game will be too resource heavy, however i would rather the immersiveness of conversations with NPCs to be deep, so i would be willing to sacrifice fancy graphics for this functionality.

has anyone else worked with this "conversational functionality" before?

cheers,
drtremmie

0

Share this post


Link to post
Share on other sites
Now that we are talking boolean tables and relations, I feel an urge to do a bit of advertising (feel free to skip ):

I happen to be working at a company that produce software to handle extremely large logic systems VERY fast and higly compressed (we're talking billions of combinations represented by a database in the <100K range). There's a few very small (and old) examples on our web-site www.array.dk (Yes I know, it's not pretty - a new one with larger examples will be available soon )...

The system essentially consist of a "compiler" that analyzes the complete set of variables and relations and generate a run-time database that:

1) Is guaranteed to be complete
2) Immediately gives ALL consequences to any stimuli (table-lookup speed).
3) Allow rollback to alternative solutions in case of contradiction (I.e. If you want to apply a selection that is illegal according to the current system state, the run-time system will give a complete list of the changes needed to allow the selection).
4) + a ton of other features

And a run-time part (Java or DLL) that give access to the compiled data base.

The system is defined in a simple declarative text format. Declaring each variable (of types: int, bool, string or interval + structures of these). And the relations (by equations or tables).

If you want to know more, feel free to contact us !!

Sorry for the shameless plug (No I'm not )

/NJ

0

Share this post


Link to post
Share on other sites