blocked

From Wiki of ZZT
Revision as of 02:39, 8 February 2021 by Rbts (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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