Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:58 13 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2 "ZILish"  v0.1

Author Message
johngill
Newbie

Joined: 22/09/2020
Location: United Kingdom
Posts: 38
Posted: 04:40pm 16 Dec 2020
Copy link to clipboard 
Print this post

Hi all,

I thought I'd put out the first draft version of my ZILish text adventure interpreter for you good folks to play with and see what you think.

Note this is NOT intended to ever be a full implementation of ZIL (Zork Implementation Language), it's just a highly simplified version that I'm cobbling together based LOOSELY on ZIL, so I (and anyone else so inclined) can write text adventure games on the CMM2.

There are three files included in the zip:
adventure parser.zip

One is the .bas file - which is the actual interpreter, and the other two are .txt files: actions.txt and adventure.txt. Both of these must exist in the same directory as the interpreter for the thing to work. These two text files together make up everything needed for a complete text adventure game. Run the .bas file, and it will load up these two .txt files and run the game.

At the moment, I've only made a very basic adventure game to test the interpreter, with just a few rooms, objects and verbs to show how it all goes together.

Ultimately, my intention is to have this interpreter handle VERB / OBJECT1 / OBJECT2 type instructions from the player (eg, tie the rope to the handle - VERB=tie ; OBJECT1=rope ; OBJECT2=handle) But note this is only a very early draft!! - all you can do at the moment is move around from room to room ("west" "east" etc) and pick things up and drop them ("get lamp", "drop key").

I've fairly thoroughly commented the two text files to show how they work (I recommend reading adventure.txt first, then the comments in actions.txt might make a bit more sense) - if enough nutters are interested in this thing I'll put together a proper user guide to show how to make a ZILish text adventure from scratch.

Have fun. Comments/suggestions welcome!
 
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1639
Posted: 09:07pm 16 Dec 2020
Copy link to clipboard 
Print this post

You can add me to your list of 'nutters'. While I AM working on thwill's Scott Adams adventure interpreter and am interested in playing with the Z-MIM interpreter, I would like to write small text adventures for the youngsters and there is no convenient way of doing so for those platforms (that I know of).

I'll try to digest your text files later.

Thanks
Bill
Keep safe. Live long and prosper.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025