Archived

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

Andrew Nguyen

Text Adventure

Recommended Posts

I don''t get it. How did you gods create text based games before c++? (Or OOP at that). It seems so tedious to write the string of the room desc EVERY time, create arrays that reference other arrays and so on. Heck, HOW DID YOU FARE in doing so without ->? You guys are gods if you can explain how you didn''t go crazy from writing these.

Share this post


Link to post
Share on other sites
quote:
Original post by Andrew Nguyen
I don''t get it. How did you gods create text based games before c++? (Or OOP at that). It seems so tedious to write the string of the room desc EVERY time, create arrays that reference other arrays and so on. Heck, HOW DID YOU FARE in doing so without ->?
You guys are gods if you can explain how you didn''t go crazy from writing these.


I for one, didn''t know there was a better way.

Share this post


Link to post
Share on other sites
gah!! gah!! heheheheheheh :-))))
not crazy!! huh?? :-))) hehehehehe :-))) hahahahaha
AAAHHHHHH!!!!!!! oh..my!!!!
hehe:-)

;-)

I actually never completed my text adventure.
I tried to program it in commodore basic v2.0, on a C64.
But the c64 was already 10 years old then, and suddenly died.
I got an *old* pc then, but never started to program a text adventure again...


Share this post


Link to post
Share on other sites
quote:
Original post by UnshavenBastard
I actually never completed my text adventure.
I tried to program it in commodore basic v2.0, on a C64.
But the c64 was already 10 years old then, and suddenly died.
I got an *old* pc then, but never started to program a text adventure again...

10 print "You find yourself standing on a beach, standing next to a tree."
20 print "There is no one around. What shall you do?"
30 print "N S E"
40 input c
41 if c = "n" goto 100
42 if c = "s" goto 200
43 if c = "e" goto 300
45 print "Not an option. Try again."
46 goto 10
100 print "You walk to the north."
101 goto 110
110 print "There, you find a man sitting on a towel"
...

heh heh... I started doing that when I was 8.


---email--- Tok ----surf----
~The Feature Creep of the Family~

here

Share this post


Link to post
Share on other sites
For a much more slick and simple console game written in nice C++, go to
www.geocities.com/promitr/DrugWars.zip

Anywayz, i was doing that QBASIC type stuff long ago. Real neat when you''re only 7 or 8, but i tell ya, DX and OGL sure that stuff.

-----------------------------
The sad thing about artificial intelligence is that it lacks artifice and therefore intelligence.

Share this post


Link to post
Share on other sites
That''s weird, because that''s what my friend and I did for programming everything. Ah, the days before we knew about data structures (or linked lists, though the two go hand in hand), we''d have like 10 parallel arrays for everything...


int monster_strength[max_monsters];
int monster_health[max_monsters];
etc.


Ah, the painful days of yore. Compliments to the guy that did it in a batch file, though, that''s gotta take the cake...

-----------------
The Goblin (madgob@aol.com)
-----------------
"Before critisizing somebody, walk a mile in their shoes. That way, when you do critisize them, not only will you be a mile away, but you''ll also have their shoes!"

Share this post


Link to post
Share on other sites
Thats right, there are more dos commands than there should be hehe. You can create games in batch, i also did that. But only text ^^. Dos is basic but i think dos has less functions.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Infocom used a custom scripting language called Inform to write their text adventures in. It looks quite clean and is OOP but it can be quite complex.

Search for it and you should find some tutorials about how to program in it and maybe even some compilers/interpreters.

Share this post


Link to post
Share on other sites


Well, no, they didn''t use Inform. Inform is a compiler written
by "reverse-engineers". Anyway, it''s THE language of choice
for text-adventures, since the games can be played on all
platforms. I wouldn''t be surprised if you can play Zork
on your neighbour''s VCR, and his dog.

Here it is:

http://www.gnelson.demon.co.uk/inform/index.html


(OT: how do you insert proper link tags here ?)


Live jolly,
llyod

Share this post


Link to post
Share on other sites