Page 1 of 1

Ten Liner Cave

Posted: Mon Jul 01, 2019 10:16 am
by mz-80a
I saw this video recently:

"Tiny Text Adventure: From ZX81 to VIC-20 to Ultimate 64" by 8-Bit Show And Tell

I thought it'd be cool to port the game to the MZ BASIC as well. I tried but failed. I've got it into ten lines but had to split certain mathematical functions between lines due to the 79 character limit of the MZ's BASIC. I've attached the file so you can see what happens. Every move it says "CANNOT DO" regardless whether it can do or can't do what you're asking it to. And the map doesn't seem to work, except moving from the initial cave location north to the hall. Anyone have any ideas what's wrong?

Here's the file (for SA-5510):
(590 Bytes) Downloaded 118 times

Re: Ten Liner Cave

Posted: Mon Jul 01, 2019 10:22 am
by mz-80a
I should add that I ported the VIC-20 version of the code as it's much more similar to the MZ than the Sinclair BASIC.

Re: Ten Liner Cave

Posted: Sun Sep 01, 2019 5:00 pm
by TextAdventureKing
So basically, this is a text adventure that automatically generates itself each time? This seems very interesting. If I look at the description correctly there is a port of TLC to Zork Implementation Language (by Infocom) on Ultimate 64. So if we port the Zork Implementation Language to Machine Code or BASIC then we can just run the same program from the Ultimate 64 on the MZ.

EDIT: They put the Room Number, Chest Status and Inventory IN THE SAME VARIABLE!!!!!

Breaking it down for you, The variable by default is 100

1 - the first number is the Room Number
0 - the second number is the Chest Status (opened or closed)
0 - the third number is the Inventory number (so a limit of 9 items, 10 if you count nothing as an item)

EDIT 2: It's not a generator but I've watched the whole video and seen it.

Re: Ten Liner Cave

Posted: Wed Sep 04, 2019 10:26 am
by mz-80a
Yeah would be a cool project to do to transfer the ZIL to MZ. Also to port the Scott Adams adventures to MZ as well.

It'd be nice to get the BASIC SA-1510 version working. I think the confusion is probably coming from where you have to use * instead of AND and + instead of OR. Possibly I messed up also when translating the minus signs because I think the VIC-20 uses -1 to indicate TRUE. But I think I tested that at the time, can't quite remember now but I think the MZ uses -1 for TRUE also.