Lightning Bolts
Animated horizontal or top-down lightning bolts with branching and flash synchronization.
Environmental filters change the Scene surface or atmosphere. They can cover the full Scene, be limited to Regions, and be moved within the effect stack.
| Reference | Value |
|---|---|
| Package | FXMaster+ |
| Effect kind | Filter effect |
| Category | Environmental |
| Runtime type | lightningbolts |
| Exposed parameters | 31 |
Important controls
Section titled “Important controls”- Lightning Mode: Selects whether the effect creates horizontal bolts, top-down strikes, or both supported presentations.
- Trigger Chance: Controls the chance that a scheduled lightning event actually produces a visible bolt.
- Period: Sets the approximate time between automatic lightning events. Higher values create longer gaps.
- Branchiness: Controls how many secondary branches split away from the main bolt.
- Sync with Lightning Flash: Triggers the core Lightning flash at the same time as a bolt so the scene brightens with the strike.
- Audio Aware: Allows bass-heavy audio peaks to trigger Lightning Bolts. Use Audio Channels to choose what it listens to and Audio Bass Threshold to control sensitivity.
Setup notes
Section titled “Setup notes”- Lightning Mode selects the bolt presentation; Top Down controls become available for overhead strikes.
- Trigger Chance and Period control occurrence, while Line Width, Branchiness, Bolt Length, Jitter, Glow, and Brightness shape each bolt.
- Sync with Lightning Flash coordinates the bolt with the core Lightning filter.
Bundled preset usage
Section titled “Bundled preset usage”| Preset | API name | Availability | Variants |
|---|---|---|---|
| Hurricane | hurricane |
FXMaster+ | Normal, Top Down |
| Thunderstorm | thunderstorm |
FXMaster+ | Normal, Top Down |
Parameters
Section titled “Parameters”The table combines the settings available for this effect in Scene and Region contexts. Scene-only and Region-only badges identify controls limited to one context. Hover or focus an info button to see what the parameter changes on the canvas. Select it to keep the card open. Each card also includes the default, range or choices, context, availability, API key, and control type.
lightningbolts API typeHover or focus an info button to see what the parameter changes on the canvas. Select it to keep the card open. Context badges identify Scene-only and Region-only controls; unbadged parameters are available in both. Hover or focus an availability condition to highlight the parameter that controls it.
| Parameter | Control | Default | Range or choices | Availability |
|---|---|---|---|---|
Below Tokens belowTokens | checkbox | Off | — | Always |
Below Tiles belowTiles | checkbox | Off | — | Always |
Below Foreground belowForeground | checkbox | Off | — | Always |
Levels levelsScene only | scene-levels | All Levels | — | Always |
Tint color | color | #d6f2ff (enabled) | — | Always |
Sound FX soundFxEnabled | checkbox | Off | — | Always |
Sound FX Sounds soundFxManualSoundIds | multi-select | Rule default | — | |
Lightning Mode mode | multi-select | Horizontal | Horizontal, Top Down, Mixed | Always |
Sync with Lightning Flash syncFlash | checkbox | On | — | Always |
Trigger Chance triggerChance | range | 1 | 0–1 · step 0.05 | |
Variable Bolt Count topDownBoltsVariable | checkbox | On | — | |
Line Width thickness | range | 2.2 | 1–5 · step 0.1 | |
Top Down Scale topDownScale | range | 0.15 | 0.1–1 · step 0.01 | |
Top Down Bolts topDownBolts | range | 5 | 1–5 · step 1 | |
Branchiness branches | range | 1 | 0–1 · step 0.01 | Always |
Bolt Length length | range | 0.5 | 0.1–1 · step 0.01 | Always |
Speed speed | range | 0.28 | 0.01–1 · step 0.01 | Always |
Jitter jitter | range | 0.65 | 0.05–1 · step 0.01 | Always |
Brightness brightness | range | 1.3 | 0–4 · step 0.1 | Always |
Opacity opacity | range | 1 | 0–1 · step 0.05 | Always |
Glow glow | range | 0.65 | 0–1 · step 0.01 | Always |
Period frequency | range | 5000 | 100–30000 · step 100 | |
Duration spark_duration | range | 520 | 80–5000 · step 5 | Always |
Audio Aware audioAware | checkbox | Off | — | Always |
Audio Channels audioChannels | multi-select | Environment | Music, Environment, Interface | |
Audio Bass Threshold audioBassThreshold | range | 0.75 | 0–1 · step 0.01 | |
Directional Movement directionalMovement | checkbox | Off | — | |
Direction direction | range | 0 | 0–360 · step 5 | |
Darkness Activation darknessActivationEnabled | checkbox | Off | — | Always |
Darkness Activation Range darknessActivationRange | range-dual | {"min":0,"max":1} | 0–1 · step 0.01 | |
Edge Fade % fadePercentRegion only | range | 0 | 0–1 · step 0.01 | Always |
Direct-effect API example
Section titled “Direct-effect API example”The Direct Effect API creates a separate row shown through Manage API Effects. Add a stable apiMacro_…_p or apiMacro_…_f ID when later macro calls need to update or stop the same row.
const created = await FXMASTER.api.effects.play({ filters: [{ "id": "apiMacro_wikilightningbolts_f", "type": "lightningbolts", "options": { "mode": "side", "thickness": 0.5, "branches": 0.5, "brightness": 0.8, "frequency": 0.5 } }],});
await FXMASTER.api.effects.filters.stop(created.filters);For complete API behavior, scene targeting, stack ordering, and toggle groups, see the Direct Effect API guide.