Energizer: Difference between revisions

From MZXWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 13: Line 13:
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]] [[Category:Items]]
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]] [[Category:Items]]


An [[Energizer]] (ID 33, <code>Energizer</code>) is a [[built-in]] [[Items|item]]. When touched by the [[Player]], the Player is granted a brief period of invincibility to most sources of damage. Invincibility does not protect the Player from modifying the [[HEALTHS|HEALTH]] counter directly with [[Robotic]]. This invincibility lasts for 113 cycles.
[[Energizer]] (ID 33, <code>Energizer</code>) is a [[built-in]] [[Items|item]]. When touched by the [[Player]], the Player is granted a brief period of invincibility to most sources of damage. Invincibility does not protect the Player from modifying the [[HEALTHS|HEALTH]] counter directly with [[Robotic]]. This invincibility lasts for 113 cycles.


When collected, the Energizer plays [[SFX]] 16 (Invinco1), displays the [[Message Line|message]] "Energize!", sends all [[Robot|Robots]] to the built-in label <code>(#)INVINCO</code>, sets [[INVINCO]] to 113, becomes a [[Space]], and finally moves the Player on top of the new Space.
When collected, the Energizer plays [[SFX]] 16 (Invinco1), displays the [[Message Line|message]] "Energize!", sends all [[Robot|Robots]] to the built-in label <code>(#)INVINCO</code>, sets [[INVINCO]] to 113, becomes a [[Space]], and finally moves the Player on top of the new Space.

Revision as of 10:17, 31 May 2025

Energizer # 33 Id33.png
Robotic name Energizer
Default color 15
Default param 0
ID char 7 (#33)
ID anim. colors Energizer colors
(#176-#183)
Attributes Active
Pushable: all
Effect when
touched
set INVINCO to 113, overriding previous state; become Space, move Player

Energizer (ID 33, Energizer) is a built-in item. When touched by the Player, the Player is granted a brief period of invincibility to most sources of damage. Invincibility does not protect the Player from modifying the HEALTH counter directly with Robotic. This invincibility lasts for 113 cycles.

When collected, the Energizer plays SFX 16 (Invinco1), displays the message "Energize!", sends all Robots to the built-in label (#)INVINCO, sets INVINCO to 113, becomes a Space, and finally moves the Player on top of the new Space.

Energizers update their parameter every cycle to (parameter + 1) MODULO 8, which animates their display color (ID animation index parameter + 176). The animation color overrides whatever board color an Energizer currently has.

ZZT connection

In ZZT, the equivalent element to Energizer is zzt:Energizer.