Alligned: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Created page with "'''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 oth...")
 
mNo edit summary
 
Line 1: Line 1:
{{DISPLAYTITLE:alligned}}
'''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.
'''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.



Latest revision as of 02:30, 8 February 2021

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.

@object
#cycle 1
:loop
#if alligned signal
/i#loop

:signal
"We're alligned!"
/i/i/i#loop