energized

From Wiki of ZZT
Jump to navigation Jump to search

energized is an internal object flag in ZZT-OOP. This flag is true when the player has temporary invincibility from having touched an Energizer.

Usage Example

This object shoots randomly when the player is energized:

@object
#cycle 1

:loop
#if energized shoot rnd
/i#loop