1. help write game

Can someone help me? What i want to do is input a sentence and then let the computer check each word against a data base and then try to understand what is written by the passion of the words in the data base say 173 so the computer would know that 173 is [feed the cat]. So don’t let my cat go hungry .any help would be good

new topic     » topic index » view message » categorize

2. Re: help write game

Hi

What you want is a text parser (see the Zork series for examples, all freeware now).

a quick google search produced these

http://www.google.co.uk/search?source=ig&hl=en&rlz=&=&q=parsing+for+text+adventures&btnG=Google+Search&meta=lr%3D

and this in particular

http://www.malinche.net/howtextadventuregameswork.html

You will want to make extensive use of find and match, have a table of keywords, and make frequent use of "I'm sorry, I don't understand what you are asking of me."

A table of keywords is just a database, so you could substitute any of the database programs to maintain the file(s).

Chris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu