Ten Liner Cave

Post Reply
User avatar
mz-80a
Posts: 170
Joined: Thu Jan 25, 2018 10:46 am
Location: Devon, UK
Contact:

Ten Liner Cave

Post by mz-80a » Mon Jul 01, 2019 10:16 am

I saw this video recently:

https://www.youtube.com/watch?v=_d2g5BXdyfU

"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):
TENLINER CAVE.zip
(590 Bytes) Downloaded 54 times
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/

User avatar
mz-80a
Posts: 170
Joined: Thu Jan 25, 2018 10:46 am
Location: Devon, UK
Contact:

Re: Ten Liner Cave

Post by mz-80a » Mon Jul 01, 2019 10:22 am

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.
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/

User avatar
TextAdventureKing
Posts: 50
Joined: Sat Jun 23, 2018 4:42 pm
Location: England, UK
Contact:

Re: Ten Liner Cave

Post by TextAdventureKing » Sun Sep 01, 2019 5:00 pm

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.
Sharp MZ Developer, Global Moderator and lover of this tiny MZ-80K.
Projects:
  • MZ-80K Text Adventure Game
  • MZ-80K Quiz Game with multiple "quiz packs"
  • DSi Homebrew (not related to Sharp, this is nintendo)

User avatar
mz-80a
Posts: 170
Joined: Thu Jan 25, 2018 10:46 am
Location: Devon, UK
Contact:

Re: Ten Liner Cave

Post by mz-80a » Wed Sep 04, 2019 10:26 am

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.
MZ-80A Secrets
https://mz-80a.com/

Sharpworks (Sharp MZ homebrew)
http://mz-sharpworks.co.uk/

Post Reply