ringOfFire2 WIP
Module: ringOfFire2 — environment_ringofFire_test2.lua
What it does
Places a ring of explosions around the local player by stepping around the full 360-degree circle in fixed 10-degree increments, calling square:explode() on each unique tile at the given radius. Duplicate tiles are de-duplicated so each tile only explodes once. This always produces up to 36 explosion points per ring.
Trigger type
ringOfFire2
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
type |
string | required | "ringOfFire2" |
Must exactly match the module name. |
radius |
number | 15 |
Any positive integer | Distance in tiles from the player to place the explosion ring. The ring always steps every 10 degrees (up to 36 unique points). |
Examples
Default ring at radius 15, 10-degree steps
{ type="ringOfFire2" }
Wide ring at radius 25
{ type="ringOfFire2", radius=25 }
Tight ring close to the player
{ type="ringOfFire2", radius=6 }