Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / The text games

Author
Message
CodeBase3D
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location:
Posted: 1st Jan 2003 11:23
Hi all,

This is a cool text game.
Here is it:

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 1st Jan 2003 23:07
Comon man- dont do that. Try something called DEVELOPING

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 18th Jan 2003 07: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

Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 18th Jan 2003 16:01
no offence
you are a very sad person

I have a word of advice...
..don't piss on an electric fence!
Gunloader
21
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Germany
Posted: 19th Jan 2003 03: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

+++Cpp+RealBasic+VisualBasic+QBasic+ABasic+REXX+JAVA+PHP+MySQL+Assembler+DarkBasic+GameMakerPro+++<>P4 2,53GHZ<>512MB RAM<>RADEON 9700 TX<>
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
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.
Shadow Robert
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 24th Jan 2003 04:36
lmao ... i have a feeling this was a joke post

Anata aru kowagaru no watashi!
adamsmasher23
21
Years of Service
User Offline
Joined: 31st Jan 2003
Location: United States
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.

Whatever I did it wasn't me!

Login to post a reply

Server time is: 2024-11-24 07:25:38
Your offset time is: 2024-11-24 07:25:38