Blocked: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:blocked}} '''blocked''' is an internal object flag in ZZT-OOP. This flag is true for an object if there is any obstruction in the provided direction, even i...")
 
(No difference)

Latest revision as of 02:39, 8 February 2021

blocked is an internal object flag in ZZT-OOP. This flag is true for an object if there is any obstruction in the provided direction, even if the object is capable of pushing it out of the way.

Usage Example

This object changes its char graphic depending on whether it's blocked to the east.

@object
#cycle 1

:loop
#if blocked e char 2
#if not blocked e char 1
/i#loop