Aller au contenu principal

dynamic_music_track

Music track that reacts to game facts — misc entry.

Entry Information

PropertyValue
Entry IDdynamic_music_track
TypeMisc
ColorGold
Iconfa6-solid:music

Description

A dynamic music track plays a base music loop and optionally activates additional layers based on a readable fact entry.

Fields

FieldTypeDescription
baseTrackVar<Sound>Base music track that always plays when active
sfxLayerVar<Sound>?Optional sfx layer that activates when the trigger fact is met
melodyLayerVar<Sound>?Optional melody layer that activates when the trigger fact is met
triggerFactRef<ReadableFactEntry>The readable fact entry to check (e.g., a danger_level fact)
activationThresholdIntFact value threshold to activate additional layers
checkIntervalDurationHow often to check the fact value (in seconds)
layerAudioLayerAudio layer for music
trackJobJob?

Usage Example

- entry: dynamic_music_track
name: "Music track that reacts to game facts"
baseTrack: ""
sfxLayer: ""
melodyLayer: ""
triggerFact: ""
activationThreshold: 0
checkInterval: ""
layer: ""
trackJob: ""