From Wiki of ZZT
Revision as of 02:30, 8 February 2021 by Rbts (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

alligned is an internal object flag in ZZT-OOP. This flag is true for a given object whenever it is aligned horizontally or vertically with the player, and false otherwise.

Note that the flag name has two Ls: the correct spelling of the word aligned will check for a user-set flag instead.

Usage Example

This object prints a message when aligned with the player.

#cycle 1
#if alligned signal

"We're alligned!"