Posted: 1st Jan 2003 11:23
Hi all,

This is a cool text game.
Here is it:

+ Code Snippet
input "Enter your name: " ;name$
print
print "Hi, " ,name$, ", what do you?"
input ;do$
print
print "Oh."
Posted: 1st Jan 2003 23:07
Comon man- dont do that. Try something called DEVELOPING

RPGamer
Posted: 18th Jan 2003 7:51
I can do 1 better. It's got a real thirst for knowlege.

print "Teach me something"
do
input b$
print "Wow, teach me more"
loop
Posted: 18th Jan 2003 16:01
no offence
you are a very sad person
Posted: 19th Jan 2003 3:32
Ahhh... the good old text games. I used to code tons of them in QBasic, when I was younger

Maybe we should make our own Infocom parser in DarkBasic
Posted: 23rd Jan 2003 21:04
Reece, your code is common knowledge, I've made something like that before that used arrays to determine outputs. Some suggestions: use upper$() to make sure you get what the user is typing, strings are case sensitive. Make sure you spell your intended inputs properly, you aren't as bad as some people, but lawyers ('loya') and chefs won't get a response.

It's quite hard to determine what the user is saying and produce a reasonable response every time. You could use augmenting external arrays to hold resonses, but that would be quite hard.

Gunloader, how good were your parsers? Mine only ever detected two word sentences, verb and object.
Posted: 24th Jan 2003 4:36
lmao ... i have a feeling this was a joke post
Posted: 2nd Feb 2003 18:52
Reece, I tried your code but every time my system told me that DarkBASIC had performed an illegal operation and will be shut down.