Ticket #99 (assigned defect)

Opened 3 years ago

Last modified 3 years ago

Cannot #change an empty

Reported by: Hangman Owned by: sam
Priority: minor Milestone: 3.2.0
Component: ZZT-OOP Interpreter Version: 3.1.0
Keywords: #change, empty Cc:
Game: Board:
Platform: Windows

Description

The ZZT-OOP command #change does not work in DreamZZT if the object to change is an empty.

Attachments

Change History

Changed 3 years ago by Hangman

I've got this game that uses a lot of forest tiles, and in ZZT forest tiles turn into empty when they're stepped on. I personally think this is ugly, so I use this code to turn the empties into fakes, emulating forests in SuperZZT:

#cycle 1 #if any empty #change empty fake #restart

This works in ZZT - the empties change into dark green fakes - but for some reason DreamZZT seems to not want to do anything with empties…

Changed 3 years ago by sam

  • status changed from new to assigned

The issue is that empties don't have the forest colors, so when they turn into a fake they're just turning into a black-on-black fake.

I will adjust it so fakes created by forest blocks keep their colors.

Changed 3 years ago by Hangman

I kinda guessed that was the problem. Actually, ZZT keeps the background colour of whatever items were changed to empties, it just changes the foreground to black. So you can use the code I mentioned to fill empties created by picking up ammo and gems as well.

Add/Change #99 (Cannot #change an empty)

Author



Action
as assigned
 
Note: See TracTickets for help on using tickets.