ringOfFire1 WIP
Module: ringOfFire1 — environment_ringofFire_test1.lua
What it does
Places a ring of explosions around the local player by distributing a configurable number of evenly-spaced points around a circle of a given radius, then calling square:explode() on each unique tile. The angular spacing between explosion points is 360 / points degrees. Duplicate tiles (when radius is small relative to point count) are de-duplicated so each tile only explodes once.
Trigger type
ringOfFire1
Parameters
| Parameter | Type | Default | Valid Values | Description |
|---|---|---|---|---|
type |
string | required | "ringOfFire1" |
Must exactly match the module name. |
radius |
number | 10 |
Any positive integer | Distance in tiles from the player to place the explosion ring. |
points |
number | 15 |
Any positive integer (1+) | Number of evenly-spaced explosion points around the circle. Higher values create a denser ring. |
Examples
Default ring: radius 10, 15 explosion points
{ type="ringOfFire1" }
Large dense ring with 36 points (one every 10 degrees)
{ type="ringOfFire1", radius=20, points=36 }
Small close ring, sparse points
{ type="ringOfFire1", radius=5, points=8 }