Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
GRRR! help with a text quest engine
[b][red]This message was edited by Legacy at 2003-3-31 12:16:14[/red][/b][hr]
Hi, i'm trying to develope a text based quest game, and i just wrote the prototype in which i tried to execute th engine i had in mind.
i haven't develope a vocabulary based system yet, for now i'm just trying a few existing commands, "look at" "open door" "pick up key" etc.
my idea was to make a repeat loop for this (the loop ends once the player walks out of the room) that reads a string and then uses case like this
case string of
'look': 'blah blah';
'open door': 'blah blah';
i was astonished to find out that case doesn't support strings!
maybe that's obvious but i'm relatively new to this
baisicly what i wanted to know is since i don't feel like writing a thousand IF's is there another convenient methude like the CASE one?
also do you know of any old games, text quests in particular that were programmed with pascal that i can get my hands on their source code?
0 · ·