Bomb: Difference between revisions

From MZXWiki
Jump to navigation Jump to search
(Created page with "{{ID |name = Bomb |id = 36 |robotic = Bomb |color = 8 |param = select |idchar = 11 |pushable = all |explode_bombed = y |effect_touch = FIXME }} Category:MegaZeux Category:MegaZeux built-in objects Category:Items A Bomb (ID 36, <code>Bomb</code>) is a built-in item. When touched by the Player, if the board setting Collect bombs is enabled, it will give the Player 1 LOBOMB or 1 HIBOMB. If Collect bombs is disabled, it...")
 
Line 27: Line 27:


=== Detonate effect ===
=== Detonate effect ===
When detonated by a [[Potion]] or [[Ring]], a low strength Bomb will become an [[Explosion]] with a radius of 3. A high strength or out-of-range Bomb will become an Explosion with a radius of 5.
When detonated by a [[Potion]] or [[Ring]], a low strength Bomb will become an [[Explosion]] with a radius of 2. A high strength or out-of-range Bomb will become an Explosion with a radius of 4.


== ZZT connection ==
== ZZT connection ==
In [[ZZT]], the equivalent element to Bomb is [[zzt:Bomb]]. ZZT Bombs can't be collected and are always lit when touched by the Player.
In [[ZZT]], the equivalent element to Bomb is [[zzt:Bomb]]. ZZT Bombs can't be collected and are always lit when touched by the Player.

Revision as of 02:23, 31 May 2025

Bomb # 36 Id36.png
Robotic name Bomb
Default color 8
Default param select
ID char 11 (#36)
Attributes Pushable: all
Explode when bombed
Effect when
touched
FIXME

A Bomb (ID 36, Bomb) is a built-in item. When touched by the Player, if the board setting Collect bombs is enabled, it will give the Player 1 LOBOMB or 1 HIBOMB. If Collect bombs is disabled, it will turn into a Lit Bomb.

Behavior

When a Bomb's parameter is p00, it is a low strength bomb, and when its parameter is p01, it is a high strength bomb. Out-of-range parameters behave differently depending on the context.

Collect bombs enabled

When collected by the Player, if the board setting Collect bombs is enabled, a low strength Bomb will play SFX 6 (Lo Bomb) and give 1 LOBOMBS. A high strength or out-of-range Bomb will play SFX 7 (Hi Bomb) and give 1 HIBOMBS.

Collect bombs disabled

When Collect bombs is disabled, collecting a low strength Bomb will turn it into a low strength Lit Bomb. Collecting a high strength Bomb will turn it into a high strength Lit Bomb. SFX 33 (Place Lo) will be played regardless of the Bomb type.

In this case, Bombs with out-of-range parameters are treated as low strength when parameter MODULO 2 is 0 and as high strength when parameter MODULO 2 is 1.

Detonate effect

When detonated by a Potion or Ring, a low strength Bomb will become an Explosion with a radius of 2. A high strength or out-of-range Bomb will become an Explosion with a radius of 4.

ZZT connection

In ZZT, the equivalent element to Bomb is zzt:Bomb. ZZT Bombs can't be collected and are always lit when touched by the Player.