Explosion: Difference between revisions

From MZXWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
|robotic = Explosion
|robotic = Explosion
|color = <code>cEF</code> (white on yellow)
|color = <code>cEF</code> (white on yellow)
|param = <code>p20</code><br>'''Stage''': 1<br>'''Size''': 2
|param = <code>p20 (select)</code><br>'''Stage''': 1<br>'''Size''': 2
|idchar = 177
|idchar = 177
|iddamage = 5 (#365)
|iddamage = 5 (#365)
Line 13: Line 13:
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]] [[Category:Elements]]
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]] [[Category:Elements]]


[[Explosion]] is a [[MegaZeux]] [[built-in]] [[Elements|element]]. An [[Explosion]] spreads to adjacent positions on the board up to a number of times indicated by its '''Size''' [[parameter]], destroying or damaging various things in its path. It then decays until its final '''Stage''', becoming a [[Space]], [[Floor]], or [[Fire]].
[[Explosion]] (ID 38, <code>Explosion</code>) is a [[MegaZeux]] [[built-in]] [[Elements|element]]. An [[Explosion]] spreads to adjacent positions on the board up to a number of times indicated by its '''Size''' [[parameter]], destroying or damaging various things in its path. It then decays until its final '''Stage''', becoming a [[Space]], [[Floor]], or [[Fire]].


Explosions are created by the detonation of a [[Bomb]], [[Lit Bomb]], [[Eye]], [[Mine]], or [[Missile]], by [[Potion#Effects|Potion/Ring effects]], or by [[Robotic]] commands.
Explosions are created by the detonation of a [[Bomb]], [[Lit Bomb]], [[Eye]], [[Mine]], or [[Missile]], by [[Potion#Effects|Potion/Ring effects]], or by [[Robotic]] commands.
Line 28: Line 28:
* If the position is occupied by the [[Player]], the Player takes damage.
* If the position is occupied by the [[Player]], the Player takes damage.


Explosions of '''Stage''' 4 turn into, based on the [[board]] [[Explosions to...]] setting, either [[Space]] (preserving whatever was under the explosion), [[Floor]], or [[Fire]]. If the thing beneath the explosion has the "Entrance" attribute, it will be left alone.
Explosions of '''Stage''' 4 turn into, based on the [[board]] [[Explosions to...]] setting, either [[Space]] (preserving whatever was under the explosion), [[Floor]], or [[Fire]]. If the thing beneath the explosion has the [[Entrance]] attribute or is [[Still Water]], [[N Water]], [[S Water]], [[E Water]], [[W Water]], [[Ice]], [[Lava]], or [[Goop]], it will not be overwritten.
   
   
Explosions of other stages increment their '''Stage''' by 1.
Explosions of other stages increment their '''Stage''' by 1.

Latest revision as of 10:10, 1 June 2025

Explosion # 38 Id38.png
Robotic name Explosion
Default color cEF (white on yellow)
Default param p20 (select)
Stage: 1
Size: 2
ID char 177 (#38)
ID damage 5 (#365)
ID anim. colors Explosion Stage colors (#184-#187)
Attributes Active
Hurt player on touch

Explosion (ID 38, Explosion) is a MegaZeux built-in element. An Explosion spreads to adjacent positions on the board up to a number of times indicated by its Size parameter, destroying or damaging various things in its path. It then decays until its final Stage, becoming a Space, Floor, or Fire.

Explosions are created by the detonation of a Bomb, Lit Bomb, Eye, Mine, or Missile, by Potion/Ring effects, or by Robotic commands.

Behavior

Explosions of Stage 1 with a Size greater than 1 will decrement their Size by 1 and then spread to all four adjacent positions:

  • If the position is occupied by a thing with the "Break when bombed" attribute or by a thing with the "Floor" attribute, an Explosion of Stage 1 with the new Size will be placed at the new location, destroying any non-floor at that position.
  • If the position is occupied by a non-invincible Slime Blob or Ghost, or a Dragon with 1 Hit point remaining, the same will occur.
  • If the position is occupied by a thing with the "Explode when bombed" attribute, an Explosion of Stage 1 and Size 4 will be placed at the new location.
  • If the position is occupied by a Mine, an Explosion of Stage 1 and inheriting the original Size of the Mine will be placed at the new location.
  • If the position is occupied by a Dragon with more than 1 Hit point, the Dragon will take 1 point of damage. This does not play the enemy damaged SFX.
  • If the position is occupied by a Robot, it receives the (#)BOMBED label.
  • If the position is occupied by the Player, the Player takes damage.

Explosions of Stage 4 turn into, based on the board Explosions to... setting, either Space (preserving whatever was under the explosion), Floor, or Fire. If the thing beneath the explosion has the Entrance attribute or is Still Water, N Water, S Water, E Water, W Water, Ice, Lava, or Goop, it will not be overwritten.

Explosions of other stages increment their Stage by 1.

Parameter

pXX → xxxx yyyy
      |||| ++++- Stage: 0-3 = 1 through 4,
      ||||              4-15 = undefined
      ||||
      ++++------ Size: 0-15 = 0 through 15

Unintended behavior

Explosions with Stages 5 and up will derive colors from the ID animation chars for Door (#188-#189), CWRotate (#190-#193), CCWRotate (#194-#197), and Open Door (#198-#199). Stage 16 will overflow back to Stage 1 with a Size increased by 1.