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.

Author
Message
Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 11th May 2007 21:47
Well, I wanted to try for the text adventure competition, but I don't like the idea of having to use "IF KEYPRESS()" commands.

How is this possible?

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
Vampiric
18
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 11th May 2007 21:57
How about the input command? (look it up in the help documents)

Computer says n00bed
Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 11th May 2007 22:02
DBPro has an actual Input command?

I thought it only added a couple more features. Now my mind keeps repeating "WTH!?".

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 11th May 2007 22:13 Edited at: 11th May 2007 22:13
Ermm (Edit is messed up), how do I use the input command.

Also, how do I get the program to only be able to print something ONCE?

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 11th May 2007 22:15
Person99,

There is aslo the entry$ buffer. Which is a good way to read what's happening at the kb and you could then parse and tokenize commands.

If your just looking to detect single key presses you can also check the scancode commands.

More than likely you'll be using an assortment of input, scancode, key commands, and entry$ buffers.

Person99
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Good question
Posted: 11th May 2007 22:30 Edited at: 11th May 2007 22:31
Can I have a few examples of a text game?
I just want to see which coding style I like best.

The Person99 awards go to: 1. Jack the Ripper for hardest crime scenes. 2. Peter Petrelli for most powers. 3. Superman for longest flight. 4. "The Doctor" for best time travel machine.
zenassem
21
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 11th May 2007 23:11
Search the codebase and code snippets board.

Here is one I found in the codebase

Login to post a reply

Server time is: 2024-11-25 17:24:21
Your offset time is: 2024-11-25 17:24:21