dynamic_music_track
Music track that reacts to game facts — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | dynamic_music_track |
| Type | Misc |
| Color | Gold |
| Icon | fa6-solid:music |
Description
A dynamic music track plays a base music loop and optionally activates additional layers based on a readable fact entry.
Fields
| Field | Type | Description |
|---|---|---|
baseTrack | Var<Sound> | Base music track that always plays when active |
sfxLayer | Var<Sound>? | Optional sfx layer that activates when the trigger fact is met |
melodyLayer | Var<Sound>? | Optional melody layer that activates when the trigger fact is met |
triggerFact | Ref<ReadableFactEntry> | The readable fact entry to check (e.g., a danger_level fact) |
activationThreshold | Int | Fact value threshold to activate additional layers |
checkInterval | Duration | How often to check the fact value (in seconds) |
layer | AudioLayer | Audio layer for music |
trackJob | Job? | — |
Usage Example
- entry: dynamic_music_track
name: "Music track that reacts to game facts"
baseTrack: ""
sfxLayer: ""
melodyLayer: ""
triggerFact: ""
activationThreshold: 0
checkInterval: ""
layer: ""
trackJob: ""